{"id":15466213,"url":"https://github.com/mozamimy/mimikyu","last_synced_at":"2026-05-20T07:14:12.421Z","repository":{"id":149986371,"uuid":"190324662","full_name":"mozamimy/mimikyu","owner":"mozamimy","description":"Tiny proxy of ElastiCahce Memceched configuration endpoint","archived":false,"fork":false,"pushed_at":"2019-06-06T03:49:19.000Z","size":67,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-18T23:14:36.971Z","etag":null,"topics":["aws","elasticache","memcached-server"],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/mozamimy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2019-06-05T04:15:09.000Z","updated_at":"2021-10-26T12:37:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"95e691ce-9229-4acc-a7d1-7d0f11defc51","html_url":"https://github.com/mozamimy/mimikyu","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"ca95674641b16ae6249bdf507899315a8cb747a1"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mozamimy/mimikyu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozamimy%2Fmimikyu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozamimy%2Fmimikyu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozamimy%2Fmimikyu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozamimy%2Fmimikyu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mozamimy","download_url":"https://codeload.github.com/mozamimy/mimikyu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozamimy%2Fmimikyu/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260806898,"owners_count":23066037,"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":["aws","elasticache","memcached-server"],"created_at":"2024-10-02T01:05:28.111Z","updated_at":"2026-05-20T07:14:12.347Z","avatar_url":"https://github.com/mozamimy.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mimikyu\n\n[![CircleCI](https://circleci.com/gh/mozamimy/mimikyu.svg?style=svg)](https://circleci.com/gh/mozamimy/mimikyu)\n\nMimikyu is a tiny proxy of ElastiCahce Memceched configuration endpoint designed for safe migration between 2 Memcached clusters.\n\nThis implementation is very rough. Please test carefully with your Memcached client before use in production.\n\n## How Mimikyu works\n\nAmazon ElasiCahce Memcached has a mechanism for auto-discovery nodes consists of a Memcached cluster. The configuration endpoint provides the feature.\n\nA Memcached client implemented the auto-discovery protocol fetches all node information (endpoint, port, and so on.) from the endpoint by use `config get cluster` command.\n\n- https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/AutoDiscovery.html\n- https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/AutoDiscovery.HowAutoDiscoveryWorks.html\n\nMimikyu emulates the configuration endpoint. When Mimikyu receives a request from client,\n\n- If the sent command is `stats`\n    - Execute same `stats` command to upstream primary cluster. Then, send the response to the client as it as.\n    - Respond with secondary stats when primary endpoint is down.\n- If the sent command is `config get cluster`\n    - Execute `config get cluster` for upstream primary/secondary clusters and collect the responses.\n    - Then, put the endpoint information together as a single response for the client.\n- If other commands is sent, Mimikyu just returns `SERVER_ERROR` and close the connection from client.\n- Also Mimikyu returns error when primary and secondary upstream is down or not exist.\n\n![](docs/how_it_works.png)\n\nAs a result, the client of Mimikyu can discover all nodes included primary cluster and secondary cluster. Hence, we can decrease nodes of primary cluster gradually. \n\n## Usage\n\nSee `mimikyu --help`.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozamimy%2Fmimikyu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmozamimy%2Fmimikyu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozamimy%2Fmimikyu/lists"}