Administration
Manage the HAProxy Enterprise service
This page applies to:
- HAProxy Enterprise - all versions
This section describes how to manage the load balancer service on Linux.
Get the HAProxy Enterprise version Jump to heading
To see the installed version of the software:
nix
nix
Start and stop the service Jump to heading
HAProxy Enterprise runs as a service, which you can start or stop by calling systemctl:
Start the service:
nix
nix
Stop the service:
nix
nix
Use the systemctl status command to check whether the service is running:
nix
nix
outputtext
outputtext
Reload the configuration Jump to heading
To reload the configuration without restarting the process, call systemctl reload:
nix
nix
This sends the SIGUSR2 signal, which causes the load balancer’s main process to re-execute itself.  It reloads the configuration file and sends the SIGUSR1 signal to workers to perform a soft stop and create new workers. No connections will be dropped.
In versions prior to 2.6r1, you must add the expose-fd listeners parameter on the stats socket line in the global section of your configuration for this to work. Versions 2.6r1 and later do not require this.
haproxy
haproxy
More tuning options:
- Add hard-stop-after to your configuration to limit how long to wait for workers to finish active connections before forcing them to stop. It sets a maximum time to wait. You could use this to prevent long-running sessions from blocking the reload.
- Add grace to your configuration to pause for a period of time before initiating the soft stop of workers. During this delay, you could send a notification of the pending reload.
Validate the configuration file Jump to heading
Use the hapee-lb program’s -c flag to validate the configuration file.
Depending on your version, the command’s output indicates that the file is valid in these ways:
- In version 2.8 and earlier, the command indicates a valid configuration by printing Configuration file is validin addition to setting the zero return status.
- In version 2.9 and later, the command sets the zero return status for a valid configuration but does not display a message. To display the message, include the -Voption on the command line.
Multiple configuration files
If you have multiple configuration files in your application, be sure to check them all in the correct order.
Example:
nix
nix
Alerts and warnings that appear in the console output explain the errors encountered. An alert is a fatal condition and prohibits the service from starting. A warning indicates a condition that is not fatal now but may become fatal in a future release. Address all the errors until you receive the successful output: Configuration file is valid.
Do you have any suggestions on how we can improve the content of this page?