[ClusterLabs] Mixing globally-unique with non-globally-unique resources

2024-05-14 Thread Jochen
I have the following use case: There are several cluster IP addresses in the 
cluster. Each address is different, and multiple addresses can be scheduled on 
the same node. This makes the address clone a globally-unique clone as far as I 
understood. Then I have one service per node which manages traffic for all 
addresses on a node where an address is active, which makes the service clone 
not-globally-unique. The service should only run if at least one address is 
active on the node, and there cannot be more than one instance of the service 
on each node.

How would I create this pattern in Pacemaker?
___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


Re: [ClusterLabs] Remote nodes in an opt-in cluster

2024-04-23 Thread Jochen



> On 23. Apr 2024, at 17:41, Andrei Borzenkov  wrote:
> 
> On 23.04.2024 10:02, Jochen wrote:
>> When trying to add a remote node to an opt-in cluster, the cluster does not 
>> start the remote resource. When I change the cluster to opt-out the remote 
>> resource is started.
> 
> It's not clear what do you mean. Is "remote resource" the resource used to 
> integrate the remote node (i.e. ocf:pacemaker:remote) or is the "remote 
> resource" a resource you want to start on the remote node itself?

The "ocf:pacemaker:remote" resource to integrate the remote node.

> 
>> I guess I have to add a location constraint to allow the cluster to schedule 
>> the resource. Is that correct?
>> And if yes, how do I create a location constraint to allow the cluster to 
>> start the remote resource anywhere on the cluster? Since I don't want to 
>> name each node in the constraint, I looked for a rule that always is true, 
>> or an attribute that is defined by default, but did not find one. I then 
>> tried
>>  crm configure location skylla-location skylla rule 
>> skylla-location-rule: defined '#uname'
>> But this did not work either. Any help would be greatly appreciated.
>> Regards
>> Jochen
>> ___
>> Manage your subscription:
>> https://lists.clusterlabs.org/mailman/listinfo/users
>> ClusterLabs home: https://www.clusterlabs.org/
> 

___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/


[ClusterLabs] Remote nodes in an opt-in cluster

2024-04-23 Thread Jochen
When trying to add a remote node to an opt-in cluster, the cluster does not 
start the remote resource. When I change the cluster to opt-out the remote 
resource is started.

I guess I have to add a location constraint to allow the cluster to schedule 
the resource. Is that correct?

And if yes, how do I create a location constraint to allow the cluster to start 
the remote resource anywhere on the cluster? Since I don't want to name each 
node in the constraint, I looked for a rule that always is true, or an 
attribute that is defined by default, but did not find one. I then tried

crm configure location skylla-location skylla rule 
skylla-location-rule: defined '#uname'

But this did not work either. Any help would be greatly appreciated.

Regards
Jochen



___
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users

ClusterLabs home: https://www.clusterlabs.org/