-
Notifications
You must be signed in to change notification settings - Fork 136
/
types.go
40 lines (34 loc) · 1.21 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
40
package configuration
import (
"time"
grpcconfig "github.com/armadaproject/armada/internal/common/grpc/configuration"
"github.com/armadaproject/armada/pkg/client"
)
type PostgresConfig struct {
PoolMaxOpenConns int
PoolMaxIdleConns int
PoolMaxConnLifetime time.Duration
Connection map[string]string
}
type JobServiceConfiguration struct {
HttpPort uint16
GrpcPort uint16
MetricsPort uint16
Grpc grpcconfig.GrpcConfig
GrpcPool grpcconfig.GrpcPoolConfig
// Connection details that we obtain from client
ApiConnection client.ApiConnectionDetails
// Configurable value that translates to number of seconds
// This is the amount of time since the last job in job-set has been updated.
SubscribeJobSetTime int64
// Purge jobSets if not updated in this number of seconds
PurgeJobSetTime int64
// Type of database used - must be either 'postgres' or 'sqlite'
DatabaseType string
// Absolute or relative path for sqlite database and must include the db name
// This field is only read when DatabaseType is 'sqlite'
DatabasePath string
// Configuration details for using a Postgres database; this field is
// ignored if the DatabaseType above is not 'postgres'
PostgresConfig PostgresConfig
}