本文是参考《redis中文手册》,将示例代码用php来实现,注意php-redis与redis_cli的区别(主要是返回值类型和参数用法)。目录(使用CTRL+F快速查找命令):KeyStringHashListSet键(Key)DELKEYSRANDOMKEYTTLEXISTSMOVERENAME...
分类:
Web程序 时间:
2014-08-24 01:34:02
阅读次数:
527
传统MySQL+ Memcached架构遇到的问题 实际MySQL是适合进行海量数据存储的,通过Memcached将热点数据加载到cache,加速访问,很多公司都曾经使用过这样的架构,但随着业务数据量的不断增加,和访问量的持续增长,我...
分类:
其他好文 时间:
2014-08-23 16:57:51
阅读次数:
308
一、统计信息相关命令的变化
有关集群状态cluster_state, 节点信息nodes_info, 节点统计信息nodes_stats和索引信息indices_stats命令格式进行了统一,比如查看集群信息使用命令:
curl -XGET http://localhost:9200/_cluster/state/nodes?pretty=1
查看节点统计信息:
curl ...
When I started working on Open Stack, I had to investigate about the HA of the nova component. Unfortunatly the nova configuration needed a single ent...
分类:
数据库 时间:
2014-08-22 21:04:19
阅读次数:
527
Galera is a synchronous multi-master cluster for MySQL/InnoDB databases. Some features and benefits of Galera are: Synchronous replication. Multi mast...
分类:
数据库 时间:
2014-08-22 21:02:59
阅读次数:
405
Setup MySQL master-master replication with Galera I. Galera introduction MySQL/Galera is synchronous multi-master cluster for MySQL/InnoDB database. T...
分类:
数据库 时间:
2014-08-22 21:00:29
阅读次数:
427
前几天碰到碰到一个线上redisCPU跑满的情况,基本无法处理正常请求了,刚开始以为是其他地方的问题,后来grep"Maxopenfiles"/proc/`pidofredis-server`/-r排查原来是启动redis的时候。ulimit-n只有1024,从而无法接受新连接。晚高峰时间段突发的大量请求导致redis连接数超过102..
分类:
其他好文 时间:
2014-08-22 18:00:59
阅读次数:
263
准备工作下载solr和tomcat solr-4.8.1.tgz,apache-tomcat-7.0.54.tar.gz打开/home/cluster,解压缩tarzxvfapache-tomcat-7.0.54.tar.gztarzxvfsolr-4.8.1.tgz开始安装配置solr建立sol....
分类:
系统相关 时间:
2014-08-22 16:00:19
阅读次数:
258
Redis是一个开源的,免费的,基于内存、键值对存储数据库,相比于memcached只支持简单的值,Redis支持非常丰富的值集,其中包括字符串、列表、集以及散列。$ wget http://download.redis.io/releases/redis-2.8.3.tar.gz$ tar xzf...
分类:
其他好文 时间:
2014-08-22 12:18:46
阅读次数:
288