can't get key from mcrouter,but twemproxy works OK
shizhoulong356 opened this issue · 3 comments
my mcrouter is working on 10.2.30.154
{
"pools": {
"php_session_A": {
"servers": [
"10.2.130.53:11211",
"10.2.130.57:11211"
]
},
"php_session_B": {
"servers": [
"10.2.129.171:11211"
]
},
"php_session_C":{
"servers": [
"10.2.3.13:11211"
]
}
},
"route": {
"type": "OperationSelectorRoute",
"default_policy": {
"type": "AllSyncRoute",
"children": ["PoolRoute|php_session_A", "PoolRoute|php_session_B","PoolRoute|php_session_C"]
},
"operation_policies": {
"get": "PoolRoute|php_session_C"
}
}
}
while i get from my twemproxy on 10.2.3.13:
Connected to 10.2.3.13.
Escape character is '^]'.
get memc.sess.key.1443550254314qcb7u1ica9b01di58741hnbogb74c621.hx
VALUE memc.sess.key.1443550254314qcb7u1ica9b01di58741hnbogb74c621.hx 0 453
regenerated|i:1527135503;lastest_visit_ts|i:1527140183;ua|i:1204894009;uid|i:47994853;username|s:27:"15602921538@reg.placeholder";is_login|b:1;user_agent|s:241:"Mozilla/5.0 (Linux; Android 5.1; vivo X6D Build/LMY47I; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/53.0.2785.49 Mobile MQQBrowser/6.2 TBS/043632 Safari/537.36 MicroMessenger/6.6.6.1300(0x26060637) NetType/4G Language/zh_CN";ip|s:14:"112.97.193.120";grade|i:0;
END
but while i used to get from mcrouter:
Connected to 10.2.30.154.
Escape character is '^]'.
get memc.sess.key.1443550254314qcb7u1ica9b01di58741hnbogb74c621.hx
END
so what's the problems
Did you configure mcrouter
to get the key from twemproxy
? Is twemproxy
running on 10.2.3.13
on port 11211
?
@andreazevedo yes
is there some compatibilities problems between mcrouter and twemproxy, just like the mcrouter kick out the backend twemproxy node