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

nacos集群部署后,出现部分服务的实例宕机后依旧存在的情况 #826

Open
Qutianyawangyue opened this issue Oct 24, 2024 · 0 comments

Comments

@Qutianyawangyue
Copy link

nacos镜像版本:2.2.3
部署情况:k8s内集群部署
客户端连接方式:所有服务均使用spring_boot集成

问题背景:
k8s集群内的服务,强制关机唯一的节点后,部分服务的实例注册一直存在,并且显示健康状态(确认服务器已经强制关机,并且没有任何节点可调度)。如果是单纯的删除pod,服务会自动下线,没有异常,但是如果强制关机node节点,则会出现只下线一部分instance实例的情况,剩余实例仍显示健康,并且为可用。

配置:
所有客户端心跳配置均一致:
preserved.heart.beat.timeout=11000
preserved.ip.delete.timeout=16000
preserved.register.source=SPRING_CLOUD
preserved.heart.beat.interval=5000

服务端naming配置:
nacos.naming.expireInstance=true

### will be removed and replaced by `nacos.naming.clean` properties
nacos.naming.empty-service.auto-clean=true
nacos.naming.empty-service.clean.initial-delay-ms=50000
nacos.naming.empty-service.clean.period-time-ms=30000

### Add in 2.0.0
### The interval to clean empty service, unit: milliseconds.
nacos.naming.clean.empty-service.interval=10000

### The expired time to clean empty service, unit: milliseconds.
nacos.naming.clean.empty-service.expired-time=60000

### The interval to clean expired metadata, unit: milliseconds.
nacos.naming.clean.expired-metadata.interval=500

### The expired time to clean metadata, unit: milliseconds.
nacos.naming.clean.expired-metadata.expired-time=500

### The delay time before push task to execute from service changed, unit: milliseconds.
nacos.naming.push.pushTaskDelay=500

### The timeout for push task execute, unit: milliseconds.
nacos.naming.push.pushTaskTimeout=5000

### The delay time for retrying failed push task, unit: milliseconds.
nacos.naming.push.pushTaskRetryDelay=1000

### Since 2.0.3
### The expired time for inactive client, unit: milliseconds.
nacos.naming.client.expired.time=180000
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

1 participant