{"id":16991890,"url":"https://github.com/polykit/peertube-autoscale-runners","last_synced_at":"2026-05-20T14:43:04.162Z","repository":{"id":206860732,"uuid":"717852141","full_name":"polykit/peertube-autoscale-runners","owner":"polykit","description":"A simple program to scale Peertube runners for video transcoding","archived":false,"fork":false,"pushed_at":"2024-03-13T20:53:33.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-16T17:18:44.750Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/polykit.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-11-12T19:50:16.000Z","updated_at":"2023-11-30T17:16:11.000Z","dependencies_parsed_at":"2023-11-12T21:24:29.993Z","dependency_job_id":"8953fb2c-abf8-4751-a153-cfda93a36835","html_url":"https://github.com/polykit/peertube-autoscale-runners","commit_stats":null,"previous_names":["polykit/peertube-autoscale-runners"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polykit%2Fpeertube-autoscale-runners","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polykit%2Fpeertube-autoscale-runners/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polykit%2Fpeertube-autoscale-runners/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polykit%2Fpeertube-autoscale-runners/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polykit","download_url":"https://codeload.github.com/polykit/peertube-autoscale-runners/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244902927,"owners_count":20529115,"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-10-14T03:27:41.328Z","updated_at":"2026-05-20T14:43:04.109Z","avatar_url":"https://github.com/polykit.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Peertube Autoscale Runners\n\nThis is a simple program which polls a Peertube database and watches pending transcoding jobs.\nWhen a certain threshold is reached a script is executed, another script is exectued when runners are idle. This can be used to scale up/scale down runnners for transcoding when needed. It also emits Prometheus metrics on transcoding jobs in database.\n\n## Usage\n\n```\n$ ./peertube-autoscale-runners --help\nUsage of ./peertube-autoscale-runners:\n  -db string\n    \tDatabase name (default \"peertube1\")\n  -down string\n    \tScale down command\n  -host string\n    \tDatabase host (default \"localhost\")\n  -listen-address string\n    \tMetrics port (default \":9042\")\n  -max-runners int\n    \tMaximum amount of runners (default 1)\n  -min-pending int\n    \tMinimum pending jobs before scaling up (default 10)\n  -min-runners int\n    \tMinimum amount of runners\n  -password string\n    \tDatabase password\n  -port int\n    \tDatabase port (default 5432)\n  -reconcile duration\n    \tReconcile delay (default 5m0s)\n  -runner-prefix string\n    \tPrefix of runner name (default \"runner\")\n  -up string\n    \tScale up command\n  -user string\n    \tDatabase user (default \"peertube1\")\n```\n\nAn environment variable `RUNNER_NAME` is passed to the up and down command and consists of a given prefix followed by a number.\n\n## References\n\nhttps://github.com/Chocobozzz/PeerTube\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolykit%2Fpeertube-autoscale-runners","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolykit%2Fpeertube-autoscale-runners","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolykit%2Fpeertube-autoscale-runners/lists"}