« Haproxy : Commande socat » : différence entre les versions

De www.yakakliker.org
(Page créée avec « === Etat de Haproxy === <syntaxhighlight lang="bash"> echo "show servers state" | socat unix-connect:/var/run/haproxy/admin.sock stdio </syntaxhighlight> === Mode maintenance de Haproxy === <syntaxhighlight lang="bash"> echo "disable server backend1/server05.example.local" | socat unix-connect:/var/run/haproxy/admin.sock stdio </syntaxhighlight> === Réactication du backend Haproxy === <syntaxhighlight lang="bash"> echo "enable server backend1/server05.example.... »)
 
 
(2 versions intermédiaires par le même utilisateur non affichées)
Ligne 4 : Ligne 4 :
</syntaxhighlight>
</syntaxhighlight>


=== Mode maintenance de Haproxy ===
=== Mode maintenance du backend de Haproxy ===
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
echo "disable server backend1/server05.example.local" | socat unix-connect:/var/run/haproxy/admin.sock stdio
echo "disable server backend1/server05.example.local" | socat unix-connect:/var/run/haproxy/admin.sock stdio
Ligne 16 : Ligne 16 :
=== Liens ===
=== Liens ===
https://www.claudiokuenzler.com/blog/1240/haproxy-how-to-disable-enable-backend-server-command-line-cli-socket
https://www.claudiokuenzler.com/blog/1240/haproxy-how-to-disable-enable-backend-server-command-line-cli-socket
[[Catégorie:Haproxy]]
‎<html>
<script src='https://storage.ko-fi.com/cdn/scripts/overlay-widget.js'></script>
<script>
  kofiWidgetOverlay.draw('yakakliker', {
    'type': 'floating-chat',
    'floating-chat.donateButton.text': 'Café',
    'floating-chat.donateButton.background-color': '#00b9fe',
    'floating-chat.donateButton.text-color': '#fff'
  });
</script>
‎</html>
[[Catégorie:Haproxy]]
‎<html>
<a href="https://www.compteurdevisite.com" title="compteur web gratuit sans pub"><img src="https://counter6.optistats.ovh/private/compteurdevisite.php?c=b4epghealnwlf7wuq7gn3ygll9aywrfx" border="0" title="compteur web gratuit sans pub" alt="compteur web gratuit sans pub"></a>
‎</html>

Dernière version du 27 août 2025 à 16:07

Etat de Haproxy

echo "show servers state" | socat unix-connect:/var/run/haproxy/admin.sock stdio

Mode maintenance du backend de Haproxy

echo "disable server backend1/server05.example.local" | socat unix-connect:/var/run/haproxy/admin.sock stdio

Réactication du backend Haproxy

echo "enable server backend1/server05.example.local" | socat unix-connect:/var/run/haproxy/admin.sock stdio

Liens

https://www.claudiokuenzler.com/blog/1240/haproxy-how-to-disable-enable-backend-server-command-line-cli-socket



compteur web gratuit sans pub