开发者

Is there any length limitation of result by "stats cachedump" in memcached?

I am trying to dump all my data from a running 开发者_JS百科memcached instance. But the result of command "stats cachedump" limit around 40000 lines which actually has more 100 million items, and my limit parameter is 1000 million.

Is there any other config limits this result length? I tried this command during the php memcached client and telnet console, it sees to be the memcached server's limitation, because both of the results are limited around 40000.


Well, I have found out the limitation reason.

There is a max dump size in the memcached source code, which is 2M, and hard to change. I am looking for other ways to dump the whole cache data without stopping the application instance.

I have no idea how does memcached collect the top 2M keys during dumping. I have tried to dump it for several times and get different key lists.

See also answer on mail list

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜