Anh ơi, khi triển khi Load Balance trong trường hợp nào nên chọn thuật toán nào round robin, least connection… Ưu nhược điểm một số thuật toán khi áp dụng thực tế ạ
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Trong hầu hết cách trường hợp em có thể sử dụng round robin để lượng request và tài nguyên được phân bố đều, từ đó việc phục vụ cho nhiều user sẽ tốt hơn.
Tuy nhiên trong 1 số trường hợp em cần cố định rằng, cái ip đó chỉ được vào cái server đó thì em có thể dùng hash ip.
Còn trong trường hợp em muốn request sẽ được xử lý bởi server đang có ít kết nối nhất để tận dụng được sức mạnh của server này em có thể dùng least connection nhé.
Chi tiết em có thể tham khảo tại đây: https://kemptechnologies.com/load-balancer/load-balancing-algorithms-techniques