golang-loadblancer-keepalived

A simple HA config setup with keepalived (VRRP) and golang load balancer

Building

Build for arn architecture

GOOS=linux GOARCH=arm go build main.go server.go -o golang-lb

Build for amd architecture

GOOS=linux GOARCH=amd64 go build main.go server.go -o golang-lb

Usage

./golang-lb –backends=http://192.168.8.161:9000,http://192.168.8.153:9000,http://192.168.8.156:9000,http://192.168.8.159:9000

References

This project is a clone from https://github.com/kasvith/simplelb

I have added the config for HA keepalived to iot backend microservices

GitHub

View Github