{"id":30342730,"url":"https://github.com/runpod-workers/worker-load-balancing","last_synced_at":"2025-08-18T10:41:47.687Z","repository":{"id":307333884,"uuid":"1029180232","full_name":"runpod-workers/worker-load-balancing","owner":"runpod-workers","description":"A Runpod worker template for load balancing Serverless endpoints.","archived":false,"fork":false,"pushed_at":"2025-07-30T16:35:55.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-30T19:01:25.017Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/runpod-workers.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-30T16:34:02.000Z","updated_at":"2025-07-30T16:37:13.000Z","dependencies_parsed_at":"2025-07-30T19:13:05.530Z","dependency_job_id":null,"html_url":"https://github.com/runpod-workers/worker-load-balancing","commit_stats":null,"previous_names":["runpod-workers/worker-load-balancing"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/runpod-workers/worker-load-balancing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runpod-workers%2Fworker-load-balancing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runpod-workers%2Fworker-load-balancing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runpod-workers%2Fworker-load-balancing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runpod-workers%2Fworker-load-balancing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/runpod-workers","download_url":"https://codeload.github.com/runpod-workers/worker-load-balancing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/runpod-workers%2Fworker-load-balancing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270982135,"owners_count":24679442,"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-08-18T02:00:08.743Z","response_time":89,"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-08-18T10:41:45.974Z","updated_at":"2025-08-18T10:41:47.642Z","avatar_url":"https://github.com/runpod-workers.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Load balancing worker template\n\nThis repo contains all the files necessary to create a basic load balancing worker on Runpod. For end-to-end deployment instructions, refer to the [Runpod documentation](https://docs.runpod.io/load-balancing/build-a-worker).\n\n## Deployment steps\n\n1. Build the image:\n\n```bash\ndocker build --platform linux/amd64 -t YOUR_DOCKER_USERNAME/loadbalancer-example:v1.0 . \n```\n\n2. Push to Docker Hub\n```bash\ndocker push YOUR_DOCKER_USERNAME/loadbalancer-example:v1.0\n```\n\n3. Use this container image path when deploying your endpoint to Runpod\n\n```\nYOUR_DOCKER_USERNAME/loadbalancer-example:v1.0\n```\n\n4. Make sure to expose HTTP ports 5000 and 5001 in your endpoint's container configuration, and add these environmnet variables:\n    - `PORT = 5000`\n    - `PORT_HEALTH = 5001`.\n\n## Test requests\n\nUse the curl commands below to test your endpoint:\n\n```bash\ncurl -X POST \"https://ENDPOINT_ID.api.runpod.ai/generate\" \\\n    -H 'Authorization: Bearer RUNPOD_API_KEY' \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\"prompt\": \"Hello, world!\"}'\n```\n\n```bash\ncurl -X GET \"https://ENDPOINT_ID.api.runpod.ai/ping\" \\\n    -H 'Authorization: Bearer RUNPOD_API_KEY' \\\n    -H \"Content-Type: application/json\"\n```\n\n```bash\ncurl -X GET \"https://ENDPOINT_ID.api.runpod.ai/stats\" \\\n    -H 'Authorization: Bearer RUNPOD_API_KEY' \\\n    -H \"Content-Type: application/json\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunpod-workers%2Fworker-load-balancing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frunpod-workers%2Fworker-load-balancing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frunpod-workers%2Fworker-load-balancing/lists"}