memcached
文章平均质量分 72
iteye_1575
这个作者很懒,什么都没留下…
展开
-
Memcached处理
Memcached有两个核心组件组成:服务端(ms)和客户端(mc),在一个memcached的查询中,mc先通过计算key的hash值来 确定kv对所处在的ms位置。当ms确定后,客户端就会发送一个查询请求给对应的ms,让它来查找确切的数据。因为这之间没有交互以及多播协议,所以 memcached交互带给网络的影响是最小化的。举例说明:考虑以下这个场景,有三个mc分别是X,Y,Z,还...原创 2015-07-21 14:00:55 · 68 阅读 · 0 评论 -
MemcachedClient
/** * Copyright (c) 2008 Greg Whalin * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the BSD license * * This libr...原创 2014-11-12 09:24:39 · 491 阅读 · 0 评论 -
NativeHandler
/** * Copyright (c) 2008 Greg Whalin * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the BSD license * * This libr...原创 2014-11-12 09:24:29 · 207 阅读 · 0 评论 -
NestedIOException
/** * Copyright (c) 2008 Greg Whalin * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the BSD license * * This libr...原创 2014-11-12 09:24:21 · 1933 阅读 · 0 评论 -
SockIOPool
/** * Copyright (c) 2008 Greg Whalin * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the BSD license * * This libr...原创 2014-11-12 09:24:09 · 539 阅读 · 0 评论 -
TestAddMemcacheMemberAddress
package com.yulong.memcached;import java.io.BufferedReader;import java.io.File;import java.io.FileInputStream;import java.io.InputStreamReader;import com.yulong.businessCache.UserCache;...原创 2014-11-12 09:23:54 · 90 阅读 · 0 评论 -
TestDropMemcacheUser
package com.yulong.memcached;import java.io.BufferedReader;import java.io.File;import java.io.FileInputStream;import java.io.InputStreamReader;import com.yulong.businessCache.UserCache;...原创 2014-11-10 09:10:25 · 62 阅读 · 0 评论 -
MemcachedService
package com.yulong.memcached.service;import java.io.InputStream;import java.net.URL;import java.util.Date;import java.util.LinkedHashMap;import java.util.Map;import java.util.Properties;...原创 2014-11-10 09:10:16 · 184 阅读 · 0 评论 -
MemcachedBench
/** * Copyright (c) 2008 Greg Whalin * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the BSD license * * This libr...原创 2014-11-10 09:09:10 · 69 阅读 · 0 评论 -
MemcachedTest
/** * Copyright (c) 2008 Greg Whalin * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the BSD license * * This libr...原创 2014-11-10 09:08:55 · 91 阅读 · 0 评论 -
TestMemcached
/** * Copyright (c) 2008 Greg Whalin * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the BSD license * * This libr...原创 2014-11-10 09:08:42 · 74 阅读 · 0 评论 -
memcached工作原理与优化建议
工作原理 基本概念:slab,page,chunk。 slab,是一个逻辑概念。它是在启动memcached实例的时候预处理好的,每个slab对应一个chunk size,也就是说不同slab有不同的chunk size。具体分配多少个slab由参数 -f (增长因子)和 -n (chunk最小尺寸)决定的。 page,可以理解为内存页。大小固定为1m。slab会...原创 2015-01-07 10:30:52 · 74 阅读 · 0 评论