Update cheatsheets

This commit is contained in:
ivuorinen
2026-03-20 00:28:18 +00:00
parent 3321f35e10
commit 51e1b58889
18 changed files with 300 additions and 9 deletions

41
tldr/haproxy Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# haproxy
> Fast and reliable HTTP reverse proxy and load balancer.
> More information: <https://manned.org/haproxy>.
- Check configuration file for validity:
`haproxy -c -f {{path/to/haproxy.cfg}}`
- Start HAProxy with a configuration file:
`haproxy -f {{path/to/haproxy.cfg}}`
- Start in daemon mode:
`haproxy -D -f {{path/to/haproxy.cfg}}`
- Start in master-worker mode:
`haproxy -W -f {{path/to/haproxy.cfg}}`
- Start with debugging mode enabled (foreground, verbose output):
`haproxy -d -f {{path/to/haproxy.cfg}}`
- Reload configuration with graceful shutdown of old process:
`haproxy -f {{path/to/haproxy.cfg}} -sf {{pid}}`
- Set maximum number of simultaneous connections:
`haproxy -f {{path/to/haproxy.cfg}} -n {{maxconn}}`
- Reload with zero downtime by reusing sockets from old process:
`haproxy -f {{path/to/haproxy.cfg}} -x {{path/to/haproxy.sock}} -sf {{pid}}`