mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-21 03:02:12 +00:00
Update cheatsheets
This commit is contained in:
41
tldr/haproxy
Normal file
41
tldr/haproxy
Normal 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}}`
|
||||
Reference in New Issue
Block a user