Skip to content
IROSG.
Articles

HAProxy from configuration basics to production health checks

A practical source-backed IROSG technical guide.

HAProxy from configuration basics to production health checks

Scope

This original IROSG guide covers طراحی load balancing با HAProxy و تفکیک frontend/backend using the cited primary documentation.

Core model

Configuration HAProxy از global/defaults تا frontend و backend، مسئولیت‌ها را جدا می‌کند. frontend تصمیم می‌گیرد connection چگونه پذیرفته و route شود و backend pool و policy ارسال request را تعریف می‌کند.

Practical workflow

Timeoutهای connect/client/server را صریح تنظیم کنید، health check را به endpoint معنادار وصل کنید و log format را قبل از incident قابل جست‌وجو کنید. config validation باید قبل از reload اجباری باشد.

Failure modes

Health check فقط TCP open اگر application خراب باشد false healthy می‌دهد. timeoutهای بی‌نهایت، sticky session بدون نیاز و reload بدون validation نیز failure متداول‌اند.

Lab

دو backend ساده بسازید، یکی را degraded کنید و رفتار health check را ببینید. سپس config اشتباه تولید و با haproxy -c قبل از reload آن را متوقف کنید.

Production method

Capture a baseline, change one variable at a time, test positive and negative paths, keep evidence, and rehearse rollback before broad rollout.

TRACEABLE KNOWLEDGE

Sources & further reading

01
HAProxy — منبع اصلیhttps://www.haproxy.com/blog/the-four-essential-sections-of-an-haproxy-configuration

Editorial review date:

IROSG / EDITORIAL

News and pioneer profiles use original writing with source attribution. Image credits and licenses are kept in each page’s sources section instead of beneath the images. CVE reference data credits its primary sources.

Editorial and image policy ↗

Keep exploring.

Articles ↗
VyOS network operating systemArticles
Networking

VyOS network operating system

Original Persian technical editorial based on the official sources below. It covers the subject, architecture, practical use cases, important limitations and defensive considerations.

1 min readRead story
Routinator RPKI validatorArticles
Networking

Routinator RPKI validator

Original Persian technical editorial based on the official sources below. It covers the subject, architecture, practical use cases, important limitations and defensive considerations.

1 min readRead story
ISC Kea DHCP High AvailabilityArticles
Networking

ISC Kea DHCP High Availability

Original Persian technical editorial based on the official sources below. It covers the subject, architecture, practical use cases, important limitations and defensive considerations.

1 min readRead story