{"id":19439038,"url":"https://github.com/spacejam/zk-glove","last_synced_at":"2026-06-10T01:31:17.669Z","repository":{"id":32408615,"uuid":"35985433","full_name":"spacejam/zk-glove","owner":"spacejam","description":"command line tools for distributed orchestration and discovery","archived":false,"fork":false,"pushed_at":"2015-05-22T01:41:18.000Z","size":132,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-21T06:27:50.193Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spacejam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-21T02:09:33.000Z","updated_at":"2019-12-29T19:39:03.000Z","dependencies_parsed_at":"2022-08-23T03:30:41.743Z","dependency_job_id":null,"html_url":"https://github.com/spacejam/zk-glove","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/spacejam/zk-glove","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacejam%2Fzk-glove","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacejam%2Fzk-glove/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacejam%2Fzk-glove/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacejam%2Fzk-glove/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spacejam","download_url":"https://codeload.github.com/spacejam/zk-glove/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spacejam%2Fzk-glove/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34133404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-10T15:20:53.133Z","updated_at":"2026-06-10T01:31:17.648Z","avatar_url":"https://github.com/spacejam.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zk-glove\nA small collection of command line tools for distributed orchestration, backed by zookeeper.\n* *glove* is for attempting to run a command, without crossing a maximum number that may run concurrently.\n* *hat* is for monitoring running commands, and performing certain actions when the membership changes, optionally only once a threshold is (re-)crossed.\n\nTogether these simple tools can facilitate a simple zk-backed service discovery mechanism.  For example, you can run some caches using glove, and use hat to send changes in membership to clients.\n\n```\nGlove Usage \n  -data=\"hostname\": contents of znode (for discovery)\n  -exec=\"echo yaaas\": command to execute\n  -threshold=3: max concurrent commands\n  -zk=\"zk://127.0.0.1:2181/somedir\": zookeeper URI\n```\n```\nHat Usage\n  -delim=\",\": delimiter of node contents\n  -exec=\"echo node data:{}\": command to execute, {} is replaced with delimiter-separated znode data\n  -hardLimit=true: only run command when threshold is reached with different members\n  -pollFreq=30: zk polling frequency\n  -pollJitter=30: zk polling random jitter\n  -threshold=3: max considered nodes\n  -zk=\"zk://127.0.0.1:2181/somedir\": zookeeper URI\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacejam%2Fzk-glove","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspacejam%2Fzk-glove","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspacejam%2Fzk-glove/lists"}