chore: update invidious compose and haproxy configs
This commit is contained in:
parent
1da2962fb9
commit
ddfd2e8315
2 changed files with 4 additions and 4 deletions
|
@ -24,8 +24,8 @@ x-common: &common
|
||||||
- .env
|
- .env
|
||||||
image: "git.nadeko.net/fijxu/invidious:latest"
|
image: "git.nadeko.net/fijxu/invidious:latest"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
mem_limit: 384MB
|
mem_limit: 512MB
|
||||||
cpus: 0.30
|
cpus: 0.35
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 2
|
replicas: 2
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
# for each backend.
|
# for each backend.
|
||||||
#
|
#
|
||||||
# ---
|
# ---
|
||||||
|
# Why I removed `option http-keep-alive`: This is on by default
|
||||||
|
|
||||||
global
|
global
|
||||||
# This because haproxy is dumb and likes to use the maxconnection from the kernel and that is super mega huge making haproxy oom
|
# This because haproxy is dumb and likes to use the maxconnection from the kernel and that is super mega huge making haproxy oom
|
||||||
|
@ -23,9 +24,8 @@ defaults
|
||||||
# Use another server if one takes too long to reply
|
# Use another server if one takes too long to reply
|
||||||
retries 4
|
retries 4
|
||||||
option redispatch
|
option redispatch
|
||||||
option http-keep-alive
|
|
||||||
timeout client 30s
|
timeout client 30s
|
||||||
timeout connect 5s
|
timeout connect 10s
|
||||||
timeout server 10s
|
timeout server 10s
|
||||||
timeout queue 20s
|
timeout queue 20s
|
||||||
# https://www.haproxy.com/documentation/haproxy-configuration-manual/latest/#4.2-http-reuse
|
# https://www.haproxy.com/documentation/haproxy-configuration-manual/latest/#4.2-http-reuse
|
||||||
|
|
Loading…
Add table
Reference in a new issue