-
Notifications
You must be signed in to change notification settings - Fork 129
/
types.go
39 lines (34 loc) · 1.27 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package configuration
import (
"time"
"github.com/redis/go-redis/v9"
"github.com/armadaproject/armada/internal/armada/configuration"
)
type EventIngesterConfiguration struct {
// Database configuration
Redis redis.UniversalOptions
// Metrics configuration
MetricsPort uint16
// General Pulsar configuration
Pulsar configuration.PulsarConfig
// Pulsar subscription name
SubscriptionName string
// Size in bytes above which event message will be compressed when inserting in the database
MinMessageCompressionSize int
// Number of messages that will be batched together before being inserted into the database
BatchMessages int
// Size of messages that will be batched together before being inserted into the database
BatchSize int
// Maximum time since the last batch before a batch will be inserted into the database
BatchDuration time.Duration
// Time after which events will be deleted from the db
EventRetentionPolicy EventRetentionPolicy
// List of Regexes which will identify fatal errors when inserting into redis
FatalInsertionErrors []string
// If non-nil, net/http/pprof endpoints are exposed on localhost on this port.
PprofPort *uint16
}
// TODO: unpack this into just EventExpirtation
type EventRetentionPolicy struct {
RetentionDuration time.Duration
}