mathstodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for maths people. We have LaTeX rendering in the web interface!

Server stats:

2.7K
active users

#haproxy

0 posts0 participants0 posts today

Ha aujourd'hui j'ai eu un client rigolo qu'a ouvert un ticket critique !
Il était en panique parce qu'il avait des réponses "200 504"... Alors déjà, le statut http c'est un seul nombre hein...

Bon du coup je regarde des logs, hé ba il paniquait pour rien évidemment : dans ses mots il avait effectivement "... 200 504 ...". 200, le statut HTTP, et 504, le nombre d'octets lus par #HAProxy depuis le serveur

#HAProxy v.3 Installationsanleitung

Mit Hilfe unserer Installationsanleitung für den HAProxy Version 3 stable (LTS) können Sie beispielsweise zwei verschiedene Cloud-Anwendungen parallel betreiben und diese mit LetsEncrypt Zertifikaten versorgen. Wir nutzen dafür einen Mixed Mode, also Layer 6 (http) und Layer 4 (tcp für https) in der HAProxy-Konfiguration.
Der HAProxy agiert dabei als klassischer ReverseProxy und kann auf Wunsch auch zum Loadbalancer erweitert werden.
Nachfolgend stellen wir dafür unsere HAProxy-Konfiguration aus dem Labor bereit. Diese nutzen wir bspw. für unsere Cloud-Testinstanzen (bspw. #Nextcloud und #opencloud auf einem dedizierten Server. Die SSL-Terminierung übernimmt dabei das jeweilige Backend, also Nextcloud und OpenCloud und nicht der HAProxy selbst. Der HAProxy reicht die https-Anfragen an die Anwendung durch und agiert im tcp-Mode (Layer 4) quasi transparent. 👇
c-rieger.de/haproxy-installati

Carsten Rieger IT-Services · HAProxy Version 3 Installationsanleitung - Carsten Rieger IT-Services
More from Carsten Rieger IT-Services 🔒

random #HAProxy tip:

"My app has an endpoint that streams data for a long time, and my clients keep getting disconnected". They're probably disconnected because, when data is streaming, HAProxy doesn't hear back from the client. You need to increase "timeout client", but you probably don't want to do that site-wide. Set a timeout specific to that endpoint:
http-request set-timeout client 2h if { path -m beg /index.php/apps/music/api/ }