Installing LoadsMetric
LoadsMetric is a load collection and analysis tool. It obtains machine metric information from the Node Exporter, analyzes and processes the information, and reports the generated cluster load and balancing data to Prometheus. Install LoadsMetric on the server1 node only.
- Optional: Create the hadoop user. Skip this step if this user has already existed.
useradd hadoop
- Create /home/hadoop/loadsmetric-software to use it as the installation directory. Obtain the dependency package from Table 3, upload it to the created directory, and extract the package.
mkdir -p /home/hadoop/loadsmetric-software cd /home/hadoop/loadsmetric-software unzip BoostKit-loadsmetric-1.0.0-aarch64.zip
- Check whether the following files are generated after the extraction:
workers loadsmetric_configfile.properties loadsmetric_deploy.sh loadsmetric-server-1.0.0-SNAPSHOT-aarch64.tar.gz boostkit-yarn-schedule-load-evolution-1.0.0.jar LoadsMetric.json
- Change workers to the compute node list.
- Open the workers file.
vi workers
- Press i to enter the insert mode and modify the file.
agent1 agent2 agent3
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the workers file.
- Modify loadsmetric_configfile.properties. For details about the configuration items, see References.
- Open the loadsmetric_configfile.properties file.
vi loadsmetric_configfile.properties
- Press i to enter the insert mode and add the following content to the file:
# bash properties ## software version version=1.0.0-SNAPSHOT ## install user user=hadoop ## install type, default: server install.type=server ## client support resource, default: node-exporter client.type=node-exporter # server properties ## server port server.port=9090 ##client lost time client.lost.time=2000 # logical resource usage levels, legal range from 0 to 100 logical-resource-usage.levels.mem=5 logical-resource-usage.levels.vcores=5 ## limits for multi resource usage load.limit.cpu=80 load.limit.mem=80 load.limit.diskio=80 load.limit.netio=80 ## weights for multi resource usage load.weight.cpu=0.3 load.weight.mem=0.3 load.weight.diskio=0.2 load.weight.netio=0.2 ## window size for usage average calculate, legal range is from 1 to 300 time.windowsize=5 ## whether to enable overload determination: true/false overload.filter.able=true # client properties ## client post loads-metric-server address loads-metric-server.address=server1:9090 ## client monitor interval client.heartbeat.interval=1000 ## client net compute type(max, send, receive, average) net.compute.type=max # node exporter params node-exporter.pull.enable=true node-exporter.pull.protocol=http node-exporter.pull.port=9100 node-exporter.pull.thread-pool.size=1000
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the loadsmetric_configfile.properties file.
- Perform the installation.
cd /home/hadoop/loadsmetric-software sh loadsmetric_deploy.sh install
- Check whether the installation is successful.If the command output contains the installation directory, the installation is successful.
1ll /home/hadoop/loadsmetric-install/loadsmetric-server
- Starting LoadsMetric
sh loadsmetric_deploy.sh start
- Run the jps command to check whether LoadsMetric is started. If the LoadsMetricApplication process is displayed, the startup is successful.

The LoadsMetric service can be installed, uninstalled, started, and stopped. It allows starting and stopping Prometheus, Node Exporter, and Grafana with one click. For details about basic O&M commands, see Using LoadsMetric.
Parent topic: Installing the Feature