ryanworl
(Ryan Worl)
June 1, 2019, 4:23pm
21
I think this is accomplished the with zoneId
parameter in the triple
configuration.
Source:
bool redundancySpecified = true;
if (mode == "single") {
redundancy="1";
log_replicas="1";
storagePolicy = tLogPolicy = Reference<IReplicationPolicy>(new PolicyOne());
} else if(mode == "double" || mode == "fast_recovery_double") {
redundancy="2";
log_replicas="2";
storagePolicy = tLogPolicy = Reference<IReplicationPolicy>(new PolicyAcross(2, "zoneid", Reference<IReplicationPolicy>(new PolicyOne())));
} else if(mode == "triple" || mode == "fast_recovery_triple") {
redundancy="3";
log_replicas="3";
storagePolicy = tLogPolicy = Reference<IReplicationPolicy>(new PolicyAcross(3, "zoneid", Reference<IReplicationPolicy>(new PolicyOne())));
} else if(mode == "three_datacenter" || mode == "multi_dc") {
redundancy="6";
log_replicas="4";
storagePolicy = Reference<IReplicationPolicy>(new PolicyAcross(3, "dcid",
Reference<IReplicationPolicy>(new PolicyAcross(2, "zoneid", Reference<IReplicationPolicy>(new PolicyOne())))
));
tLogPolicy = Reference<IReplicationPolicy>(new PolicyAcross(2, "dcid",
My interpretation of this is this configuration spreads your storage servers and tlogs across 3 groups represented by zoneId.
Seems to be the case. If I understand this correctly, using triple
mode and zoneId
instead of dcId
could give me cross-AZ redundancy without storing 2x the data.
Even I had the same issue and all the replies here in this thread doesn’t seem to help resolve my query?
Please help? anyone? 9Apps VidMate
ryanworl
(Ryan Worl)
August 21, 2019, 8:48am
24
Could you post the output of status json
in a pastebin and share the link here?