{"id":16111321,"url":"https://github.com/bripkens/load-balancing-example","last_synced_at":"2025-08-13T17:07:40.258Z","repository":{"id":24200039,"uuid":"27591385","full_name":"bripkens/load-balancing-example","owner":"bripkens","description":"A load balancing example with Nginx, HAProxy and Node.js","archived":false,"fork":false,"pushed_at":"2014-12-06T06:00:28.000Z","size":120,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-16T03:41:53.209Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/bripkens.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}},"created_at":"2014-12-05T12:51:50.000Z","updated_at":"2019-07-30T18:21:00.000Z","dependencies_parsed_at":"2022-08-22T14:30:17.070Z","dependency_job_id":null,"html_url":"https://github.com/bripkens/load-balancing-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bripkens/load-balancing-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bripkens%2Fload-balancing-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bripkens%2Fload-balancing-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bripkens%2Fload-balancing-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bripkens%2Fload-balancing-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bripkens","download_url":"https://codeload.github.com/bripkens/load-balancing-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bripkens%2Fload-balancing-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270278347,"owners_count":24557172,"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-13T02:00:09.904Z","response_time":66,"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":"2024-10-09T19:41:41.622Z","updated_at":"2025-08-13T17:07:40.174Z","avatar_url":"https://github.com/bripkens.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Load Balancing example\n\nThis project illustrates what a possible setup with HAProxy and Nginx could look\nlike. Requests are load balanced after they have been proxied by Nginx and are\nthen passed to one of two configured web servers, i.e. Node.js processes. To\nillustrate the setup:\n\n```\n+--------------+          +--------------+\n|              |          |              |\n|  Nginx       +----------\u003e  HAProxy     |\n|              |          |              |\n+--------------+          +-+----------+-+\n                            |          |\n                            |          |\n                  +---------v--+      +v-----------+\n                  |            |      |            |\n                  |  Node      |      |  Node      |\n                  |            |      |            |\n                  +------------+      +------------+\n```\n\nEach web server supports simple HTTP endpoints to change the health status of\nthe web servers. This health status is recognized by HAProxy. You can set\nthe web server health by using the `set-health` script\n\n```\n./set-health lb-app1 false\n```\n\nApplication health can be inspected via `http://$DOCKER_IP:8001`. The\nload balanced application itself is available via\n`http://$DOCKER_IP:8000`. There is also an SSI test located at\n`http://$DOCKER_IP:8000/userspace.html`.\n\n## Limitations\n\n - only one Nginx instance\n - only one HAProxy instance\n - web servers have to be registered manually, i.e. there is no service discovery\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbripkens%2Fload-balancing-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbripkens%2Fload-balancing-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbripkens%2Fload-balancing-example/lists"}