{"id":28619663,"url":"https://github.com/eleme/ruskit","last_synced_at":"2025-09-07T05:34:06.366Z","repository":{"id":52705927,"uuid":"42987042","full_name":"eleme/ruskit","owner":"eleme","description":"Redis cluster administration toolkit","archived":false,"fork":false,"pushed_at":"2021-04-20T17:04:24.000Z","size":105,"stargazers_count":35,"open_issues_count":8,"forks_count":15,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-07-12T07:49:01.361Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/eleme.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}},"created_at":"2015-09-23T08:03:18.000Z","updated_at":"2025-05-27T09:05:12.000Z","dependencies_parsed_at":"2022-08-22T08:00:28.045Z","dependency_job_id":null,"html_url":"https://github.com/eleme/ruskit","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/eleme/ruskit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eleme%2Fruskit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eleme%2Fruskit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eleme%2Fruskit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eleme%2Fruskit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eleme","download_url":"https://codeload.github.com/eleme/ruskit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eleme%2Fruskit/sbom","scorecard":{"id":372128,"data":{"date":"2025-08-11","repo":{"name":"github.com/eleme/ruskit","commit":"2e8c5a3f6a65b8aeb07012b4e2c8ba324d887c3b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2020-92 / GHSA-hj5v-574p-mj7c","Warn: Project is vulnerable to: PYSEC-2022-42969"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T13:12:58.782Z","repository_id":52705927,"created_at":"2025-08-18T13:12:58.782Z","updated_at":"2025-08-18T13:12:58.782Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273997287,"owners_count":25204514,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"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":"2025-06-12T04:40:54.225Z","updated_at":"2025-09-07T05:34:06.303Z","avatar_url":"https://github.com/eleme.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruskit\n\n[![Build Status](https://travis-ci.org/eleme/ruskit.svg?branch=master)](https://travis-ci.org/eleme/ruskit)\n[![Version](https://img.shields.io/pypi/v/ruskit.svg)](https://pypi.python.org/pypi/ruskit)\n\nRedis cluster administration toolkit.\n\n## Usage\n\n```bash\npip install ruskit\n# Note that `addslaves` command requires python-igraph which is not installed by default\n# Run the command below if you need `addslaves`\npip install ruskit[addslaves]\n```\n\n##### Create cluster\n\n```bash\nruskit create -s 1 192.168.0.11:{8000,8001,8002} 192.168.0.12:{8000,8001,8002}\n```\n\n##### Add nodes\n\n```bash\n# Add masters:\nruskit add 192.168.0.11:8000 192.168.0.13:8000 192.168.0.14:8000\n\n# Add slaves:\n# ruskit add \u003cnode belong to cluster\u003e \u003cslave node\u003e,\u003cmaster node\u003e\nruskit add 192.168.0.11:8000 192.168.0.14:8001,192.168.0.13:8000\n\n# ruskit addslaves [--peek] [--slaves-limit \u003cmax slaves count\u003e] \u003cnode belong to cluster\u003e \u003cslave node\u003e [\u003cslave node\u003e ...]\nruskit addslaves --peek --slaves-limit 3 192.168.0.11:8000 192.168.0.14:8001 192.168.0.14:8002\n```\n\n##### Query cluster info\n\n```bash\nruskit info 192.168.0.11:8000\n```\n\n##### Delete nodes\n\n```bash\nruskit delete 192.168.0.11:8000 192.168.0.13:8000\n```\n\n##### Migrate slots\n\n```bash\n# migrate 100 slots from 192.168.0.11:8000 to 192.168.0.12:8000\nruskit migrate -d 192.168.0.12:8000 -c 100 192.168.0.11:8000\n\n# migrate all slots from 192.168.0.11:8000 to 192.168.0.12:8000\nruskit migrate -d 192.168.0.12:8000 192.168.0.11:8000\n\n# migrate slot 866 from 192.168.0.11:8000 to 192.168.0.12:8000\nruskit migrate -d 192.168.0.12:8000 -s 866 192.168.0.11:8000\n\n# migrate 100 slots from 192.168.0.11:8000 to other nodes in the cluster\nruskit migrate -c 100 192.168.0.11:8000\n\n# migrate 100 slots from the cluster to 192.168.0.11:8000\nruskit migrate -c 100 -i 192.168.0.11:8000\n```\n\n##### Balance slots\n\n```bash\nruskit reshard 192.168.0.11:8000\n```\n\n##### Fix cluster\n\n```bash\nruskit fix 192.168.0.11:8000\n```\n\n##### Replicate\n\n```bash\nruskit replicate 192.168.0.14:8001 192.168.0.11:8000\n```\n\n##### Destroy cluster\n\n```bash\nruskit destroy 192.168.0.11:8000\n```\n\n##### Flushall data\n\n```bash\nruskit flushall 192.168.0.11:8000\n```\n\n##### View slowlog(Recent 128 logs per node)\n\n```bash\nruskit slowlog 192.168.0.11:8000\n```\n\n##### View nodes distribution\n```bash\n# ruskit peek \u003cnode belong to cluster\u003e\nruskit peek 192.168.0.11:8000\n```\n\n## Test\n```\npip install -r test_requirements.txt\npy.test tests/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feleme%2Fruskit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feleme%2Fruskit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feleme%2Fruskit/lists"}