Active-Passive Load Balancer

Introduction In this post, we will set up load balancers in High Availability mode. We will be setting up the load balancers in an active-passive fail-over configuration. I will be using HAProxy as the load balancer and Apache web server, but you can try with Nginx as well. To set up an active-passive configuration we need some process that periodically checks the active load balancer and as soon as it goes down, it should promote the passive one to be active....

September 2, 2023

Dockerfile CMD vs ENTRYPOINT

Introduction ENTRYPOINT is the command that is run CMD is the parameter passed to the command. FROM ubuntu ENTRYPOINT ["sleep"] CMD ["5m"] For example in this case we are overriding the default command of ubuntu docker image with sleep command and the default parameters for that command is 5m.

December 23, 2022