title: docker services, choose a preferable node to run or rearrange all services if leader comes down
body: <p>I have 2 swarm nodes and I whish that in case one node shut down, the other one rearrange all services to itself.
  Right now I have one leader(manager) and one worker, and it works perfectly if the worker goes down, because leader rearranges all services to itself.
  My problem here is when leader goes down and no one assumes services within it.
  I already tried with two managers, but didn't works.</p>
  <p>So I am thinking about to let all my services in the worker node so if leader node goes down there is no problem at all and if worker node goes down, leader node would rearrange all services to itself.
  I tried with</p>
  <pre><code>deploy:
    placement:
      constraints:
        - &quot;node.role!=manager&quot;
  </code></pre>
  <p>But it also does not works, because it will never instance this service in a manager node.</p>
  <p>So I would like to ask if there is any way to make those two nodes to rearrange all services to itself in case other goes down?!
  or
  There is an way to configure a service to &quot;preferably&quot; be deployed in one specific node if that node is available otherwise be deployed in any other node?</p>