side menu

Configure HAProxy for S3

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

This article will cover how to configure HAProxy for SeaweedFS and MinIO.

Example of a configuration of HAProxy

This article describes configuration of load balancing for a cluster deployed according to the instructions in the following articles:

HAProxy is used for this. It balances client connections between the cluster servers. Such connections come to:

  • seaweedfs.your_domain:8333 if you use SeaweedFS.
  • minio.your_domain:9000 if you use MinIO.

 

In order to create a HAProxy configuration for S3, 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 for load balancing to a SeaweedFS cluster

Example of a HAProxy configuration using SSL for SeaweedFS

Configuration example for load balancing to MinIO cluster

Example of a HAProxy configuration using SSL for MinIO

  1. Restart HAProxy to apply changes:

sudo systemctl restart haproxy