X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1e094e23db422cabe013ecbf7a0b465c4b096e12..47b2e4988e9bfb69ef00de1c900a20f714af5f2f:/services/ws/config.go diff --git a/services/ws/config.go b/services/ws/config.go index 60731f9b23..cf82cf8e10 100644 --- a/services/ws/config.go +++ b/services/ws/config.go @@ -1,31 +1,45 @@ package main import ( + "time" + "git.curoverse.com/arvados.git/sdk/go/arvados" ) -type Config struct { - Client arvados.Client - Postgres pgConfig - Listen string +type wsConfig struct { + Client arvados.Client + Postgres pgConfig + PostgresPool int + Listen string + LogLevel string + LogFormat string + PingTimeout arvados.Duration ClientEventQueue int ServerEventQueue int + + ManagementToken string } -func DefaultConfig() Config { - return Config{ +func defaultConfig() wsConfig { + return wsConfig{ Client: arvados.Client{ APIHost: "localhost:443", }, Postgres: pgConfig{ - "dbname": "arvados_test", - "user": "arvados", - "password": "xyzzy", - "host": "localhost", - "connect_timeout": "30", - "sslmode": "disable", + "dbname": "arvados_production", + "user": "arvados", + "password": "xyzzy", + "host": "localhost", + "connect_timeout": "30", + "sslmode": "require", + "fallback_application_name": "arvados-ws", }, + PostgresPool: 64, + LogLevel: "info", + LogFormat: "json", + PingTimeout: arvados.Duration(time.Minute), ClientEventQueue: 64, + ServerEventQueue: 4, } }