mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 07:27:43 +00:00
dial down live activities
This commit is contained in:
parent
0e342803a1
commit
683edbb091
2 changed files with 2 additions and 10 deletions
|
@ -2,7 +2,6 @@ package cmd
|
|||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
_ "net/http/pprof"
|
||||
|
@ -527,10 +526,3 @@ func enqueueAccounts(ctx context.Context, logger *zap.Logger, statsd *statsd.Cli
|
|||
zap.Int64("duration", time.Since(now).Milliseconds()),
|
||||
)
|
||||
}
|
||||
|
||||
type Int64Slice []int64
|
||||
|
||||
func (ii Int64Slice) MarshalBinary() (data []byte, err error) {
|
||||
bytes, err := json.Marshal(ii)
|
||||
return bytes, err
|
||||
}
|
||||
|
|
|
@ -177,7 +177,7 @@ services:
|
|||
- type: worker
|
||||
name: worker.live-activities
|
||||
env: go
|
||||
plan: starter plus
|
||||
plan: starter
|
||||
envVars:
|
||||
- fromGroup: env-settings
|
||||
- key: BUGSNAG_APP_TYPE
|
||||
|
@ -185,7 +185,7 @@ services:
|
|||
- key: BUGSNAG_METADATA_QUEUE
|
||||
value: live-activities
|
||||
scaling:
|
||||
minInstances: 2
|
||||
minInstances: 1
|
||||
maxInstances: 20
|
||||
targetCPUPercent: 60
|
||||
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
|
||||
|
|
Loading…
Reference in a new issue