mesos agent源代码分析
源代码在src/slave目录下
启动agent时,需要指定工作目录 workdir
framework的工作目录: workdir/slaves/slave_UUID/frameworks/framework_UUID
framework的元数据目录: workdir/meta/slaves/slave_UUID/frameworks/framework_UUID
例如:
/home/yhw/work/swcontainer/slaveworkdir/slaves/651bf2d0-3df4-425d-a351-6fcbf40d24df-S0/frameworks/651bf2d0-3df4-425d-a351-6fcbf40d24df-0000
/home/yhw/work/swcontainer/slaveworkdir/meta/slaves/651bf2d0-3df4-425d-a351-6fcbf40d24df-S0/frameworks/651bf2d0-3df4-425d-a351-6fcbf40d24df-0000
executor的工作目录:
workdir/slaves/slave_UUID/frameworks/framework_UUID/executors/应用名称
executor的元数据目录:
workdir/meta/slaves/slave_UUID/frameworks/framework_UUID/executors/应用名称
/home/yhw/work/swcontainer/slaveworkdir/slaves/651bf2d0-3df4-425d-a351-6fcbf40d24df-S0/frameworks/651bf2d0-3df4-425d-a351-6fcbf40d24df-0000/executors/test
/home/yhw/work/swcontainer/slaveworkdir/meta/slaves/651bf2d0-3df4-425d-a351-6fcbf40d24df-S0/frameworks/651bf2d0-3df4-425d-a351-6fcbf40d24df-0000/executors/test