dial down live activities

This commit is contained in:
Andre Medeiros 2022-10-31 20:58:02 -04:00
parent 0e342803a1
commit 683edbb091
2 changed files with 2 additions and 10 deletions

View file

@ -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
}

View file

@ -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