mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 23:47:44 +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 (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
_ "net/http/pprof"
|
_ "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()),
|
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
|
- type: worker
|
||||||
name: worker.live-activities
|
name: worker.live-activities
|
||||||
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
|
||||||
|
@ -185,7 +185,7 @@ services:
|
||||||
- key: BUGSNAG_METADATA_QUEUE
|
- key: BUGSNAG_METADATA_QUEUE
|
||||||
value: live-activities
|
value: live-activities
|
||||||
scaling:
|
scaling:
|
||||||
minInstances: 2
|
minInstances: 1
|
||||||
maxInstances: 20
|
maxInstances: 20
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue