nanoPayinc / legacy-nanopay-tools

0 stars 0 forks source link

clustering / failover / live deployment #9

Closed jlhughes closed 5 years ago

jlhughes commented 6 years ago

Version 3 - FileLock Scenario

All instances in 'cluster' attempt to acquire NFS File Lock Those without the lock (SLAVE):

Instance with lock (MASTER):

Issues

Additional

Security

jlhughes commented 6 years ago

Thoughts: Use DUG to create clustering. This handles fail-over, which could be the same case as an upgrade as we upgrade one half at a time.

Discovery

Cluster Master/Slave still needs consideration

Slave

  1. listen for AppConfig with matching realm
  2. perform select on all DIG services to sync. All data is signed, each instance has the same private key to decrypt.
  3. register on DUG for all services ( ? register on DUG before select on DIG ? )

Master

Failover

Load Sharing

jlhughes commented 6 years ago

Version 2 - Simplified Scenario

ronin00 commented 5 years ago

Issue moved to JIRA: https://nanopay.atlassian.net/browse/DOP-54