Re: 2 Mesos Slaves in same machine

2018-03-08 Thread Baskar Sikkayan
Hi, Is it still an issue with the below config as we have cgroup setting over there? Do i need to use both "--resources" && "--cgroups_root" setting for running 2 slaves in the same node. Or, either one of them should do. Also, is there any setting to be done at the OS( cgroup ) level for

Re: 2 Mesos Slaves in same machine

2018-03-08 Thread Baskar Sikkayan
Hi, This is our docker compose for starting mesos slave. mesos-slave1: image: docker.com/mesos/mesos-slave:0.28.2 depends_on: [ mesos-master ] restart: always privileged: true network_mode: host volumes: - ~/mesos-data/slave-1:/tmp/mesos -

Re: 2 Mesos Slaves in same machine

2018-03-07 Thread Jie Yu
> > Running 2 agents on the same server will send the same offer twice( same > offer by each agent ) and there are chances that resources will be over > utilized by accepting the same offer twice by the framework. If you didn't specify `--resources` flags on the agent, then yes. May I know

Re: 2 Mesos Slaves in same machine

2018-03-07 Thread Baskar Sikkayan
1. Is my understanding correct? Running 2 agents on the same server will send the same offer twice( same offer by each agent ) and there are chances that resources will be over utilized by accepting the same offer twice by the framework. 2. May I know the settings( cgroup ) required to run 2

Re: 2 Mesos Slaves in same machine

2018-03-07 Thread Jie Yu
Running Docker containers won't work properly because restarting one agent will cause Docker containers managed by the other agent to be deleted. On Wed, Mar 7, 2018 at 9:58 PM, Baskar Sikkayan wrote: > We dont have any isolation setting. Looks like 2 slaves are sending

Re: 2 Mesos Slaves in same machine

2018-03-07 Thread Baskar Sikkayan
We dont have any isolation setting. Looks like 2 slaves are sending too many offers( same resource offers by 2 agents ) and hence servers gets overloaded by too many docker jobs and docker becomes unresponsive. Even "docker ps" not working in this case and docker meta files gets corrupted on

Re: 2 Mesos Slaves in same machine

2018-03-07 Thread Jie Yu
It depends on your isolation setting (mainly cgroup, or any node level resources). In general, we don't recommend folks use multiple agents on a node. It's possible to make it work by setting `cgroup_root` separately for MesosContainerizer. For DockerContainerizer, currently, we hard code

2 Mesos Slaves in same machine

2018-03-07 Thread Baskar Sikkayan
Hi, We are running 3 node mesos cluster and on each node running 1 mesos master and 2 mesos slaves. Is this a good practice? Will it be a problem running 2 slaves as it might offer too much and will get overloaded. Thanks, Baskar.S