Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp

perf(rexctl): give the edge enough memory for busy websockets

Hampus3a8360607c1a
diff --git a/fluxer_rexctl/internal/stack/files/docker-compose.yml b/fluxer_rexctl/internal/stack/files/docker-compose.yml
index e9c1cbbc4..dac2bba8c 100644
--- a/fluxer_rexctl/internal/stack/files/docker-compose.yml
+++ b/fluxer_rexctl/internal/stack/files/docker-compose.yml
@@ -259,7 +259,7 @@ services:
deploy:
resources:
limits:
- memory: ${FLUXER_CADDY_MEMORY_LIMIT:-256mb}
+ memory: ${FLUXER_CADDY_MEMORY_LIMIT:-384mb}
ports:
- "${FLUXER_HTTP_PORT:-80}:80"
- "${FLUXER_HTTPS_PORT:-443}:443"
diff --git a/fluxer_rexctl/internal/stack/sizing.go b/fluxer_rexctl/internal/stack/sizing.go
index e31d0d644..9d3a53588 100644
--- a/fluxer_rexctl/internal/stack/sizing.go
+++ b/fluxer_rexctl/internal/stack/sizing.go
@@ -96,7 +96,7 @@ func Sizing(hw Hardware, memory bool, fixed map[string]string) map[string]string
reserve("FLUXER_API_MEMORY_RESERVATION", share("FLUXER_API_MEMORY_LIMIT", 14, 512, 2560))
reserve("FLUXER_WORKER_MEMORY_RESERVATION", share("FLUXER_WORKER_MEMORY_LIMIT", 12, 448, 2560))
reserve("FLUXER_GATEWAY_MEMORY_RESERVATION", share("FLUXER_GATEWAY_MEMORY_LIMIT", 22, 512, 4096))
- share("FLUXER_CADDY_MEMORY_LIMIT", 4, 256, 1024)
+ share("FLUXER_CADDY_MEMORY_LIMIT", 8, 384, 2048)
if hw.MemoryBytes < smallHostBytes {
out["FLUXER_EDGE_PROTOCOLS"] = "h1 h2"
}