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

关于机器端口限制导致的 PUSH-FAIL 问题 #12697

Open
VetchM opened this issue Sep 26, 2024 · 5 comments
Open

关于机器端口限制导致的 PUSH-FAIL 问题 #12697

VetchM opened this issue Sep 26, 2024 · 5 comments
Labels
kind/question Category issues related to questions or problems

Comments

@VetchM
Copy link

VetchM commented Sep 26, 2024

example

我们的环境里 service A,nacos 服务端, client a 都在不同的机器上部署,nacos 所在机器开放了对应的 8848,9848,9849 端口。目前遇到的问题是:

  1. client a 通过服务发现调用 service A 时,报错 service A 找不到。client a 的 nacos 日志里相关的错误是"do not have useful host"
  2. 本地手动调用 SubscribeService ,返回的 service A 相关的数据里,host 字段为空,其它字段正常
  3. 检查 service A 的 nacos 日志,未发现错误
  4. 检查 nacos 服务端的日志,在 naming-push.log 里发现了大量的 PUSH-FAIL,原因是超时

我主要有这两个疑问:
1. 根据以往的 issue 来看,应该是端口不通导致的 PUSH-FAIL。但为什么只有 host 字段没有数据呢?
2. service A 和 client a 所在的机器是否必须对 nacos 服务端所在的机器开放所有端口的访问权限?(因为服务重启后端口会改变,似乎没有固定端口的配置项)

@YunWZ
Copy link
Contributor

YunWZ commented Sep 26, 2024

host和服务实例相关,检查service A的实例是否健康

@VetchM
Copy link
Author

VetchM commented Sep 26, 2024

host和服务实例相关,检查service A的实例是否健康

service A 服务是正常的,nacos sdk 的日志里健康检查相关的请求没有错误。还有那个方向可以排查下呢?

@YunWZ
Copy link
Contributor

YunWZ commented Sep 26, 2024

host和服务实例相关,检查service A的实例是否健康

service A 服务是正常的,nacos sdk 的日志里健康检查相关的请求没有错误。还有那个方向可以排查下呢?

nacos控制台上能看到服务实例的host么?(一般是ip地址)

@VetchM
Copy link
Author

VetchM commented Sep 26, 2024

host和服务实例相关,检查service A的实例是否健康

service A 服务是正常的,nacos sdk 的日志里健康检查相关的请求没有错误。还有那个方向可以排查下呢?

nacos控制台上能看到服务实例的host么?(一般是ip地址)

服务变成了下线的状态(原因还不确定),我们手动上线后可以调通了。请问 nacos 是否会自动下线服务呢?

@KomachiSion
Copy link
Collaborator

nacos不会自动下线服务, 控制台看到他是下线就是两种情况:

  1. 注册的时候, 设置了instance的enabled=false
  2. 调用了更新实例接口,修改了enabled=false

@KomachiSion KomachiSion added the kind/question Category issues related to questions or problems label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Category issues related to questions or problems
Projects
None yet
Development

No branches or pull requests

3 participants