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
|
||||
image: "git.nadeko.net/fijxu/invidious:latest"
|
||||
restart: unless-stopped
|
||||
mem_limit: 384MB
|
||||
cpus: 0.30
|
||||
mem_limit: 512MB
|
||||
cpus: 0.35
|
||||
deploy:
|
||||
replicas: 2
|
||||
volumes:
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
# for each backend.
|
||||
#
|
||||
# ---
|
||||
# Why I removed `option http-keep-alive`: This is on by default
|
||||
|
||||
global
|
||||
# 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
|
||||
retries 4
|
||||
option redispatch
|
||||
option http-keep-alive
|
||||
timeout client 30s
|
||||
timeout connect 5s
|
||||
timeout connect 10s
|
||||
timeout server 10s
|
||||
timeout queue 20s
|
||||
# https://www.haproxy.com/documentation/haproxy-configuration-manual/latest/#4.2-http-reuse
|
||||
|
|
Loading…
Add table
Reference in a new issue