{"id":21670931,"url":"https://github.com/tkuchiki/haproxy-external-check","last_synced_at":"2026-05-06T22:35:48.627Z","repository":{"id":70076042,"uuid":"91411512","full_name":"tkuchiki/haproxy-external-check","owner":"tkuchiki","description":null,"archived":false,"fork":false,"pushed_at":"2017-05-17T03:14:11.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-25T09:11:07.746Z","etag":null,"topics":["docker","haproxy","testing"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tkuchiki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-16T03:47:25.000Z","updated_at":"2017-05-24T14:02:40.000Z","dependencies_parsed_at":"2023-04-26T18:54:00.393Z","dependency_job_id":null,"html_url":"https://github.com/tkuchiki/haproxy-external-check","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkuchiki%2Fhaproxy-external-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkuchiki%2Fhaproxy-external-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkuchiki%2Fhaproxy-external-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkuchiki%2Fhaproxy-external-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkuchiki","download_url":"https://codeload.github.com/tkuchiki/haproxy-external-check/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244574795,"owners_count":20474818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","haproxy","testing"],"created_at":"2024-11-25T12:37:15.591Z","updated_at":"2026-05-06T22:35:48.579Z","avatar_url":"https://github.com/tkuchiki.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# haproxy-external-check\n\n\n## build\n\n```console\n$ docker-compose build\n```\n\n## run\n\n```console\n$ docker-compose up -d\n```\n\n## example\n\n```console\n# docker host\n$ docker exec -it $(docker ps | grep _haproxy | awk '{print $1}') /bin/bash\n\n# \n$ curl -X PUT -d \"maintenance\" http://consul:8500/v1/kv/db_maintenance/slave1\ntrue\n\n$ tail /var/log/haproxy.log\n...\nMay 16 07:22:24 localhost haproxy[1]: Server b_mysql_slave/slave1 is DOWN, reason: External check error, code: 1, check duration: 14ms. 1 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.\nMay 16 07:22:24 localhost haproxy[1]: Server b_mysql_slave/slave1 is DOWN, reason: External check error, code: 1, check duration: 14ms. 1 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.\n...\n\n$ curl -X DELETE http://consul:8500/v1/kv/db_maintenance/slave1\ntrue\n\n$ tail /var/log/haproxy.log\n...\nMay 16 07:24:20 localhost haproxy[1]: Server b_mysql_slave/slave1 is UP, reason: External check passed, code: 0, check duration: 17ms. 2 active and 0 backup servers online. 0 sessions requeued, 0 total in queue.\nMay 16 07:24:20 localhost haproxy[1]: Server b_mysql_slave/slave1 is UP, reason: External check passed, code: 0, check duration: 17ms. 2 active and 0 backup servers online. 0 sessions requeued, 0 total in queue.\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkuchiki%2Fhaproxy-external-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkuchiki%2Fhaproxy-external-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkuchiki%2Fhaproxy-external-check/lists"}