Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"os"
"os/signal"
"runtime"
"runtime/debug"
"strconv"
"syscall"
"time"
Expand Down Expand Up @@ -33,9 +32,6 @@ func init() {
if i, err := strconv.Atoi(Unix); err == nil {
Time = time.Unix(int64(i), 0).Format(time.RFC3339)
}

debug.SetGCPercent(70)
debug.SetMemoryLimit(1.75 * 1024 * 1024 * 1024) // 1.75GB
}

func main() {
Expand Down
17 changes: 11 additions & 6 deletions k8s/production.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ spec:
selector:
matchLabels:
app: eventapi
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 5
maxUnavailable: 5
template:
metadata:
labels:
Expand Down Expand Up @@ -57,10 +62,10 @@ spec:
resources:
limits:
cpu: "1"
memory: 1.5Gi
memory: 3225Mi
requests:
cpu: 100m
memory: 1.5Gi
cpu: 350m
memory: 3000Mi
volumeMounts:
- name: config
mountPath: /app/config.yaml
Expand Down Expand Up @@ -124,10 +129,10 @@ data:
api:
enabled: true
bind: 0.0.0.0:3000
heartbeat_interval: 25000
heartbeat_interval: 28000
subscription_limit: 100
connection_limit: 7500
ttl: 10
connection_limit: 10000
ttl: 30
v1: false
v3: true
bridge_url: http://api:9700
Expand Down