bbengfort / cloudscope

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

access attempts #61

Closed bbengfort closed 7 years ago

bbengfort commented 8 years ago

Attempt to record how many local accesses attempt to read/write or retry on failure.

bbengfort commented 8 years ago

Also log these retries.

Idea: add an "attempts" counter to the Access object that starts at 0. Have replicas increment the attempts if the read is local (so usually the attempt will be 1).

Then have the log method detect if attempts > 1 and prefix "retrying" to the beginning of the log message.

bbengfort commented 7 years ago

Also added a "clone" method so that dropped/completed accesses could still be "retried"