mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-21 19:37:41 +00:00
adjust infra
This commit is contained in:
parent
873b9eb4db
commit
00ea87b0a8
1 changed files with 13 additions and 13 deletions
26
render.yaml
26
render.yaml
|
@ -87,9 +87,9 @@ services:
|
|||
- key: BUGSNAG_METADATA_QUEUE
|
||||
value: notifications
|
||||
scaling:
|
||||
minInstances: 30
|
||||
maxInstances: 50
|
||||
targetCPUPercent: 60
|
||||
minInstances: 10
|
||||
maxInstances: 30
|
||||
targetCPUPercent: 80
|
||||
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
||||
startCommand: panic-monitor ./apollo worker --queue notifications --consumers 1024
|
||||
|
||||
|
@ -97,7 +97,7 @@ services:
|
|||
- type: worker
|
||||
name: worker.notifications.stuck
|
||||
env: go
|
||||
plan: starter plus
|
||||
plan: starter
|
||||
envVars:
|
||||
- fromGroup: env-settings
|
||||
- key: BUGSNAG_APP_TYPE
|
||||
|
@ -105,9 +105,9 @@ services:
|
|||
- key: BUGSNAG_METADATA_QUEUE
|
||||
value: stuck
|
||||
scaling:
|
||||
minInstances: 1
|
||||
minInstances: 2
|
||||
maxInstances: 10
|
||||
targetCPUPercent: 60
|
||||
targetCPUPercent: 80
|
||||
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
||||
startCommand: panic-monitor ./apollo worker --queue stuck-notifications --consumers 64
|
||||
|
||||
|
@ -149,9 +149,9 @@ services:
|
|||
- key: BUGSNAG_METADATA_QUEUE
|
||||
value: subreddits
|
||||
scaling:
|
||||
minInstances: 1
|
||||
minInstances: 2
|
||||
maxInstances: 10
|
||||
targetCPUPercent: 60
|
||||
targetCPUPercent: 80
|
||||
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
||||
startCommand: panic-monitor ./apollo worker --queue subreddits
|
||||
|
||||
|
@ -159,7 +159,7 @@ services:
|
|||
- type: worker
|
||||
name: worker.watcher.trending
|
||||
env: go
|
||||
plan: starter plus
|
||||
plan: starter
|
||||
envVars:
|
||||
- fromGroup: env-settings
|
||||
- key: BUGSNAG_APP_TYPE
|
||||
|
@ -167,9 +167,9 @@ services:
|
|||
- key: BUGSNAG_METADATA_QUEUE
|
||||
value: trending
|
||||
scaling:
|
||||
minInstances: 1
|
||||
minInstances: 2
|
||||
maxInstances: 10
|
||||
targetCPUPercent: 60
|
||||
targetCPUPercent: 80
|
||||
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
||||
startCommand: panic-monitor ./apollo worker --queue trending
|
||||
|
||||
|
@ -186,8 +186,8 @@ services:
|
|||
value: live-activities
|
||||
scaling:
|
||||
minInstances: 1
|
||||
maxInstances: 20
|
||||
targetCPUPercent: 60
|
||||
maxInstances: 10
|
||||
targetCPUPercent: 80
|
||||
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
||||
startCommand: panic-monitor ./apollo worker --queue live-activities
|
||||
|
||||
|
|
Loading…
Reference in a new issue