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

New APi support - “update health in none health check mode through api” #579

Closed
nanamikon opened this issue Jan 7, 2019 · 0 comments
Assignees
Milestone

Comments

@nanamikon
Copy link
Contributor

nanamikon commented Jan 7, 2019

Demand:

需求:

For services that do not require Nacos health checks, there is a need to update their instance health status through external health check data sources.

// 对于不需要nacos健康检查的服务, 有通过外部健康检查数据源, 更新其实例健康状态的需求。

All you need to do is update your health status, and no other information needs to be updated.

// 只需要更新健康状态,其他信息不需要更新

The plan:

方案:

  1. Nacos provides API for updating the health of specified service instances

// 1、nacos提供api, 用于更新指定服务实例的健康情况

url

POST /v1/ns/health

param

serviceName
clusterName
ip
port
valid

  1. DistroMapper. Responsibility (dom) is used to determine whether the request belongs to this server processing or not.

// 2、通过 DistroMapper.responsible(dom) 判断是否属于本server处理, 不是则转发请求

  1. Only when the health examination mode is none will the health status be updated.

// 3、只有健康检查模式是none的,才会进行更新健康状态

  1. After successful update, return to 200

// 4、成功更新后, 返回200

!!!!WE STRONGLY ENCOURAGE YOU TO DESCRIBE YOUR ISSUE IN ENGLISH!!!!

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

4 participants