Jef Practice: Nginx loadbalancer for Sensu Go cluster

Hey!
I’ve setup a simple Nginx loadbalancer in my local testing environment and I thought I’d share it. The load balancer includes a reverse proxy configuration for the Sensu dashboard, api and most importantly the agent websocket.

The use of the websocket is the only newish wrinkle compared to Sensu classic, and its just a minor configuration tweak to support it. Nginx has the ability to proxy for websocket support as of version 1.4 I believe. So make sure your Nginx is new enough to support the websocket reverse proxy. Ref: https://www.nginx.com/blog/websocket-nginx/

simple loadbalancer