Hello,Sorry more of an infrastructure setup question. I want to know what's the best way to expose the health of ProxySQL containers on ECS. I'm thinking of creating a rest api endpoint :6070/health_check which would return a 200 response to a load balancer. Is this going to be expensive on the Proxysql side? Anything else I can do?
--
You received this message because you are subscribed to the Google Groups "proxysql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to proxysql+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/proxysql/e4db772e-4e67-4da0-a156-c6b985fb2a90n%40googlegroups.com.
I don't think this is what i'm looking for.I have a network load balancer(NLB) in front of a Proxysql cluster which uses target groups to perform health checks. These health checks indicate if a proxysql container is healthy and can be forwarded traffic to. There are two types of health checks I can do.In the first case, I get Closing unhealthy client connection after every health check that the NLB makes.
- Using TCP and check if port 6033/6032 is accessible.
- Use HTTP and check port 6070 which will then return a 200 response.
The second case looks promising. Would it slow down proxysql is my question? and also is there another way?--On Saturday, August 6, 2022 at 5:12:29 PM UTC+5:30 smsse...@gmail.com wrote:On Sat, Aug 6, 2022 at 4:24 PM 'Simha Srivatsa' via proxysql <prox...@googlegroups.com> wrote:Hello,Sorry more of an infrastructure setup question. I want to know what's the best way to expose the health of ProxySQL containers on ECS. I'm thinking of creating a rest api endpoint :6070/health_check which would return a 200 response to a load balancer. Is this going to be expensive on the Proxysql side? Anything else I can do?--
You received this message because you are subscribed to the Google Groups "proxysql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to proxysql+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/proxysql/e4db772e-4e67-4da0-a156-c6b985fb2a90n%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "proxysql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to proxysql+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/proxysql/14c512cc-3eff-4ff2-9bdb-96d0f588ac32n%40googlegroups.com.
Hey, I've created an HTTP endpoint. using restapi_routes, and I've used the endpoint in the NLB target group for a health check. This is enough for me to know if the containers are healthyIn the config file, I added this block.restapi:
(
{
id=1
active=1
timeout_ms=1000
method="GET"
uri="health_check"
script="/home/proxysql/shared_utils/health_check.py"
comment="Health check endpoint"
}
)Then used this script to return 200#!/usr/local/bin/python
"""
Return a 200 response
"""
import json
if __name__ == "__main__":
print(json.dumps({"status": 200}))
exit(0)
To view this discussion on the web visit https://groups.google.com/d/msgid/proxysql/409611bf-92b8-443f-b9a5-3520ba7e9eaen%40googlegroups.com.