[ClusterLabs] Antw: [EXT] Constraint question

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Wed Oct 6 02:55:35 EDT 2021


>>> "john tillman" <johnt at panix.com> schrieb am 06.10.2021 um 00:05 in
Nachricht
<936faab79ae93eaacaa59b360a9b6129.squirrel at mail.panix.com>:
> Is it possible for a resource *not* to stop if a colocation constrained
> resource stops on all nodes?
> 
> My configuration per 'pcs constraint' output:
> 
> Location Constraints:
> Ordering Constraints:
> Colocation Constraints:
>   TheService with TheVIP
>   TheVip with TheDB‑clone
> Ticket Constraints:
> 
> On boot, TheDB starts on a node and the other resources follow it and
> start there too.  All's well.
> 
> (Understand that the scenario below is part of a testing step.)
> 
> If I stop all the mysql database clones via "pcs resource disable" I see
> the VIP and service resources also stop.

"TheVip with TheDB-clone" says so.
And as consequence "TheService with TheVIP" triggers.

The cluster does what you asked to do.

> 
> So is there a way to configure the cluster so the service and VIP
> resources remain running on the last node they were on when all the
> databases are stopped?
> 
> Best Regards,
> John
> 
> 
> 
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users 
> 
> ClusterLabs home: https://www.clusterlabs.org/ 





More information about the Users mailing list