HAProxy is a popular high availability load balancer and proxy server for TCP and HTTP applications. When HAProxy fails, troubleshooting can be critical to restoring service quickly. Here are steps to troubleshoot HAProxy issues:
haproxy -c -f /etc/haproxy/haproxy.cfg
to check your configuration file for any syntax errors.top
or htop
.
global
log /dev/log local0
maxconn 2000
defaults
log global
mode http
option httplog
option dontlognull
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
frontend http_front
bind *:80
acl is_backend1 path_beg /backend1
use_backend backend1 if is_backend1
backend backend1
server server1 192.168.1.10:80 check
How do I avoid rehashing overhead with std::set in multithreaded code?
How do I find elements with custom comparators with std::set for embedded targets?
How do I erase elements while iterating with std::set for embedded targets?
How do I provide stable iteration order with std::unordered_map for large datasets?
How do I reserve capacity ahead of time with std::unordered_map for large datasets?
How do I erase elements while iterating with std::unordered_map in multithreaded code?
How do I provide stable iteration order with std::map for embedded targets?
How do I provide stable iteration order with std::map in multithreaded code?
How do I avoid rehashing overhead with std::map in performance-sensitive code?
How do I merge two containers efficiently with std::map for embedded targets?