dyrnq commented on issue #8856: URL: https://github.com/apache/apisix/issues/8856#issuecomment-1436769240
I have noticed that nacos discovery use the query parameter `healthyOnly=true` to filter unhealthy endpoints. But I haven't verified this, just from the perspective of code analysis in <https://github.com/apache/apisix/blob/master/apisix/discovery/nacos/init.lua#L39> and the docs of nacos <https://nacos.io/en-us/docs/open-api.html>. <h3 style="padding: 0px; margin: 24px 0px 16px; font-weight: 600; box-sizing: border-box; font-size: 1.25em; line-height: 1.25; color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Request Path</h3><pre style="padding: 16px; margin: 0px 0px 16px; box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; overflow-wrap: normal; overflow: auto; line-height: 1.45; background-color: rgb(246, 248, 250 ); border-radius: 3px; color: rgb(36, 41, 46); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><code class="language-plain" style="padding: 0.5em; margin: 0px; box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; background: rgb(30, 30, 30); border-radius: 3px; word-break: normal; white-space: pre; border: 0px; display: block; overflow: auto visible; line-height: inherit; overflow-wrap: normal; color: rgb(220, 220, 220);">/nacos/v1/ns/instance/list </code></pre><h3 style="padding: 0px; margin: 24px 0px 16px; font-weight: 600; box-sizing: border-box; font-size: 1.25em; line-height: 1.25; color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Request Parameters</h3> Name | Type | Required | Description -- | -- | -- | -- serviceName | String | yes | Service name groupName | String | no | group name namespaceId | String | no | ID of namespace clusters | String, splited by comma | no | Cluster name healthyOnly | boolean | no, default value is false | Return healthy instance or not -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
