Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【Q135】负载均衡有哪几种方式,它们的原理是什么 #136

Open
shfshanyue opened this issue Dec 18, 2019 · 2 comments
Open

Comments

@shfshanyue
Copy link
Owner

No description provided.

@shfshanyue
Copy link
Owner Author

TODO

@shfshanyue shfshanyue changed the title 【135】负载均衡有哪几种方式,它们的原理是什么 【Q135】负载均衡有哪几种方式,它们的原理是什么 Dec 18, 2019
@ansonlovecoding
Copy link

1.轮询:根据请求顺序依次分发到不同的机器;
2.最小连接数:将请求分发到连接数最少的机器;
3.IP哈希:对客户端的IP进行哈希计算,根据哈希值分配机器这样可保证相同IP永远分配到同一台机器;
4.加权轮询和加权最小连接数:对服务器进行额外的权重配置,权重越大分配到的概率越大;
5.随机:随机进行分发;
6.内容感知路由:根据请求内容的URL,HTTP头等信息判断分发到哪台机器;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants