---
title: "Load Balancer"
description: ""
url: "https://docs.itrsgroup.com/docs/opsview/current/administration/distributing-functionality/load-balancer/index.html"
---
Opsview LoadBalancer provided by HAProxy allows to distribute the load for high-load Opsview Components across a number of instances, some of which may be on different servers. It simplifies configuration changes and terminates SSL connections.

## Dependencies

The Opsview loadbalancer install the Opsview Watchdog package.

## Installation

Refer to [Advanced Automated Installation](https://docs.itrsgroup.com/docs/opsview/current/install/advanced-installation/index.html).

## Configuration

No post or pre-install configuration is required for running opsview-loadbalancer.

## Management

### Configuration

#### DPKGs

Watchdog service files are now managed by the package, doing a remove would leave the watchdog service file behind with a .save extension. Purging the package will remove it. The package managed config files are as follows:

- `/opt/opsview/watchdog/etc/services/opsview-loadbalancer.conf`
- `/opt/opsview/loadbalancer/etc/haproxy.cfg`

#### RPMs

Watchdog service files are now managed by the package. Any modifications will be saved at upgrade and remove processes with the .rpmnew and .rpmsave extensions correspondingly.

- `/opt/opsview/watchdog/etc/services/opsview-loadbalancer.conf`
- `/opt/opsview/loadbalancer/etc/haproxy.cfg`

### Service Administration

As root, start, stop and restart the service using:

```
/opt/opsview/watchdog/bin/opsview-monit <start|stop|restart> opsview-loadbalancer 
```

