Delegate双机热备方案2(BitSuperLab 出品)

Started by alt, July 30, 2014, 06:07:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

alt

Quote from: bitshare007777 on July 30, 2014, 07:55:03 AM
alt辛苦了,大热天的,送你100btsx = 一杯冷饮     已发往 bitsuperlab ;)
多谢啦  :D

bitshare007777

alt辛苦了,大热天的,送你100btsx = 一杯冷饮     已发往 bitsuperlab ;)

newtree

BTS ID:newtree/baicai 
微信公众号:hellobts
网站:www.hellobts.com

hiver

[url="http://weibo.com/u/2715038091"]http://weibo.com/u/2715038091[/url]

alt

#1
Quote from: alt on July 30, 2014, 05:53:35 AM
here is another solution for hot standby, detected with a heartbeat signal.

master and slave exchange  some data in real time, include: blockchain_head_block_num, network_num_connections.
they'll change block production flag automatic, depend on  a rule to select which one should active.

we use a pusher service from PubNub to exchange data, this can avoid open a public service, and can still run behind a tor net.

so you need to register a free account in PubNub if you decide to use this. the demo account maybe not stable.
here is the command
这种方案比较复杂一点,做了心跳检测,比较双方的状态数据,根据规则选择一台生产。