欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

大神推薦Redis集群遷移工具:redis-migrate-tool

redis集群遷移工具,基于redis復(fù)制,快速,穩(wěn)定。

大神推薦Redis集群遷移工具:redis-migrate-tool

創(chuàng)新互聯(lián)主營(yíng)大新網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營(yíng)網(wǎng)站建設(shè)方案,app開發(fā)定制,大新h5小程序開發(fā)搭建,大新網(wǎng)站營(yíng)銷推廣歡迎大新等地區(qū)企業(yè)咨詢

特點(diǎn)

快速

多線程

基于redis復(fù)制

實(shí)時(shí)遷移

遷移過程中,源集群不影響對(duì)外提供服務(wù)

異構(gòu)遷移

支持Twemproxy集群,redis cluster集群,rdb文件 和 aof文件

過濾功能

當(dāng)目標(biāo)集群是Twemproxy,數(shù)據(jù)會(huì)跳過Twemproxy直接導(dǎo)入到后端的redis

遷移狀態(tài)顯示

完善的數(shù)據(jù)抽樣校驗(yàn)

遷移工具的來源可以是:?jiǎn)为?dú)的redis實(shí)例,twemproxy集群,redis cluster,rdb文件,aof文件。

遷移工具的目標(biāo)可以是:?jiǎn)为?dú)的redis實(shí)例,twemproxy集群,redis cluster,rdb文件。

版本說明

https://github.com/vipshop/redis-migrate-tool #僅支持redis3及以下版本

https://github.com/tanruixing88/redis-migrate-tool #基于上述版本修改,支持redis4及以上版本

依賴
yum -y install automake libtool autoconf bzip2
安裝
git clone https://github.com/tanruixing88/redis-migrate-tool.git
redis-migrate-tool
autoreconf -fvi
./configure
make
cp src/redis-migrate-tool /usr/local/bin/redis-migrate-tool
配置文件rmt.conf

配置文件示例:從redis cluster集群遷移數(shù)據(jù)到twemproxy集群

[source]
type: redis cluster
servers:
 - 127.0.0.1:6379
 - 127.0.0.1:6380
 - 127.0.0.1:6381
 - 127.0.0.1:6382
[target]
type: twemproxy
hash: fnv1a_64
hash_tag: "{}"
distribution: ketama
servers:
 - 127.0.0.1:6380:1 server1
 - 127.0.0.1:6381:1 server2
 - 127.0.0.1:6382:1 server3
 - 127.0.0.1:6383:1 server4
[common]
listen: 0.0.0.0:8888
threads: 2
step: 1
mbuf_size: 1024
source_safe: true

配置文件示例:從redis cluster集群遷移數(shù)據(jù)到另外一個(gè)cluster集群

[source]
type: redis cluster
servers:
 - 127.0.0.1:8379
[target]
type: redis cluster
servers:
 - 127.0.0.1:7379
[common]
listen: 0.0.0.0:8888

配置文件示例:從rdb文件恢復(fù)數(shù)據(jù)到redis cluster集群

[source]
type: rdb file
servers:
 - /data/redis/dump1.rdb
 - /data/redis/dump2.rdb
 - /data/redis/dump3.rdb
[target]
type: redis cluster
servers:
 - 127.0.0.1:7379
[common]
listen: 0.0.0.0:8888
運(yùn)行
/usr/local/bin/redis-migrate-tool -c rmt.conf -o log -d
狀態(tài)

通過redis-cli連接redis-migrate-tool監(jiān)控的端口,運(yùn)行info 命令

redis-cli -h 127.0.0.1 -p 8888
127.0.0.1:8888> info
# Server
version:0.1.0
os:Linux 2.6.32-573.12.1.el6.x86_64 x86_64
multiplexing_api:epoll
gcc_version:4.4.7
process_id:9199
tcp_port:8888
uptime_in_seconds:1662
uptime_in_days:0
config_file:/ect/rmt.conf
# Clients
connected_clients:1
max_clients_limit:100
total_connections_received:3
# Memory
mem_allocator:jemalloc-4.0.4
# Group
source_nodes_count:32
target_nodes_count:48
# Stats
all_rdb_received:1
all_rdb_parsed:1
all_aof_loaded:0
rdb_received_count:32
rdb_parsed_count:32
aof_loaded_count:0
total_msgs_recv:7753587
total_msgs_sent:7753587
total_net_input_bytes:234636318
total_net_output_bytes:255384129
total_net_input_bytes_human:223.77M
total_net_output_bytes_human:243.55M
total_mbufs_inqueue:0
total_msgs_outqueue:0
127.0.0.1:8888>
數(shù)據(jù)校驗(yàn)
/usr/local/bin/redis-migrate-tool -c rmt.conf -o log -C redis_check
Check job is running...
Checked keys: 1000
Inconsistent value keys: 0
Inconsistent expire keys : 0
Other check error keys: 0
Checked OK keys: 1000
All keys checked OK!
Check job finished, used 1.041s
原文地址: https://www.linuxprobe.com/redis-migrate-tool.html

網(wǎng)頁(yè)標(biāo)題:大神推薦Redis集群遷移工具:redis-migrate-tool
標(biāo)題URL:http://www.chinadenli.net/article6/joehig.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站內(nèi)鏈Google網(wǎng)站策劃品牌網(wǎng)站設(shè)計(jì)標(biāo)簽優(yōu)化企業(yè)網(wǎng)站制作

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

成都app開發(fā)公司