如何增加 HAProxy 中的会话限制
How to increase the Sessions Limit in HAProxy
我在我的 HAProxy 统计报告中看到
Sessions Curr、Max、Limit 均为 2000。
如何将 Max 和 Limit 增加到 2000 以上?
使用maxconn
Sets the maximum per-process number of concurrent connections to <number>
来源:https://cbonte.github.io/haproxy-dconv/configuration-1.6.html#maxconn
它是 maxconn
选项,但不在@Ton Hong Tat 提到的全局部分。
maxconn
Fix the maximum number of concurrent connections on a frontend
前端最大会话的文档:
https://cbonte.github.io/haproxy-dconv/1.8/snapshot/configuration.html#4-maxconn
为了增加maxconn。
使用您喜欢的编辑器编辑 haproxy
在前端 http 下,添加以下内容
maxconn 4000
例子如下
前端本地节点
bind *:8080
mode http
default_backend nodes
maxconn 4000
我在我的 HAProxy 统计报告中看到
Sessions Curr、Max、Limit 均为 2000。
如何将 Max 和 Limit 增加到 2000 以上?
使用maxconn
Sets the maximum per-process number of concurrent connections to <number>
来源:https://cbonte.github.io/haproxy-dconv/configuration-1.6.html#maxconn
它是 maxconn
选项,但不在@Ton Hong Tat 提到的全局部分。
maxconn Fix the maximum number of concurrent connections on a frontend
前端最大会话的文档: https://cbonte.github.io/haproxy-dconv/1.8/snapshot/configuration.html#4-maxconn
为了增加maxconn。
使用您喜欢的编辑器编辑 haproxy 在前端 http 下,添加以下内容 maxconn 4000
例子如下
前端本地节点
bind *:8080
mode http
default_backend nodes
maxconn 4000