In this post, you learned how to install the open-source edition of HAProxy on one of the most popular and most powerful operating systems around, Ubuntu 20.04. It will walk you through the steps to balance your traffic like a pro. On the HAProxy blog, head over to HAProxy Configuration Basics: Load Balance Your Servers. You now have a fully up-to-date Ubuntu system running the latest version of HAProxy with a stock configuration located at /etc/haproxy/haproxy.cfg you’re ready to start customizing. This will bring you to a page listing the commands you need to run: Select the options for Ubuntu Focal (20.04 LTS) (long-term support) and HAProxy 2.4-stable (LTS). At the time of this writing, the latest version was 2.4. Head over to, where you can select the install instructions for your OS. Everything we do here should work equally well on bare metal or any cloud provider. For testing, I’m using a virtual machine running on my laptop. In the case of HAProxy, which is already provided by the official sources, once the PPA is installed, apt will use this custom package over the default. A custom PPA tells Ubuntu to use a software source outside its normal channels and install a custom package. Fortunately, Vincent Bernat has done all of the hard work and released something called a PPA, or Personal Package Archive. You can compile the source code yourself, but that can be a lot of extra steps. The version you get with apt out-of-the-box will be stable and secure, but it’s going to lack some of the cool new features you’ve been reading about, such as FIX protocol support, HTTP/2 WebSockets, or Dynamic SSL Certificate Storage. Yes, that simple command will quickly and easily set you up with HAProxy, but you’ll find that the version you’ve just installed probably lags behind the current release by a minor version number or two, sometimes as much as a major version number.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |