codis使用中的几个问题
项目中,因为是redis的重度用户,所以在redis上,扩容、意外、负载需要进行考虑,选型过程不必细说了,最终选了codis(https://github.com/wandoulabs/codis), 只说在安装codis过程中遇到了几个问题以及解决的方法:
1、无法下载
通过官方的文档,go get codis包下载不下来,直接下载zip包,解压,这个小问题
2、执行bootstrap.sh奇慢
看了下脚本,里面有一堆的go get相关包,后来修改了/usr/local/go/src/cmd/go/vcs.go,在git clone里面加上--process,显示出命令行执行慢在哪里,最后修 bootstrap.sh中慢的包路径,并去掉了coreos(不需要)
go get -u github.com/alicebob/miniredis
go get -u github.com/bsm/redeo
go get -u github.com/c4pt0r/cfg
go get -u github.com/codegangsta/inject
#go get -u github.com/codegangsta/martini
go get -u github.com/go-martini/martini
go get -u github.com/codegangsta/martini-contrib/binding
go get -u github.com/codegangsta/martini-contrib/render
#go get -u github.com/coreos/etcd/error
#go get -u github.com/coreos/etcd/tree/master/error
#go get -u github.com/coreos/go-etcd/etcd
go get -u github.com/docopt/docopt-go
go get -u github.com/garyburd/redigo/internal
go get -u github.com/garyburd/redigo/redis
go get -u github.com/go-martini/martini
go get -u github.com/juju/errors
go get -u github.com/martini-contrib/cors
go get -u github.com/ngaut/gostats
go get -u github.com/ngaut/log
go get -u github.com/ngaut/logging
go get -u github.com/ngaut/pools
go get -u github.com/ngaut/sync2
go get -u github.com/wandoulabs/go-zookeeper/zk
go get -u github.com/wandoulabs/zkhelper
3、启动dashboard却无法访问
这个问题困扰了很久,最终是到群里被人一语点通,原来是zookeeper需要rmr /zk/codis,不然codis启动会一直报address alread exitst
4、无法使proxy到online状态
这个是之前的redis分组只开启了一个group,而分配slot时,只分配了一个0~511到第一分组,加成2个组/或者0~1023应该都可以的,这里我使用了2个组,就可以了
- 学习Win CE(使用EVC4开发)碰到的几个典型问题
- 小结了一下Parser Generator 2使用中的几个问题
- Ubuntu下使用mplayer遇到的几个问题
- GEF,EMF,RCP,Eclipse's plugin的几个问题(6) 推荐使用新版本的VE(Visual Editor)
- 使用Hibernate要从以下几个方面入手解决性能问题.
- 转:asp.net在使用fckeditor 2.6版的几个问题的解决
- 使用JS制作弹出框的几个小问题
- 框架使用过程中遇到的几个问题
- 使用模板缓冲区时需要注意的几个问题
- 关于使用标签需要注意的几个问题
- 使用存储过程中的虚拟表解决同时从几个数据库服务器中读取记录的问题
- 使用多线程编程的几个常见问题
- ECLIPSE中使用AXIS2的几个问题
- 最近使用Eclipse遇到的几个问题
- 使用单例模式需要注意的几个问题
- WebClient类的使用中遇到的几个问题
- 使用prototype.js 的时候应该特别注意的几个问题
- (转帖)使用多线程编程的几个常见问题- -
- 使用Visual Basic访问数据库几个注意的问题
- javascript使用过程中的几个小问题