bbengfort / cloudscope

Simulation and visualization of distributed systems and communications.
http://bbengfort.github.io/cloudscope/
MIT License
1 stars 0 forks source link

Fix Federated with Policies #83

Closed bbengfort closed 7 years ago

bbengfort commented 7 years ago

The federated nodes are struggling a bit with the combination of eventual and Raft replica types and are causing an increase in the number of remote writes and bogging the system down.

  1. On Raft create a handler for read/write policy enforcement on an access.
  2. Federated Raft: maintains the eventual policies (only accepts latest) as well as no forks
  3. Create local caches on follower nodes to reduce the amount of work for the leader.

We should also write simulation consistency checks to make sure logs are ordered.