Skip to content
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

upstream无法触发轮询策略 #16

Open
1926813494 opened this issue Jan 5, 2025 · 1 comment
Open

upstream无法触发轮询策略 #16

1926813494 opened this issue Jan 5, 2025 · 1 comment

Comments

@1926813494
Copy link

openresty版本:openresty-1.25.3.2
nacos:2.4.3

upstream 配置:
upstream test {
nacos_subscribe_service service_name=test group=DEFAULT_GROUP weight=1 max_fails=1 fail_timeout=10s;
}

location /admin/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://test/;
}

启动3个服务,访问请求,发现一直只请求第一个服务,没有进行轮询请求

@zhwaaaaaa
Copy link
Collaborator

zhwaaaaaa commented Jan 8, 2025

确保 服务是健康状态,并且 未被下线。不健康或者被下线的服务会被 忽略掉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants