https://github.com/andrewmarchukov/gateway-failover
many providers on the same gateway load balancing* and failover
https://github.com/andrewmarchukov/gateway-failover
bash-script daemon failover load-balancer loadbalancing
Last synced: 7 months ago
JSON representation
many providers on the same gateway load balancing* and failover
- Host: GitHub
- URL: https://github.com/andrewmarchukov/gateway-failover
- Owner: AndrewMarchukov
- Created: 2017-09-04T13:11:05.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-12T14:08:58.000Z (almost 7 years ago)
- Last Synced: 2025-01-16T00:34:36.971Z (9 months ago)
- Topics: bash-script, daemon, failover, load-balancer, loadbalancing
- Language: Shell
- Homepage:
- Size: 18.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
2 providers on the same gateway load balancing* and failover
Create script which will ping every 5 second popular resources on the Internet:
/usr/local/bin/eq-route.sh
Make it executable: chmod +x /usr/local/bin/eq-route.sh
Create daemon: /etc/systemd/system/eqroute-failover.service
Add autostart: systemctl enable eqroute-failover.service
Start daemon: systemctl start eqroute-failover.service
*Note that balancing will not be perfect, as it is route based, and routes are cached. This means that routes to often-used sites will always be over the same provider.