[prev in list] [next in list] [prev in thread] [next in thread]
List: mesos-user
Subject: How to debug Mesos-containerizer
From: Haijiang Chen <chjhaijiang () gmail ! com>
Date: 2017-04-27 6:50:57
Message-ID: 87BA6537-F02F-4FBB-81E1-19ECB90DC083 () gmail ! com
[Download RAW message or body]
Hi,
I had a basic question about how to debug Mesos-containerizer. I had built mesos code \
with debug enabled. The detail of debugging scenario is as following:
1/ start the master with sudo GLOG_v=1 ~/dist/mesos/build/bin/gdb-mesos-master.sh \
—ip=<IP address> --work_dir=/var/lib/mesos 2/ start the agent with
sudo GLOG_v=1 ~/dist/mesos/build/bin/gdb-mesos-agent.sh \
—master=<master ip>:5050 \
--isolation=docker/runtime,filesystem/linux,cgroups/cpu,cgroups/mem \
--work_dir=/var/lib/mesos \
--image_providers=docker \
--executor_environment_variables="{}" \
--containerizers="docker,mesos" \
—ip=<agent IP address> \
----executor_registration_timeout=3mins
3/ run mesos-execute —master=<master IP address>:5050 —name=containertest \
—docker_image=busybox --shell=false
How can I debug Mesos-containerizer for this case gracefully as it is child process? \
BTW, I am running gdb with non-root use, but with sudo permission. I also try set \
detach-on-fork off for gdb, but It is hung for some reason when the child process is \
creating.
Regards,
Haijiang=
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic