-
Notifications
You must be signed in to change notification settings - Fork 127
/
config.go
31 lines (28 loc) · 1.08 KB
/
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
29
30
31
package scheduleringester
import (
"time"
"github.com/armadaproject/armada/internal/armada/configuration"
"github.com/armadaproject/armada/internal/common/types"
)
type Configuration struct {
// Database configuration
Postgres configuration.PostgresConfig
// Metrics Port
MetricsPort uint16
// General Pulsar configuration
Pulsar configuration.PulsarConfig
// Map of allowed priority classes by name
PriorityClasses map[string]types.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
// If non-nil, net/http/pprof endpoints are exposed on localhost on this port.
PprofPort *uint16
}