package
1.0.0
Repository: https://github.com/tencent/caelus.git
Documentation: pkg.go.dev

# Functions

CheckPidAlive check if the pid is running by checking /proc/xxx.
ExecuteYarnCMD execute yarn command The user parameter show who will execute the command.
ExecuteYarnUpdateNodeResource execute update node resource The command description could be found from https://hadoop.apache.org/docs/stable/hadoop-yarn/hadoop-yarn-site/YarnCommands.html You should also add the dynamic-resources.xml on the ResourceManager machines, in case the backup switching and the resource will be reset.
GetContainerProcessGroupId get process group id for the container.
GetContainersState return container info based on container ids given.
InitCgroup set cgroup related environment.
WaitTimeout waiting for waitgroup with the specified max timeout.