> > 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 the settings( cgroup ) required to run 2 slaves in the same > server and How does it behave? Check out `--cgroups_root` flag in https://github.com/apache/mesos/blob/master/docs/configuration/agent.md This flag only applies to MesosContainerizer (can be used to launch Docker containers). - Jie On Wed, Mar 7, 2018 at 10:06 PM, Baskar Sikkayan <[email protected]> wrote: > 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 slaves in the same > server and How does it behave? > > On Wed, Mar 7, 2018 at 10:03 PM, Jie Yu <[email protected]> wrote: > >> 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 <[email protected]> >> wrote: >> >>> 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 server reboot. Not sure why docker becomes unresponsive. Is running 2 >>> slaves are the main reason for this issue? >>> >>> On Wed, Mar 7, 2018 at 9:52 PM, Jie Yu <[email protected]> wrote: >>> >>>> 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 >>>> `DOCKER_NAME_PREFIX`, making it not possible to use two agents on a node >>>> properly. >>>> >>>> - Jie >>>> >>>> On Wed, Mar 7, 2018 at 9:48 PM, Baskar Sikkayan <[email protected]> >>>> wrote: >>>> >>>>> 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 >>>>> >>>> >>>> >>> >> >

