Redis 数据同步 redis-port

MIT
Google Go
跨平台
豌豆荚
2015-04-19
红薯

redis-port 是一个 Redis 工具,通过解析 rdb 文件,实现 Redis 主节点和从节点的数据同步。

示例:

$ cat dump.rdb | ./redis-port decode 2>/dev/null
  {"db":0,"type":"string","expireat":0,"key":"a","key64":"YQ==","value64":"MTAwMDA="}
  {"db":0,"type":"string","expireat":0,"key":"b","key64":"Yg==","value64":"aGVsbG8ud29ybGQ="}
  {"db":0,"type":"hash","expireat":0,"key":"c","key64":"Yw==","field":"c1","field64":"YzE=","member64":"MTAw"
  {"db":0,"type":"hash","expireat":0,"key":"c","key64":"Yw==","field":"c2","field64":"YzI=","member64":"dGVzdC5zdHJpbmc="}
  {"db":0,"type":"list","expireat":0,"key":"d","key64":"ZA==","index":0,"value64":"bDE="}
  {"db":0,"type":"list","expireat":0,"key":"d","key64":"ZA==","index":1,"value64":"bDI="}
  {"db":0,"type":"zset","expireat":0,"key":"e","key64":"ZQ==","member":"e1","member64":"ZTE=","score":1.000000}
  {"db":0,"type":"zset","expireat":0,"key":"e","key64":"ZQ==","member":"e2","member64":"ZTI=","score":2.000000}
  ... ...

加载中

评论(0)

暂无评论

暂无资讯

暂无问答

阿里云esc 使用docker部署redis集群

原文参考的 https://www.cnblogs.com/lianggp/articles/8136222.html 我只是实践了以后把我遇到的问题整理记录下来 一:阿里云如果是centos最好是7以上,可以安装 最新的docker-ce 二:安装最...

10/14 11:14
44
1
keepalived + redis 主备容灾部署

# 方案图 ![方案部署](https://static.oschina.net/uploads/img/201608/17160847_Xzdo.png "方案部署图") 现网环境中有两个数据库主机,master, 和slave。以及一个vip Master: 192.168.11...

2016/08/17 16:38
68
0
阿里云[CentOS 7.2] Redis Cluster 搭建

准备工作 添加Redis对应端口到ip白名单 systemctl status firewalld Active: inactive (dead) --关闭 Active: active (running) --运行中 firewall-cmd --zone=public --add-port=80/tcp --p...

11/09 11:54
10
0
redis集群

一、主从集群 1.1 修改配置文件并安装redis (1)修改 redis.windows-service.conf 文件 [redis6380主] port 6380 [redis6381从] port 6381 slaveof 127.0.0.1 6380 [redis6382从] port 6382...

05/30 16:33
8
0
docker 容器间通信(link)

docker的link是通过使用容器的ip地址来实现多容器之间通信的。关于link在宿主主机网络上的实现原理不在这里介绍。 ## link格式 ``` sudo docker run -ti --link container:alias images ``` ...

2016/10/25 17:10
176
0
redis性能优化(pipeline/lua)

redis优化 最近在做S线的业务中,需要计算用户的排名以及很多杂项数据。由于数据量过多,为了保证系统响应速度和负载能力,所以在Redis中产生了缓存(基于每天)。 pipe line 介绍 Redis的p...

10/10 12:37
99
0
redis 备份

```shell #复制全部一个库的全部key #!/bin/bash src_ip=127.0.0.1 src_port=8090 src_db=14 src_pw='1234' dest_ip=127.0.0.1 dest_port=8090 dest_db=15 desc_pw='1234' redis-cli -h $src...

05/04 10:20
8
0
在执行gem: redis requires Ruby version >= 2.2.2

在执行gem install redis时 : ERROR: Error installing redis: redis requires Ruby version >= 2.2.2 在执行gem install redis时 提示: gem install redis ERROR: Error installing redis: ...

09/11 16:47
10
0
RedisInstance.php

``` /** * [@author](https://my.oschina.net/arthor) wxs * */ class RedisInstance { private static $_instance; private static $_connectSource; private function __construct() { } /...

2017/10/25 16:52
2
0

没有更多内容

加载失败,请刷新页面

返回顶部
顶部