-
Notifications
You must be signed in to change notification settings - Fork 132
/
config.go
28 lines (25 loc) · 980 Bytes
/
config.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
package scheduleringester
import (
"time"
"github.com/armadaproject/armada/internal/armada/configuration"
)
type Configuration struct {
// Database configuration
Postgres configuration.PostgresConfig
// Metrics configuration
Metrics configuration.MetricsConfig
// General Pulsar configuration
Pulsar configuration.PulsarConfig
// Map of allowed priority classes by name
PriorityClasses map[string]configuration.PriorityClass
// Pulsar subscription name
SubscriptionName string
// Number 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 for which the pulsar consumer will wait for a new message before retrying
PulsarReceiveTimeout time.Duration
// Time for which the pulsar consumer will back off after receiving an error on trying to receive a message
PulsarBackoffTime time.Duration
}