Enabling load balancing¶
To enable Plixer Replicator integration in the default configuration, follow these steps:
Navigate to Admin > Settings > Plixer Replicator and tick the checkbox to enable integration.
Fill in the form with the following details for the Plixer Replicator deployment:
adminaccount password- Port used for inbound flows
- Hostname
- Name for the seed Profile
- Port used to send flows to Plixer Scrutinizer
Verify that the information is correct and click Save to save the settings.
Start an SSH session with main Plixer Scrutinizer server as the
plixeruser and run the following command:scrut_util --autoreplicate
Edit the file
/home/plixer/scrutinizer/files/autoreplicate.confas described here.Log into Plixer Replicator web interface and add all Exporters whose flows should be load balanced to the seed Profile.
Re-run the
scrut_util --autoreplicatecommand.Note
Running
scrut_util_autoreplicatethe first time will create the load balancing configuration file, and re-running it will initiate Exporter flow processing.Hint
To forward all incoming Exporter flows to the Plixer Scrutinizer distributed cluster, add a Policy for
0.0.0.0/0to the seed Profile.
Once auto-replication has started, an Alarm containing the configuration details will be generated under the Plixer Scrutinizer Alarm Monitor.
Editing the auto-replication configuration file
The autoreplicate.conf file created in the /home/plixer/scrutinizer/files directory can be edited to control how Plixer Replicator autoreplicates Exporter flows across a distributed Plixer Scrutinizer cluster.
Before making changes to the file, take note of the following additional details:
- The
collector_capacitiessection of the file should contain an entry for each Plixer Scrutinizer server/Collector in the cluster and must be updated each time a new Collector is added. This will allow the system to automatically create and manage a Policy for each Collector.
Important
The collector_capacities variable also controls the maximum number of Exporters allowed. When that limit is exceeded, Exporters will automatically be removed.
- The
exportersvariable sets the maximum number of Exporters allowed to send flows to a single Collector. - The
flow_ratevariable controls the maximum number of flows/s a Collector is allowed to receive. - The
seed_profilerefers to the Plixer Replicator Profile that should contain all Exporters sending flows to the distributed Plixer Scrutinizer cluster. Adding an Exporter to this Profile will include its flows in Plixer Replicator’s auto-replication/load balancing operations.