Update inv_sig_helper_cluster configuration
This commit is contained in:
parent
ec623beee9
commit
9f268867d0
2 changed files with 23 additions and 16 deletions
|
@ -1,20 +1,23 @@
|
||||||
services:
|
services:
|
||||||
inv_sig_helper_cluster:
|
inv_sig_helper_cluster:
|
||||||
image: git.nadeko.net/fijxu/inv_sig_helper:master-4477ac8
|
image: quay.io/invidious/inv-sig-helper
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
mem_limit: "512m"
|
mem_limit: "512m"
|
||||||
logging:
|
cpus: 0.2
|
||||||
driver: none
|
|
||||||
init: true
|
init: true
|
||||||
command: ["--tcp", "0.0.0.0:12999"]
|
command: ["--tcp", "0.0.0.0:12999"]
|
||||||
|
stop_grace_period: 5s
|
||||||
|
logging:
|
||||||
|
driver: none
|
||||||
environment:
|
environment:
|
||||||
- RUST_LOG=info
|
- RUST_LOG=warn
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 8
|
replicas: 5
|
||||||
networks:
|
networks:
|
||||||
- invidious
|
- invidious
|
||||||
- gluetun_network
|
# - gluetun_network
|
||||||
- gluetun_network_2
|
# - gluetun_network_2
|
||||||
|
# - invidious-external
|
||||||
|
|
||||||
sig-haproxy:
|
sig-haproxy:
|
||||||
image: haproxy:lts-alpine
|
image: haproxy:lts-alpine
|
||||||
|
@ -22,11 +25,12 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:10095:8405"
|
- "127.0.0.1:10095:8405"
|
||||||
volumes:
|
volumes:
|
||||||
- ./haproxy:/usr/local/etc/haproxy
|
- ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg
|
||||||
networks:
|
networks:
|
||||||
- invidious
|
- invidious
|
||||||
- gluetun_network
|
- gluetun_network
|
||||||
- gluetun_network_2
|
- gluetun_network_2
|
||||||
|
- invidious-external
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
invidious:
|
invidious:
|
||||||
|
@ -35,3 +39,5 @@ networks:
|
||||||
external: true
|
external: true
|
||||||
gluetun_network_2:
|
gluetun_network_2:
|
||||||
external: true
|
external: true
|
||||||
|
invidious-external:
|
||||||
|
external: true
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
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
|
||||||
maxconn 16384
|
maxconn 128
|
||||||
log stdout format raw local0 debug
|
|
||||||
|
|
||||||
resolvers docker
|
resolvers docker
|
||||||
# To be able to use multiple replicas of invidious
|
# To be able to use multiple replicas of invidious
|
||||||
|
@ -9,11 +8,13 @@ resolvers docker
|
||||||
nameserver dns1 127.0.0.11:53
|
nameserver dns1 127.0.0.11:53
|
||||||
|
|
||||||
defaults
|
defaults
|
||||||
log global
|
# Without timeouts to prevent haproxy kill the connection
|
||||||
option tcplog
|
# when there is no packets being sent between the sig helper and
|
||||||
timeout client 2000ms
|
# invidious
|
||||||
timeout connect 2000ms
|
|
||||||
timeout server 500ms
|
#timeout client 60s
|
||||||
|
#timeout connect 1s
|
||||||
|
#timeout server 60s
|
||||||
|
|
||||||
# Prometheus for graphs
|
# Prometheus for graphs
|
||||||
frontend prometheus
|
frontend prometheus
|
||||||
|
@ -32,6 +33,6 @@ backend sighelper
|
||||||
balance leastconn
|
balance leastconn
|
||||||
option tcp-check
|
option tcp-check
|
||||||
tcp-check send-binary 0512345678
|
tcp-check send-binary 0512345678
|
||||||
tcp-check expect rbinary 12345678
|
tcp-check expect rbinary 12345678*
|
||||||
option redispatch
|
option redispatch
|
||||||
server-template inv_sig_helper 16 inv_sig_helper_cluster:12999 resolvers docker check inter 500ms
|
server-template inv_sig_helper 16 inv_sig_helper_cluster:12999 resolvers docker check inter 500ms
|
Loading…
Reference in a new issue