On Thu, Oct 25, 2012 at 10:01 PM, Takatoshi MATSUO <[email protected]> wrote:
> Usually, we use "crm_master" command instead of "crm_attribute" to
> change own master score in RA.
> But PostgreSQL's Slave can't get own replication status, so Master
> changes Slave's master-score
> using instance number on Pacemaker 1.0.x .
> This probably is not ordinary usage.

Ouch!  No, not ordinary (or recommended) at all :-)
What does the crm_attribute command line look like?  Maybe the --node
option could help?

>
>> So if pgsql thinks it needs these instance numbers,
>> maybe it is not so "anonymous" a clone, after all?
>>
>> Would the existing resource agent work with globally-unique=true ?
>
> No, I use it with false and it dosen't need true.
>
> --
> Takatoshi MATSUO
>
>
> 2012/10/25 Lars Ellenberg <[email protected]>:
>> On Thu, Oct 25, 2012 at 01:24:40AM -0700, Takatoshi MATSUO wrote:
>>> check existence of instance number in replication mode
>>> because Pacemaker 1.1.8 or higher do not append instance numbers.
>>
>> I think this is wrong.
>>
>> It seems this became "necessary" because of
>>
>>  commit 427c7fe6ea94a566aaa714daf8d214290632f837
>>  Author: Andrew Beekhof <[email protected]>
>>  Date:   Fri Jul 13 13:37:42 2012 +1000
>>
>>     High: PE: Do not append instance numbers to anonymous clones
>>
>>     Benefits:
>>     - they shouldnt have been exposed in the first place, but I didnt know 
>> how not to back then
>>     - if admins don't know what they are, they can't be misunderstood or 
>> misused
>>     - more reliable failcount and promotion scores (since you dont have to 
>> check for all possible permutations)
>>     - smaller status section since there cant be entries for each possible 
>> :N suffix
>>     - the name in the config corresponds to the resource in the logs
>>
>>
>> So if pgsql thinks it needs these instance numbers,
>> maybe it is not so "anonymous" a clone, after all?
>>
>> Would the existing resource agent work with globally-unique=true ?
>>
>>         Lars
>>
>>>
>>> You can merge this Pull Request by running:
>>>
>>>   git pull https://github.com/t-matsuo/resource-agents check-instance-number
>>>
>>> Or you can view, comment on it, or merge it online at:
>>>
>>>   https://github.com/ClusterLabs/resource-agents/pull/159
>>>
>>> -- Commit Summary --
>>>
>>>   * Low: pgsql: check existence of instance number in replication mode
>>>
>>> -- File Changes --
>>>
>>> M heartbeat/pgsql (44)
>>>
>>> -- Patch Links --
>>>
>>> https://github.com/ClusterLabs/resource-agents/pull/159.patch
>>> https://github.com/ClusterLabs/resource-agents/pull/159.diff
>>>
>>>
>>> ---
>>> Reply to this email directly or view it on GitHub:
>>> https://github.com/ClusterLabs/resource-agents/pull/159
>>
>> --
>> : Lars Ellenberg
>> : LINBIT | Your Way to High Availability
>> : DRBD/HA support and consulting http://www.linbit.com
>> _______________________________________________________
>> Linux-HA-Dev: [email protected]
>> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
>> Home Page: http://linux-ha.org/
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to