Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thejmazz/nginx-load-balancing-node
https://github.com/thejmazz/nginx-load-balancing-node
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/thejmazz/nginx-load-balancing-node
- Owner: thejmazz
- Created: 2016-08-15T21:50:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-15T21:50:28.000Z (over 8 years ago)
- Last Synced: 2024-11-07T08:51:34.837Z (2 months ago)
- Language: JavaScript
- Size: 94.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nginx-load-balancing-node
Simple example to load balance a bunch of node processes with nginx. Uses nginx
in Docker but in production you should not wrap nginx inside a container (NAT
costs).![load-balance](load-balance.gif)
Build:
```
docker-compose build
```Run:
```
docker-compose up
```Then go to `http://localhost`. If you refresh a bunch of times the message should change.