[ClusterLabs] Antw: [EXT] Colocation per site ?

Andrei Borzenkov arvidjaar at gmail.com
Tue Mar 30 12:45:03 EDT 2021


On 30.03.2021 17:42, Ken Gaillot wrote:
>>
>> Colocation does not work, this will force everything on the same node
>> where master is active and that is not what we want.
> 
> Nope, you can colocate by node attribute instead of node.
> 
> Colocating by node attribute says "put this resource on a node that has
> the same value of this node attribute as the node running this other
> resource". So if site is the node attribute, colocating A with B by
> site means that A has to run on a node that has the same value for site
> as wherever B is.
> 
> Simple colocation by node is actually implemented internally as
> colocation by node attribute where the attribute is the node name.
> 

Oh! Thank you!

Indeed, this is exactly what OP needs. No custom scripting is needed.

Thank you for your patience.


More information about the Users mailing list