[ClusterLabs] Constraint question
Ken Gaillot
kgaillot at redhat.com
Tue Oct 5 18:34:59 EDT 2021
On Tue, 2021-10-05 at 18:05 -0400, john tillman wrote:
> 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.
>
> 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
Hi,
Yes, make the colocation optional (i.e. use a finite integer score)
--
Ken Gaillot <kgaillot at redhat.com>
More information about the Users
mailing list