FastX allows administrators to create custom metrics for their servers. These metrics can be used as inputs to the FastX load balancer.
Basic scripting and JSON knowledge is required
To create a metric
- Create an executable script (perl,python,bash etc) in the /usr/lib/fastx2/config/metrics.d directory
- The file must output a valid flat (no nested objects) JSON object
- All parameters in the JSON object will be the metrics
- All values are interpreted as strings
Periodically, the FastX server will execute all files in the /usr/lib/fastx2/config/metrics.d directory, and update the servers.
In the Load Balancing portion of the clustering section, choose Load Balance > Custom and add the parameter name of the metric you want to load balance by