GoBeansDB
if 0 = -I can
那年我们还有梦
关于文学
关于爱情
关于穿越世界的旅行
如今我们深夜痛饮
杯子碰到一起
都是梦破碎的声音
展开
-
Python3 实现 GoBeansDB 集群节点变更以及固定副本平衡
目录一、容灾问题1、GoBeansproxy 之sharding 问题❓2、集群节点变更问题(新增或移除)❓3、集群内固定副本(N)的平衡问题❓二、容灾方案1、Python3 采集 GoBeansproxy 日志路由数据(SET/DELETE)存储到 MySQL2、Python3 实现 GoBeansDB 集群移除节点后的数据副本平衡3、以上实例输出结果一、容...原创 2019-11-01 20:33:07 · 187 阅读 · 0 评论 -
Python3 实现 BeansDB 与 GoBeansDB 间双向数据迁移
目录1、Python3 实现 BeansDB 与 GoBeansDB 间双向数据迁移2、以上实例输出部分结果3、Python3 BeansDB / GoBeansDB 连接 - libmc 驱动模块4、Python3 MySQL 数据库连接 - PyMySQL 驱动模块5、GoBeansproxy(proxy-access.log)日志部分输出内容6、GoBeansDB(g...原创 2019-10-30 21:30:26 · 369 阅读 · 0 评论 -
Python3 BeansDB / GoBeansDB 连接 - libmc 驱动模块
目录写在最前:1、python3_libmc_beansdb.py2、Python Example3、Example Results写在最前:1>、libmc由 Douban 开发和维护(豆瓣牛B)协议: memcached。推荐 libmc 客户端(c++ 实现,目前支持 go 和 python,基于 poll 的并发 get_multi/set_multi)...原创 2019-10-29 10:11:18 · 264 阅读 · 0 评论 -
小谈 GoBeansDB 高性能 Python 客户端
1、豆瓣官方推荐协议协议: memcached。推荐 libmc 客户端(c++ 实现,目前支持 go 和 python,基于 poll 的并发 get_multi/set_multi)安装:pip install libmc,(豆瓣 GitHub 链接:https://github.com/douban/libmc)话外音:libmc 由 Douban 开发和维护。Python ...原创 2019-10-25 21:00:06 · 549 阅读 · 0 评论 -
Python3 采集 GoBeansproxy 日志路由数据(SET/DELETE)存储到 MySQL
目录写在最前:一、Python3采集GoBeansproxy日志SET路由数据存储到MySQL二、Python3 MySQL 数据库连接 - PyMySQL 驱动模块三、MySQL 建表语句四、GoBeansproxy测试日志(为方便测试改变了原 SET 的 key 值)写在最前:进一步保障 GoBeansDB 集群内副本数据NWR中的 N。一、Python3采集G...原创 2019-10-24 11:54:02 · 276 阅读 · 0 评论 -
GoBeansproxy: route.yaml
1、route.yaml(16 分区)numbucket: 16backup:- "127.0.0.1:7983"main:- addr: 127.0.0.1:7980 buckets: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f]- addr: 127.0.0.1:7981 buckets: [0, 1, 2, 3, 4...原创 2019-08-30 20:20:49 · 525 阅读 · 0 评论 -
GoBeansproxy: proxy.yaml
1、proxy.yaml# for doubandb proxyproxy: listen: 0.0.0.0 port: 7905 webport: 7908 threads: 8 errorlog: "/home/work/service/gobeansproxy/log/proxy-error.log" accesslog: "/home/work/servi...原创 2019-08-30 20:18:46 · 197 阅读 · 0 评论 -
GoBeansDB: route.yaml
1、route.yaml(16 分区)numbucket: 16backup:- "127.0.0.1:7983"main:- addr: 127.0.0.1:7980 buckets: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", a, b, c, d, e, f]2、route.yaml(256 分区)numb...原创 2019-08-30 20:17:43 · 403 阅读 · 0 评论 -
GoBeansDB:local.yaml
1、local.yaml(线上必须在local文件里改掉,即和 global.yaml 一致)# for python testmc: body_c_str: 4Kserver: port: 7980 webport: 7970 errorlog: /home/work/service/gobeansdb_cluster7980/log/gobeansdb.log a...原创 2019-08-30 20:15:55 · 150 阅读 · 0 评论 -
GoBeansDB:global.yaml
global.yaml# for doubandb# should include all configurable fieldsserver: zkserves: [] zkpath: "/home/work/service/gobeansdb_cluster7980/test" listen: 0.0.0.0 port: 7980 webport: 7970 ...原创 2019-08-30 20:14:18 · 182 阅读 · 0 评论 -
GoBeansDB 全解析
目录写在最前:1、豆瓣为什么要用 K/V 数据库❓2、那么多优秀的 K/V 数据库系统,豆瓣为什么要自己重新实现一套 K/V 存储❓3、为什么要用 Go 重新实现 BeansDB(BeansDB 是用 C 来实现的)❓4、分布式数据库数据一致性原理说明与实现5、与BeansDB关系一、GoBeansDB 架构设计二、GoBeansDB 安装部署1、安装 Go...原创 2019-08-30 20:03:47 · 823 阅读 · 1 评论