more infra tweaks

This commit is contained in:
Andre Medeiros 2022-05-21 13:19:27 -04:00
parent 413b46631c
commit 08d0bc3b70

View file

@ -70,10 +70,12 @@ services:
name: srv.redis name: srv.redis
property: connectionString property: connectionString
- key: DATABASE_CONNECTION_POOL_URL # This is temporary and should be overwritten - key: DATABASE_CONNECTION_POOL_URL # This is temporary and should be overwritten
sync: false
fromDatabase: fromDatabase:
name: srv.postgres name: srv.postgres
property: connectionString property: connectionString
- key: STATSD_URL - key: STATSD_URL
sync: false
fromService: fromService:
type: pserv type: pserv
name: srv.statsd name: srv.statsd
@ -84,7 +86,6 @@ services:
targetCPUPercent: 60 targetCPUPercent: 60
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
startCommand: panic-monitor ./apollo api startCommand: panic-monitor ./apollo api
autoDeploy: false
# Notifications # Notifications
- type: worker - type: worker
@ -103,10 +104,12 @@ services:
name: srv.redis name: srv.redis
property: connectionString property: connectionString
- key: DATABASE_CONNECTION_POOL_URL # This is temporary and should be overwritten - key: DATABASE_CONNECTION_POOL_URL # This is temporary and should be overwritten
sync: false
fromDatabase: fromDatabase:
name: srv.postgres name: srv.postgres
property: connectionString property: connectionString
- key: STATSD_URL - key: STATSD_URL
sync: false
fromService: fromService:
type: pserv type: pserv
name: srv.statsd name: srv.statsd
@ -117,7 +120,6 @@ services:
targetCPUPercent: 75 targetCPUPercent: 75
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
startCommand: panic-monitor ./apollo worker --queue notifications --multiplier 64 startCommand: panic-monitor ./apollo worker --queue notifications --multiplier 64
autoDeploy: false
# Stuck Notifications Checker # Stuck Notifications Checker
- type: worker - type: worker
@ -136,10 +138,12 @@ services:
name: srv.redis name: srv.redis
property: connectionString property: connectionString
- key: DATABASE_CONNECTION_POOL_URL # This is temporary and should be overwritten - key: DATABASE_CONNECTION_POOL_URL # This is temporary and should be overwritten
sync: false
fromDatabase: fromDatabase:
name: srv.postgres name: srv.postgres
property: connectionString property: connectionString
- key: STATSD_URL - key: STATSD_URL
sync: false
fromService: fromService:
type: pserv type: pserv
name: srv.statsd name: srv.statsd
@ -150,7 +154,6 @@ services:
targetCPUPercent: 75 targetCPUPercent: 75
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
startCommand: panic-monitor ./apollo worker --queue stuck-notifications --multiplier 64 startCommand: panic-monitor ./apollo worker --queue stuck-notifications --multiplier 64
autoDeploy: false
# Scheduler # Scheduler
- type: worker - type: worker
@ -167,17 +170,18 @@ services:
name: srv.redis name: srv.redis
property: connectionString property: connectionString
- key: DATABASE_CONNECTION_POOL_URL # This is temporary and should be overwritten - key: DATABASE_CONNECTION_POOL_URL # This is temporary and should be overwritten
sync: false
fromDatabase: fromDatabase:
name: srv.postgres name: srv.postgres
property: connectionString property: connectionString
- key: STATSD_URL - key: STATSD_URL
sync: false
fromService: fromService:
type: pserv type: pserv
name: srv.statsd name: srv.statsd
property: hostport property: hostport
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
startCommand: panic-monitor ./apollo scheduler startCommand: panic-monitor ./apollo scheduler
autoDeploy: false
# User Watcher # User Watcher
- type: worker - type: worker
@ -196,17 +200,18 @@ services:
name: srv.redis name: srv.redis
property: connectionString property: connectionString
- key: DATABASE_CONNECTION_POOL_URL # This is temporary and should be overwritten - key: DATABASE_CONNECTION_POOL_URL # This is temporary and should be overwritten
sync: false
fromDatabase: fromDatabase:
name: srv.postgres name: srv.postgres
property: connectionString property: connectionString
- key: STATSD_URL - key: STATSD_URL
sync: false
fromService: fromService:
type: pserv type: pserv
name: srv.statsd name: srv.statsd
property: hostport property: hostport
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
startCommand: panic-monitor ./apollo worker --queue users --multiplier 16 startCommand: panic-monitor ./apollo worker --queue users --multiplier 16
autoDeploy: false
# Subreddit Watcher # Subreddit Watcher
- type: worker - type: worker
@ -225,10 +230,12 @@ services:
name: srv.redis name: srv.redis
property: connectionString property: connectionString
- key: DATABASE_CONNECTION_POOL_URL # This is temporary and should be overwritten - key: DATABASE_CONNECTION_POOL_URL # This is temporary and should be overwritten
sync: false
fromDatabase: fromDatabase:
name: srv.postgres name: srv.postgres
property: connectionString property: connectionString
- key: STATSD_URL - key: STATSD_URL
sync: false
fromService: fromService:
type: pserv type: pserv
name: srv.statsd name: srv.statsd
@ -239,7 +246,6 @@ services:
targetCPUPercent: 75 targetCPUPercent: 75
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
startCommand: panic-monitor ./apollo worker --queue subreddits --multiplier 64 startCommand: panic-monitor ./apollo worker --queue subreddits --multiplier 64
autoDeploy: false
# Trending Posts Watcher # Trending Posts Watcher
- type: worker - type: worker
@ -258,10 +264,12 @@ services:
name: srv.redis name: srv.redis
property: connectionString property: connectionString
- key: DATABASE_CONNECTION_POOL_URL # This is temporary and should be overwritten - key: DATABASE_CONNECTION_POOL_URL # This is temporary and should be overwritten
sync: false
fromDatabase: fromDatabase:
name: srv.postgres name: srv.postgres
property: connectionString property: connectionString
- key: STATSD_URL - key: STATSD_URL
sync: false
fromService: fromService:
type: pserv type: pserv
name: srv.statsd name: srv.statsd
@ -272,7 +280,6 @@ services:
targetCPUPercent: 75 targetCPUPercent: 75
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
startCommand: panic-monitor ./apollo worker --queue trending --multiplier 64 startCommand: panic-monitor ./apollo worker --queue trending --multiplier 64
autoDeploy: false
envVarGroups: envVarGroups:
# Environment # Environment