MemCached Client集群方案By mingjun HouCluster的实现 Memcached作为集中式Cache,就存在着集中式的致命问题:单点问题,Memcached支持多Instance分布在多台机器上,仅仅 只是解决了数据全部丢失的问题,但是当其中一 台机 器...
分类:
其他好文 时间:
2014-06-25 16:28:29
阅读次数:
175
Tsar是淘宝开发的一个非常好用的系统监控工具,在淘宝内部大量使用 它不仅可以监控CPU、IO、内存、TCP等系统状态,也可以监控Apache,Nginx/Tengine,Squid等服务器状态 值得一提的是、Tsar 支持将数据存储到 MySQL 中,也可以将数据发送到 Nagios 报警服务器㈠...
分类:
其他好文 时间:
2014-06-25 15:43:37
阅读次数:
338
题目:Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get the v...
分类:
其他好文 时间:
2014-06-25 14:12:42
阅读次数:
214
https://www.drupal.org/project/purgehttps://www.drupal.org/project/expirehttps://www.drupal.org/project/cfpurgehttps://www.drupal.org/project/varnishh...
分类:
其他好文 时间:
2014-06-25 11:09:04
阅读次数:
233
这个就是rrdtool调用字体失败安装字体即可[root@cacti~]#yum-yinstallcjkuni-ukai-fonts
#安装字体
[root@cacti~]#fc-cache-f-v
#刷新字体哦缓存
分类:
其他好文 时间:
2014-06-25 10:15:05
阅读次数:
240
今天,在项目中遇到一个问题,两个js页面要共享一个就js对象。js全局变量和静态变量都不行,其他苦逼的小农们就不要去强求了。而LZ又不想用cookie来存放,一是不安全,二个人喜好。最后发现一种超级方法来解决这个困扰,那就是用window.top['_CACHE']来存放这个变量,即可实现,不同Jsp页面直接的对象共享。
var share = {
/**
* 跨框架数据共享接...
分类:
Web程序 时间:
2014-06-25 06:44:55
阅读次数:
253
题目
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) - Get the value (will always be positive) of the key...
分类:
其他好文 时间:
2014-06-24 22:45:43
阅读次数:
202
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) - Get the value (will always be positive) of the key if ...
分类:
其他好文 时间:
2014-06-24 17:25:41
阅读次数:
197
线上集群后端某台Web服务器,我们观察到+buffers/cache值(即Linux内存的实际使用情况)一直都是5365左右,就算停掉Nginx+FastCGI程序也是一样,考虑到这台机器经常在使用rsync+inotify,肯定会存在着频繁存取文件。而Linux系统有一个特性:在Linux下频繁存取文件时,就会占用..
分类:
其他好文 时间:
2014-06-24 16:19:37
阅读次数:
303