[ClusterLabs] 答复: 答复: 答复: How to configure to make each slave resource has one VIP

2018-02-23 Thread 范国腾
Thank you, Ken, So I could use the following command: pcs constraint colocation set pgsql-slave-ip1 pgsql-slave-ip2 pgsql-slave-ip3 setoptions score=-1000 -邮件原件- 发件人: Users [mailto:users-boun...@clusterlabs.org] 代表 Ken Gaillot 发送时间: 2018年2月23日 23:14 收件人: Cluster Labs - All topics

Re: [ClusterLabs] pcs cluster setup removes /etc/pacemaker/authkey

2018-02-23 Thread Tomas Jelinek
Hi, Since upstream version 0.9.158, pcs takes care of the pacemaker authkey itself [1] (Pacemaker version doesn't matter in this case). That means: * pcs wipes out the authkey on "cluster destroy" * pcs creates and distributes the authkey on "cluster setup" * pcs distributes the authkey when

Re: [ClusterLabs] 答复: 答复: How to configure to make each slave resource has one VIP

2018-02-23 Thread Ken Gaillot
On Fri, 2018-02-23 at 12:45 +, 范国腾 wrote: > Thank you very much, Tomas.  > This resolves my problem. > > -邮件原件- > 发件人: Users [mailto:users-boun...@clusterlabs.org] 代表 Tomas Jelinek > 发送时间: 2018年2月23日 17:37 > 收件人: users@clusterlabs.org > 主题: Re: [ClusterLabs] 答复: How to configure to

Re: [ClusterLabs] Resource switchover taking more time upon shutting off one of the node in a 2 node cluster

2018-02-23 Thread Ken Gaillot
On Fri, 2018-02-23 at 16:15 +0530, avinash sharma wrote: > Subject: Switchover of resource(MS) 'RoutingManager' and resource > group 'floatingips', which have 'colocation' and 'after' constraints > on each other, are taking around 5 minutes to get promoted when node > running master instance goes

Re: [ClusterLabs] How to configure to make each slave resource has one VIP

2018-02-23 Thread Tomas Jelinek
Dne 23.2.2018 v 08:17 范国腾 napsal(a): Hi, Our system manages the database (one master and multiple slave). We use one VIP for multiple Slave resources firstly. Now I want to change the configuration that each slave resource has a separate VIP. For example, I have 3 slave nodes and my VIP

[ClusterLabs] 答复: How to configure to make each slave resource has one VIP

2018-02-23 Thread 范国腾
Tomas, Thank you very much. I do the change according to your suggestion and it works. There is a question: If there are too much nodes (e.g. total 10 slave nodes ), I need run "pcs constraint colocation add pgsql-slave-ipx with pgsql-slave-ipy -INFINITY" many times. Is there a simple command

Re: [ClusterLabs] 答复: How to configure to make each slave resource has one VIP

2018-02-23 Thread Tomas Jelinek
Dne 23.2.2018 v 10:16 范国腾 napsal(a): Tomas, Thank you very much. I do the change according to your suggestion and it works. There is a question: If there are too much nodes (e.g. total 10 slave nodes ), I need run "pcs constraint colocation add pgsql-slave-ipx with pgsql-slave-ipy

[ClusterLabs] 答复: 答复: How to configure to make each slave resource has one VIP

2018-02-23 Thread 范国腾
Thank you very much, Tomas. This resolves my problem. -邮件原件- 发件人: Users [mailto:users-boun...@clusterlabs.org] 代表 Tomas Jelinek 发送时间: 2018年2月23日 17:37 收件人: users@clusterlabs.org 主题: Re: [ClusterLabs] 答复: How to configure to make each slave resource has one VIP Dne 23.2.2018 v 10:16 范国腾