{"id":21260340,"url":"https://github.com/nlm/rdb-autoresize","last_synced_at":"2025-07-31T01:06:42.283Z","repository":{"id":192852543,"uuid":"687561452","full_name":"nlm/rdb-autoresize","owner":"nlm","description":"Beta: Tool to automatically grow your Scaleway RDB volumes","archived":false,"fork":false,"pushed_at":"2023-09-14T08:31:29.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T21:47:33.670Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nlm.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":"2023-09-05T15:53:40.000Z","updated_at":"2023-09-11T08:57:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"cc1bb920-ad8c-43b0-a8d1-2e8825986302","html_url":"https://github.com/nlm/rdb-autoresize","commit_stats":null,"previous_names":["nlm/rdb-autoresize"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlm%2Frdb-autoresize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlm%2Frdb-autoresize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlm%2Frdb-autoresize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlm%2Frdb-autoresize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nlm","download_url":"https://codeload.github.com/nlm/rdb-autoresize/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243695537,"owners_count":20332626,"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":[],"created_at":"2024-11-21T04:17:53.563Z","updated_at":"2025-03-15T06:44:20.555Z","avatar_url":"https://github.com/nlm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RDB Autoresize\n\nAutomatic resizer for RDB volumes.\n\nThis tool helps you keep the size of your Scaleway Database Instances volumes adapted to the\namount of data you store in it.\n\n## How to use\n\nWhat you need:\n\n- A Scaleway API Key (access key + secret key)\n- A Scaleway Database instance\n\n### Using docker compose\n\nExport mandatory variables:\n\n```bash\nexport SCW_ACCESS_KEY=\"a-scaleway-access-key\"\nexport SCW_SECRET_KEY=\"a-scaleway-secret-key\"\nexport SCW_RDB_REGION=\"the-region-your-rdb-instance-is-deployed-on\"\nexport SCW_RDB_INSTANCE_ID=\"your-rdb-instance-id\"\n```\n\nOptionally, you can tweak additional settings:\n\n```bash\n# the % above which triggering will happen. Defaults to 90%\nexport SCW_RDB_TRIGGER_PERCENTAGE=90\n# the limit size of your volume, defaults to 100GB\nexport SCW_RDB_VOLUME_SIZE_LIMIT=100GB\n```\n\nStart the stack:\n\n```bash\ndocker compose up --build\n```\n\n### Manually\n\n```bash\ngo build\n\nexport SCW_ACCESS_KEY=\"a-scaleway-access-key\"\nexport SCW_SECRET_KEY=\"a-scaleway-secret-key\"\nexport SCW_RDB_REGION=\"the-region-your-rdb-instance-is-deployed-on\"\nexport SCW_RDB_INSTANCE_ID=\"your-rdb-instance-id\"\n\n./rdb-autoresize -volume-size-limit 100GB\n```\n\n## Configuration\n\nSeveral parameters can be tweaked via environment variables:\n\n- `SCW_RDB_TRIGGER_PERCENTAGE`: resize will happen when disk usage is above this percentage.\n- `SCW_RDB_VOLUME_SIZE_LIMIT`: resize will no happen if target size is above this.\n\nYou also have some command line options:\n\n- `-trigger-percentage`: equivalient of `SCW_RDB_TRIGGER_PERCENTAGE`\n- `-volume-size-limit`: equivalent of `SCW_RDB_VOLUME_SIZE_LIMIT`\n- `-log-json`: activate json-formatted logging\n- `-debug`: activate debug logging\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlm%2Frdb-autoresize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnlm%2Frdb-autoresize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlm%2Frdb-autoresize/lists"}