Updated .gitignore to ignore test log dirs from project. HOST_IP env var is used by entrypoint script to populate the PCP config. The entrypoint script does the following. 1. construct the PCP config file using the value of the env var HOST_IP. 2. run elektron by providing all the basic command-line options. Added build and run instructions in the README. These include instructions to run elektron on bare-metal or using docker-compose.
16 lines
467 B
Bash
Executable file
16 lines
467 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Accessing host machine's ip address.
|
|
hostip=$HOST_IP
|
|
|
|
# setting up metrics to be monitored.
|
|
# creating PCP config with the cpu and memory usage metrics to be monitored.
|
|
cat >config <<EOL
|
|
${hostip}:kernel.all.cpu.user
|
|
${hostip}:kernel.all.cpu.sys
|
|
${hostip}:kernel.all.cpu.idle
|
|
${hostip}:mem.util.free
|
|
${hostip}:mem.util.used
|
|
EOL
|
|
|
|
./$ELEKTRON_EXECUTABLE_NAME -m $ELEKTRON_MESOS_MASTER_LOCATION -w $ELEKTRON_WORKLOAD -p $ELEKTRON_LOGDIR_PREFIX $@
|