Page MenuHomePhabricator
Paste P10437

codfw-FailoverWithExptimeRoute-mcrouter-config
ActivePublic

Authored by jijiki on Feb 17 2020, 8:13 PM.
{
"pools": {
"codfw": {
"servers": [
"10.192.0.83:11211:ascii:plain",
"10.192.0.84:11211:ascii:plain",
"10.192.0.85:11211:ascii:plain",
"10.192.0.86:11211:ascii:plain",
"10.192.16.60:11211:ascii:plain",
"10.192.16.61:11211:ascii:plain",
"10.192.16.62:11211:ascii:plain",
"10.192.16.194:11211:ascii:plain",
"10.192.32.159:11211:ascii:plain",
"10.192.32.160:11211:ascii:plain",
"10.192.32.161:11211:ascii:plain",
"10.192.32.162:11211:ascii:plain",
"10.192.32.163:11211:ascii:plain",
"10.192.48.76:11211:ascii:plain",
"10.192.48.77:11211:ascii:plain",
"10.192.48.78:11211:ascii:plain",
"10.192.48.79:11211:ascii:plain",
"10.192.48.80:11211:ascii:plain"
]
},
"codfw-gutter": {
"servers": [
"10.192.0.156:11211:ascii:plain",
"10.192.16.147:11211:ascii:plain",
"10.192.48.138:11211:ascii:plain"
]
},
"eqiad": {
"servers": [
"10.64.0.65:11214:ascii:ssl",
"10.64.16.52:11214:ascii:ssl",
"10.64.32.41:11214:ascii:ssl",
"10.64.48.87:11214:ascii:ssl"
]
},
"eqiad-gutter": {
"servers": [
"mwdebug1001.eqiad.wmnet:11214:ascii:ssl"
]
}
},
"routes": [
{
"aliases": [ "/codfw/mw/" ],
"route":{
"type": "FailoverWithExptimeRoute",
"normal": "PoolRoute|codfw",
"failover": "PoolRoute|codfw-gutter",
"failover_exptime": 10,
"failover_errors": [ "tko" ]
}
},
{
"aliases": [ "/eqiad/mw/" ],
"route": "PoolRoute|eqiad"
},
{
"aliases": [ "/codfw/mw-wan/" ],
"route": {
"type": "OperationSelectorRoute",
"default_policy": {
"type": "FailoverWithExptimeRoute",
"normal": "PoolRoute|codfw",
"failover": "PoolRoute|codfw-gutter",
"failover_exptime": 10,
"failover_errors": [ "tko" ]
},
"operation_policies": {
"delete": {
"type": "AllSyncRoute",
"children": [ "AllSyncRoute|Pool|codfw", "AllSyncRoute|Pool|codfw-gutter" ]
}
}
}
},
{
"aliases": [ "/eqiad/mw-wan/"],
"route": {
"type": "OperationSelectorRoute",
"default_policy": {
"type": "FailoverWithExptimeRoute",
"normal": "PoolRoute|codfw",
"failover": "PoolRoute|codfw-gutter",
"failover_exptime": 10,
"failover_errors": [ "tko" ]
},
"operation_policies": {
"delete": {
"type": "AllSyncRoute",
"children": [ "AllSyncRoute|Pool|eqiad", "AllSyncRoute|Pool|eqiad-gutter" ]
},
"set": {
"type": "FailoverWithExptimeRoute",
"normal": "PoolRoute|eqiad",
"failover": "PoolRoute|eqiad-gutter",
"failover_exptime": 10,
"failover_errors": [ "tko" ]
}
}
}
}
]
}