Chuyển đến nội dung chính

Bài đăng

Hiển thị các bài đăng có nhãn load balancing

[LB-HA] Configuration Load balancing and High available on HA PROXY tool

Install HAProxy Load Balancer on CentOS Understand about High Available (HA) and Load Balancing Configuring the load balancer Setting up HAProxy for load balancing is a quite straight forward process. Basically all you need to do is tell HAProxy what kind of connections it should be listening for and which servers it should relay the connections to. This is done by creating a configuration file  /etc/haproxy/haproxy.cfg  with the defining settings. You can read about the configuration options at  HAProxy documentation  if you wish to find out more. Open a .cfg file for edit for example using  vi  with the following command sudo vi /etc/haproxy/haproxy.cfg Add the following sections to the the file. Replace the   with what ever you want to call you servers on the statistics page and the  > with the private IPs for the servers you wish to direct the web traffic to. You can check the private IPs at your  UpCloud Control Panel  and  Private network  -tab under  Network  -me

[LB-HA] Understand about High Available (HA) and Load Balancing

High Available (HA) :  Hỗ trợ dự phòng tiến trình. Hoạt đông với cơ chế Active - Passive . Hệ thống tồn tại 02 loại Component với role 'Active' và 'Passive'.  Active   Component sẽ đảm nhận việc xử lý tiến trình. Passive Component đóng vai trò backup. Trường hợp Active Component gặp lỗi (fail, downtime) hệ thống sẽ chuyển sang hoạt động trên B ackup  Component . Quá trình chuyển từ Active Component sang Passive Component gọi là 'Fail over'. Một số khái niệm liên quan đến HA: - FailOver: Chuyển đổi tiến trình chạy trên Passive Component khi Active Component gặp sự cố. - Fail Back: Khôi phục lại tiến trình hoạt động trên Active Component sau khi tiến trình dịch chuyển đến Passive Component trong quá trình FailOver. - Fault - Tolerant: Công nghệ giúp đảm bảo tính liên tục của dịch vụ. Trường hợp một thành phần trong hệ thống bị hoạt động gián đoạn vẫn cho phép toàn bộ hệ thống hoạt động ổn định. Load Balancing : Hoạt động với cơ chế Active - Active .