ReplicationSet describes the instances to talk to for a given key, and how many errors to tolerate.
| 13 | // ReplicationSet describes the instances to talk to for a given key, and how |
| 14 | // many errors to tolerate. |
| 15 | type ReplicationSet struct { |
| 16 | Instances []InstanceDesc |
| 17 | |
| 18 | // Maximum number of tolerated failing instances. Max errors and max unavailable zones are |
| 19 | // mutually exclusive. |
| 20 | MaxErrors int |
| 21 | |
| 22 | // Maximum number of different zones in which instances can fail. Max unavailable zones and |
| 23 | // max errors are mutually exclusive. |
| 24 | MaxUnavailableZones int |
| 25 | } |
| 26 | |
| 27 | // Do function f in parallel for all replicas in the set, erroring is we exceed |
| 28 | // MaxErrors and returning early otherwise. zoneResultsQuorum allows only include |
nothing calls this directly
no outgoing calls
no test coverage detected