<p>In my cluster, my servers have different computing power and bandwidth, so sometimes I want to decide which service replicas running on which node. I know we can choose the replicas with the docker service create command, but how to update it when after the service is created and running? In the official docs, the update command only allows changing the number of replicas.</p>

CharlesC
<p><code>...I want to decide which service replicas running on which node.</code></p>
<p>You can modify a live service constraints by using <code>--constraint-rm</code> and <code>--constraint-add</code>. Example presumed node(s) are labeld with a key named &quot;type&quot;: <code>docker service update --constraint-rm node.labels.type==small --constraint-add node.labels.type==large my-redis</code>.</p>
