HA Proxy?
L4 μ TCP (UDP λ μ§μμν¨), L7μ HTTP λΌμ°ν κΈ°λ₯μ νλ μ€νμμ€ HA(High Availability) Proxy μλ²μ
νλ‘μνλ λ Έλλ€μ Heartbeat λ‘ Health 체ν¬ν¨
μ₯μ κ° μλ μλΉμ€λ μ μΈνκ³ , λμνλ μ¬λΆμ Stanby μλΉμ€κ° μμΌλ©΄ μ΄μͺ½μΌλ‘ λΌμ°ν ν΄μ€
L4 λ μ΄μ΄ λ¨κ³μ Log κΈ°λ₯μ΄ μμ
Shared frontend λ‘ HA Proxy λ Έλλ κ³ κ°μ©μ±μ κ°μ§λ©΄μ νμ₯ κ°λ₯ν¨
IPλ‘ μΈμ μ μ§νκΈ°
Client IPμ λν ν΄μ¬ ν μ΄λΈμ λ§λ€μ΄μ μ°°μΉ λΆμ
/etc/haproxy/haproxy.cfg
# ...
# round robin balancing between the various backeands
backend app
balance roundrobin
# ν΄λΌμ΄μΈνΈ λ³ IP κ°μΌλ‘ sticky session
hash-type consistent
server tcpserver01 192.168.10.1:30001 S01 check
server tcpserver01 192.168.10.2:30002 S02 check
# server app1 192.168.10.1:30001 check
# server app2 192.168.10.2:30002 check
# ...