运维
资源调度 标签描述

nginx服务支持负载均衡,分别可以对七层资源和四层资源进行负载均衡调度。其中nginx实现七层资源调度时所使用的模块为ngx_http_upstream_module,实现四层资源调度时,使用的模块为ngx_stream_core_module 例子: http{ ....... } stream{ upstreambackend{ hash$remote_addr;哈希负载 hash$remote_addrconsistent;哈希一致性 least_conn;最小连接数 server192.168.2.145:22weight=5; server192.168.2.159:22weig...

  L83A5jZvvg3Q   2023年11月19日   17   0   0 服务器nginx资源调度