OpenClovis / SAFplus-Availability-Scalability-Platform

Middleware that provides libraries, GUI, and code generator to design multi-node (clustered) applications that are highly available, redundant, and scalable. Provides sub-second node and application fault detection and failover, and useful application libraries including distributed hash tables (checkpoint), event, logging, and communications. Implements SA-Forum APIs where applicable. Used anywhere reliability is a must -- like telecom, wireless, defense and enterprise computing. Download stable release with installer from: ftp.openclovis.com
www.openclovis.com
GNU General Public License v2.0
19 stars 13 forks source link

Node should be stored its 'start time' for leader election algorithm #99

Open hoangle opened 11 years ago

hoangle commented 11 years ago

Provide extra field "start time" in code cache for leader election algorithm

hoangle commented 11 years ago

Hi Andy,

Please give me your comment with below setup for 2 node and what is result of leader node:

SYS_CTRLI0 root@7311-6:~/VIK/SYS# date Fri Jul 26 20:19:12 IST 2013

SYS_CTRLI1 SLOT9: root@7311-9:~/VIK# date Mon May 21 01:39:25 IST 2012

From my point, 'start time' is not valid to select the leader node for case.

Regards, Hoang

minhgiang1983 commented 11 years ago

Hi a Hoang,

Can we get the current time of each node and calculate the up time of each node ?

Thanks, Minh Giang

On Mon, Jul 29, 2013 at 11:36 AM, Hoang Le notifications@github.com wrote:

Hi Andy,

Please give me your comment with below setup for 2 node and what is result of leader node:

SYS_CTRLI0 root@7311-6:~/VIK/SYS# date Fri Jul 26 20:19:12 IST 2013

SYS_CTRLI1 SLOT9: root@7311-9:~/VIK# date Mon May 21 01:39:25 IST 2012

From my point, 'start time' is not valid to select the leader node for case.

Regards, Hoang

— Reply to this email directly or view it on GitHubhttps://github.com/OpenClovis/SAFplus-Availability-Scalability-Platform/issues/99#issuecomment-21699112 .

hoangle commented 11 years ago

Hi Minh,

Thanks for your comment. However, as Andy said "we have to cache the value", if we calculate, then cache value is useless in this case. I also suggest using "up time", but having the same meaning as can't not cache.

Regards, Hoang