-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
feat(balancer) use lua-resty-dns-client healthThreshold attrib #5206
Conversation
instead of the query argument, cannot we add the balancer health in the top elelements of the response as shown here: https://docs.konghq.com/1.4.x/admin-api/#show-upstream-health-for-node {
"total": 2,
"node_id": "cbb297c0-14a9-46bc-ad91-1d0ef9b42df9",
"status": "HEALTHY", --------> this one added
"data": [
{
"created_at": 1485524883980,
"id": "18c0ad90-f942-4098-88db-bbee3e43b27f",
"health": "HEALTHY",
"target": "127.0.0.1:20000",
"upstream_id": "07131005-ba30-4204-a29f-0927d53257b4",
"weight": 100
},
{
"created_at": 1485524914883,
"id": "6c6f34eb-e6c3-4c1f-ac58-4060e5bca890",
"health": "UNHEALTHY",
"target": "127.0.0.1:20002",
"upstream_id": "07131005-ba30-4204-a29f-0927d53257b4",
"weight": 200
}
]
} |
5d7b4ba
to
4e136e9
Compare
@Tieske I discussed this with @locao and I suggested the query argument as a way to add the feature without incurring in a breaking change for the format (and subsequent adjustments to any tooling built around Kong's health info, etc.) and we agreed this was a good way to go. The rationale was that the configuration and behavior of healthchecks are already pretty complicated as is, and given that the default for |
@locao |
2883547
to
5c006d2
Compare
fb8f036
to
767ff41
Compare
added unit test healthchecks.threshold param validation
767ff41
to
655e2fc
Compare
added unit test healthchecks.threshold param validation
threshold
tohealthchecks
inupstreams
entities.balancer_health
for the endpoint/upstreams/:upstream_id/health
. Whenbalancer_health=1
, the endpoint returns the balancer health, instead of the targets' health.