{"id":18806725,"url":"https://github.com/lefred/mysql_gr_routing_check","last_synced_at":"2026-03-07T04:32:31.456Z","repository":{"id":140210560,"uuid":"66170059","full_name":"lefred/mysql_gr_routing_check","owner":"lefred","description":"MySQL Group Replication Routing/Heath Check script","archived":false,"fork":false,"pushed_at":"2018-10-12T11:38:37.000Z","size":15,"stargazers_count":44,"open_issues_count":2,"forks_count":43,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-10-05T00:51:37.923Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lefred.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":"2016-08-20T22:08:02.000Z","updated_at":"2025-06-28T09:35:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"40d47d24-72ce-4ec3-9614-48ba2025e0fc","html_url":"https://github.com/lefred/mysql_gr_routing_check","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lefred/mysql_gr_routing_check","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lefred%2Fmysql_gr_routing_check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lefred%2Fmysql_gr_routing_check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lefred%2Fmysql_gr_routing_check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lefred%2Fmysql_gr_routing_check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lefred","download_url":"https://codeload.github.com/lefred/mysql_gr_routing_check/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lefred%2Fmysql_gr_routing_check/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30208042,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T03:24:23.086Z","status":"ssl_error","status_checked_at":"2026-03-07T03:23:11.444Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-07T22:49:24.624Z","updated_at":"2026-03-07T04:32:30.672Z","avatar_url":"https://github.com/lefred.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mysql_gr_routing_check\nMySQL Group Replication Routing/Heath Check script\n\nThis script can be used with HA Proxy for example.\n\nYou need to call it via xinetd, this is an example::\n\n    # default: on\n    # description: check to see if the node is a viable routing candidate\n    service mysql_gr_routing_check_write\n    {\n        disable = no\n        flags = REUSE\n        socket_type = stream\n        port = 6446\n        wait = no\n        user = mysql\n        server = /usr/local/bin/mysql_gr_routing_check.sh\n        server_args = 100 write\n        log_on_failure += USERID\n        only_from = localhost 192.168.90.0/24\n        per_source = UNLIMITED\n    }\n\nThe script can take two optional arguments: \n\n- amount of max transactions in queue to be processed by the Group Member (trx behind), default is 100\n- the role, READ or WRITE, default is WRITE\n\nUsage example::\n\n    [root@mysql1 bin]# telnet 192.168.90.2 6446\n    Trying 192.168.90.2...\n    Connected to 192.168.90.2.\n    Escape character is '^]'.\n    HTTP/1.1 200 OK\n    Content-Type: text/plain\n    Connection: close\n    Content-Length: 40\n\n    Group Replication member is a viable routing candidate for write.\n    Connection closed by foreign host.\n\n\n    [root@mysql1 bin]# telnet 192.168.90.2 6447\n    Trying 192.168.90.2...\n    Connected to 192.168.90.2.\n    Escape character is '^]'.\n    HTTP/1.1 200 OK\n    Content-Type: text/plain\n    Connection: close\n    Content-Length: 40\n\n    Group Replication member is a viable routing candidate for read.\n    Connection closed by foreign host.\n\n\n**Don't forget that you need some addition to sys schema. These are not yet released in the default sys schema**\n\nTo install the missing functions and views, please import ```addition_to_sys.sql```:\n\n    mysql \u003c addition_to_sys.sql \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flefred%2Fmysql_gr_routing_check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flefred%2Fmysql_gr_routing_check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flefred%2Fmysql_gr_routing_check/lists"}