upstream grpcTic {
server 10.3.152.30:50051 weight=5;
server 10.3.152.31:50052 weight=5;
}
server {
listen 8081 http2;
access_log /var/webos/logs/nginx/grpctest.log;
location / {
grpc_pass grpc://grpcTic;
}
}
记录一下nginx配置文件grpc负载均衡
最新推荐文章于 2024-08-16 22:09:40 发布