Author Topic: Delegate双机热备方案2(BitSuperLab 出品)  (Read 2695 times)

0 Members and 1 Guest are viewing this topic.

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
alt辛苦了,大热天的,送你100btsx = 一杯冷饮     已发往 bitsuperlab ;)
多谢啦  :D

Offline bitshare007777

  • Full Member
  • ***
  • Posts: 88
    • View Profile
alt辛苦了,大热天的,送你100btsx = 一杯冷饮     已发往 bitsuperlab ;)

Offline newtree

  • Sr. Member
  • ****
  • Posts: 223
    • View Profile
    • HelloBTS
  • BitShares: newtree
支持下,这样方便多了。
BTS ID:newtree/baicai 
微信公众号:hellobts
网站:www.hellobts.com


Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
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
这种方案比较复杂一点,做了心跳检测,比较双方的状态数据,根据规则选择一台生产。
« Last Edit: July 30, 2014, 06:10:45 am by alt »