mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 03:37:43 +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
|
- key: BUGSNAG_METADATA_QUEUE
|
||||||
value: notifications
|
value: notifications
|
||||||
scaling:
|
scaling:
|
||||||
minInstances: 30
|
minInstances: 10
|
||||||
maxInstances: 50
|
maxInstances: 30
|
||||||
targetCPUPercent: 60
|
targetCPUPercent: 80
|
||||||
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 --consumers 1024
|
startCommand: panic-monitor ./apollo worker --queue notifications --consumers 1024
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ services:
|
||||||
- type: worker
|
- type: worker
|
||||||
name: worker.notifications.stuck
|
name: worker.notifications.stuck
|
||||||
env: go
|
env: go
|
||||||
plan: starter plus
|
plan: starter
|
||||||
envVars:
|
envVars:
|
||||||
- fromGroup: env-settings
|
- fromGroup: env-settings
|
||||||
- key: BUGSNAG_APP_TYPE
|
- key: BUGSNAG_APP_TYPE
|
||||||
|
@ -105,9 +105,9 @@ services:
|
||||||
- key: BUGSNAG_METADATA_QUEUE
|
- key: BUGSNAG_METADATA_QUEUE
|
||||||
value: stuck
|
value: stuck
|
||||||
scaling:
|
scaling:
|
||||||
minInstances: 1
|
minInstances: 2
|
||||||
maxInstances: 10
|
maxInstances: 10
|
||||||
targetCPUPercent: 60
|
targetCPUPercent: 80
|
||||||
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 --consumers 64
|
startCommand: panic-monitor ./apollo worker --queue stuck-notifications --consumers 64
|
||||||
|
|
||||||
|
@ -149,9 +149,9 @@ services:
|
||||||
- key: BUGSNAG_METADATA_QUEUE
|
- key: BUGSNAG_METADATA_QUEUE
|
||||||
value: subreddits
|
value: subreddits
|
||||||
scaling:
|
scaling:
|
||||||
minInstances: 1
|
minInstances: 2
|
||||||
maxInstances: 10
|
maxInstances: 10
|
||||||
targetCPUPercent: 60
|
targetCPUPercent: 80
|
||||||
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
|
startCommand: panic-monitor ./apollo worker --queue subreddits
|
||||||
|
|
||||||
|
@ -159,7 +159,7 @@ services:
|
||||||
- type: worker
|
- type: worker
|
||||||
name: worker.watcher.trending
|
name: worker.watcher.trending
|
||||||
env: go
|
env: go
|
||||||
plan: starter plus
|
plan: starter
|
||||||
envVars:
|
envVars:
|
||||||
- fromGroup: env-settings
|
- fromGroup: env-settings
|
||||||
- key: BUGSNAG_APP_TYPE
|
- key: BUGSNAG_APP_TYPE
|
||||||
|
@ -167,9 +167,9 @@ services:
|
||||||
- key: BUGSNAG_METADATA_QUEUE
|
- key: BUGSNAG_METADATA_QUEUE
|
||||||
value: trending
|
value: trending
|
||||||
scaling:
|
scaling:
|
||||||
minInstances: 1
|
minInstances: 2
|
||||||
maxInstances: 10
|
maxInstances: 10
|
||||||
targetCPUPercent: 60
|
targetCPUPercent: 80
|
||||||
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
|
startCommand: panic-monitor ./apollo worker --queue trending
|
||||||
|
|
||||||
|
@ -186,8 +186,8 @@ services:
|
||||||
value: live-activities
|
value: live-activities
|
||||||
scaling:
|
scaling:
|
||||||
minInstances: 1
|
minInstances: 1
|
||||||
maxInstances: 20
|
maxInstances: 10
|
||||||
targetCPUPercent: 60
|
targetCPUPercent: 80
|
||||||
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 live-activities
|
startCommand: panic-monitor ./apollo worker --queue live-activities
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue