BRIX On-Premises > Prepare infrastructure > Load balancer / Configure HAProxy for S3 MinIO

Configure HAProxy for S3 MinIO

In an BRIX high availability cluster, microservices of the BRIX application interact with a MinIO cluster. To evenly balance traffic between S3 MinIO cluster servers, install a HAProxy configuration. This will ensure stable system operation in case of a failure.

Example of a configuration of HAProxy for MinIO

This article describes configuration of load balancing for a MinIO cluster deployed according to the instructions in the MinIO cluster article. HAProxy is used for this. It balances client connections coming to minio.your_domain:9000 between the cluster servers.

In order to create a HAProxy configuration for S3 MinIO, perform the following actions:

  1. Open the haproxy.cfg file for editing using the following command:

sudo nano /etc/haproxy/haproxy.cfg

  1. Edit the haproxy.cfg configuration file:

Configuration example:

Example of a HAProxy configuration using SSL

  1. Restart HAProxy to apply changes:

sudo systemctl restart haproxy