[corosync] The heartbeat interval of corosync

Steven Dake sdake at redhat.com
Sat Dec 3 15:59:48 GMT 2011


On 12/03/2011 04:19 AM, cfk at itri.org.tw wrote:
> Dear all,
> 
>  
> 
> I use corosync 1.3.0 and pacemaker 1.0.10 as my HA usage.
> 
>  
> 
> It is my observation on wireshark that corosync do heartbeat task by
> sending UDP communication message each 190 ms.
> 
>  
> 
> I don’t see any configurable variable name target to this value in
> /etc/corosync/corosync.conf.
> 
>  
> 
> What shall I do if I want to change the interval?
> 
>  
> 
> Respectfully,
> 

The healthchecking parameter is "token".  Within token time period, if a
token is lost, a new configuration will form.

Since token is UDP and UDP is unreliable, we retransmit it several times
(token_retransmit).

This value is autogenerated by taking (token /
token_retransmits_before_loss_const) * 0.9 (if I recall correctly).
This is the 190 msec retransmit you see.

man corosync.conf for more details.

Regards
-steve


>  
> 
> Chia-Feng Kangs
> 
> CCMA/ ITRI/ TW
> 
> 本信件可能包含工研院機密資訊,非指定之收件者,請勿使用或揭露本信件內容,
> 並請銷毀此信件。
> This email may contain confidential information. Please do not use or
> disclose it in any way and delete it if you are not the intended recipient.
> 
> 
> _______________________________________________
> discuss mailing list
> discuss at corosync.org
> http://lists.corosync.org/mailman/listinfo/discuss



More information about the discuss mailing list