X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f675fb2c202516021b961b5aa2de4528ba9f0d1f..efcfd2cdc9a9ed6ab3af54e9a4e149d4bdf1f8d3:/services/ws/config.go diff --git a/services/ws/config.go b/services/ws/config.go index 9c2e80a172..79c2f232da 100644 --- a/services/ws/config.go +++ b/services/ws/config.go @@ -6,30 +6,36 @@ import ( "git.curoverse.com/arvados.git/sdk/go/arvados" ) -type Config struct { - Client arvados.Client - Postgres pgConfig - Listen string - Debug bool +type wsConfig struct { + Client arvados.Client + Postgres pgConfig + PostgresPool int + Listen string + LogLevel string + LogFormat string PingTimeout arvados.Duration ClientEventQueue int ServerEventQueue int } -func DefaultConfig() Config { - return Config{ +func defaultConfig() wsConfig { + return wsConfig{ Client: arvados.Client{ APIHost: "localhost:443", }, Postgres: pgConfig{ - "dbname": "arvados_production", - "user": "arvados", - "password": "xyzzy", - "host": "localhost", - "connect_timeout": "30", - "sslmode": "require", + "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,