-
Notifications
You must be signed in to change notification settings - Fork 31
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
支持类似nginx的一致性hash吗? #30
Comments
可以参考一下文档:http://pingap.io/pingap-zh/docs/upstream/#algo%E7%9A%84hash |
现在这个hash是一致性hash吗?类似 |
是的,pingora有实现相关算法的模块,pingora-ketama |
明白,再咨询一下,现在支持反向代理websocket吗, 如果有websocket的一直连着那么热重启还能生效吗? |
支持websocket的,热重启并不会中断连接中的请求,而且pingap已经支持大部分的配置均是热更新,不需要启动新的实例。 |
明白,
另外如果支持http3,是不是能只当请求为http2的时候才添加头 add_header Alt-Svc 'h3=":443";ma=99999;persist=1';
这里实现上有个小坑:参见 tower-rs/tower-http#490
nginx响应头还支持变量
最后,能不搞一个类似roadmap的开发蓝图 |
Pingap是基于pingora开发的,所以基础能力受限于pingora的支持。
由于pingap暂时还只是我业余时间开发的项目,现在还未正式1.0版本,后续正式版本之后会添加对应的roadmap |
This question has been stale for a week. It will be closed in an additional day if not updated. |
This issue has been closed because it has been stalled with no activity. |
https://blog.csdn.net/zhangskd/article/details/50256111
Nginx的负载均衡 - 一致性哈希 (Consistent Hash)
用法类似
The text was updated successfully, but these errors were encountered: