ini 测试配置haproxy用于gRPC负载均衡

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ini 测试配置haproxy用于gRPC负载均衡相关的知识,希望对你有一定的参考价值。

global
  tune.ssl.default-dh-param 1024
 
defaults
  timeout connect 10000ms
  timeout client 60000ms
  timeout server 60000ms
 
frontend fe_http
  mode http
  bind *:8000
  # Redirect to https
  redirect scheme https code 301
 
frontend fe_https
  mode tcp
  bind *:8443 npn spdy/2 alpn h2,http/1.1
  default_backend be_grpc

# gRPC servers running on port 8083-8084
backend be_grpc
  mode tcp
  balance roundrobin
  server srv01 127.0.0.1:8083
  server srv02 127.0.0.1:8084

以上是关于ini 测试配置haproxy用于gRPC负载均衡的主要内容,如果未能解决你的问题,请参考以下文章

ini 自定义Rancher负载均衡器haproxy.cfg

ini 自定义Rancher负载均衡器haproxy.cfg

负载均衡之haproxy-----haproxy负载均衡+pcs高可用+fence

haproxy负载均衡配置

GRPC负载均衡

RHEL 7配置HAProxy实现Web负载均衡