{"id":21578006,"url":"https://github.com/rogerwelin/ansible-nginx","last_synced_at":"2026-04-20T10:05:28.099Z","repository":{"id":34215914,"uuid":"38074074","full_name":"rogerwelin/ansible-nginx","owner":"rogerwelin","description":"dynamic nginx loadbalancer in vagrant","archived":false,"fork":false,"pushed_at":"2015-06-26T21:32:57.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T07:28:32.254Z","etag":null,"topics":["ansible","nginx","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/rogerwelin.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":"2015-06-25T21:03:22.000Z","updated_at":"2015-07-28T12:35:36.000Z","dependencies_parsed_at":"2022-09-04T11:11:57.962Z","dependency_job_id":null,"html_url":"https://github.com/rogerwelin/ansible-nginx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rogerwelin/ansible-nginx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerwelin%2Fansible-nginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerwelin%2Fansible-nginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerwelin%2Fansible-nginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerwelin%2Fansible-nginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rogerwelin","download_url":"https://codeload.github.com/rogerwelin/ansible-nginx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rogerwelin%2Fansible-nginx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32042310,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["ansible","nginx","ruby"],"created_at":"2024-11-24T13:09:19.267Z","updated_at":"2026-04-20T10:05:28.081Z","avatar_url":"https://github.com/rogerwelin.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-nginx\n\n## Synopsis\nThis project uses vagrant + ansible (and some homecooked scripting skills) to dynamically create a nginx round-robin load balancer cluster with any number of nodes (default 3) that connects\nto the load balancer using etcd as a service discovery\n\n## Requirements\n* Vagrant must be installed on the host machine\n* Ansible must be installed on the host machine\n* Host machine needs to reach https://github.com (for fetching etcd)\n* Port 9999 on host machine needs to be unused, otherwise change this port in Vagrantfile\n\n## Instructions\n* To change number of nginx nodes used by the load balancer, change the value of the variable 'NUM_NODES' in Vagrantfile\n* vagrant up\n* run ruby script to calculate the distributed load across the nodes:\n```shell\n./epicrubylb.rb\nCommand-line utility for calculating even lb ngix round-robin load.\n\n  ./epicrubylb.rb [-n Number of requests to lb]\n\n  Example: ./epicrubylb.rb -n 100\n\n  Expected output:\n  node1: 50\n  node2: 50\n    -n, --num-requests [Requests]    The total number of request sent to lb\n    -h, --help                       help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogerwelin%2Fansible-nginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frogerwelin%2Fansible-nginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frogerwelin%2Fansible-nginx/lists"}