加入收藏 | 设为首页 | 会员中心 | 我要投稿 常州站长网 (https://www.0519zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MySql教程 > 正文

一文带你揭开Redis复制原理的神秘面纱

发布时间:2019-09-17 16:16:13 所属栏目:MySql教程 来源:陈龙
导读:副标题#e# Redis作为一个非结构化的内存数据库,在某些应用场景具备相应优势,在实际的场景设计中也得到广泛的关注和使用。但是,大部分企业的Redis数据库架构为单机运行,没有设计容灾复制,这样对于Redis的容错特性没有发挥出来,而且无持久化情况下,数

(3) 启动从库实例

  1. [redis@albert src]$ ./redis-server redis.conf6380 
  2. 18828:C 04 Aug 2019 10:52:27.743 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 
  3. 18828:C 04 Aug 2019 10:52:27.744 # Redis version=5.0.4, bits=64, commit=00000000, modified=0, pid=18828, just started 
  4. 18828:C 04 Aug 2019 10:52:27.744 # Configuration loaded 
  5.                 _._                                                  
  6.            _.-``__ ''-._                                             
  7.       _.-``    `.  `_.  ''-._           Redis 5.0.4 (00000000/0) 64 bit 
  8.   .-`` .-```.  ```/    _.,_ ''-._                                   
  9.  (    '      ,       .-`  | `,    )     Running in standalone mode 
  10.  |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6380 
  11.  |    `-._   `._    /     _.-'    |     PID: 18828 
  12.   `-._    `-._  `-./  _.-'    _.-'                                   
  13.  |`-._`-._    `-.__.-'    _.-'_.-'|                                   
  14.  |    `-._`-._        _.-'_.-'    |           http://redis.io        
  15.   `-._    `-._`-.__.-'_.-'    _.-'                                   
  16.  |`-._`-._    `-.__.-'    _.-'_.-'|                                  
  17.  |    `-._`-._        _.-'_.-'    |                                   
  18.   `-._    `-._`-.__.-'_.-'    _.-'                                   
  19.       `-._    `-.__.-'    _.-'                                       
  20.           `-._        _.-'                                           
  21.               `-.__.-'                                               
  22.   
  23. 18828:S 04 Aug 2019 10:52:27.746 # Server initialized 
  24. 18828:S 04 Aug 2019 10:52:27.746 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. 
  25. 18828:S 04 Aug 2019 10:52:27.746 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled. 
  26. 18828:S 04 Aug 2019 10:52:27.746 * Ready to accept connections 
  27. 18828:S 04 Aug 2019 10:52:27.746 * Connecting to MASTER 127.0.0.1:6379 
  28. 18828:S 04 Aug 2019 10:52:27.746 * MASTER <-> REPLICA sync started 
  29. 18828:S 04 Aug 2019 10:52:27.746 * Non blocking connect for SYNC fired the event. 
  30. 18828:S 04 Aug 2019 10:52:27.746 * Master replied to PING, replication can continue... 
  31. 18828:S 04 Aug 2019 10:52:27.747 * Partial resynchronization not possible (no cached master) 
  32. 18828:S 04 Aug 2019 10:52:27.748 * Full resync from master: fc71b19242e8145254ba7751d346a8f4bb4c53c6:0 
  33. 18828:S 04 Aug 2019 10:52:27.788 * MASTER <-> REPLICA sync: receiving 175 bytes from master 
  34. 18828:S 04 Aug 2019 10:52:27.788 * MASTER <-> REPLICA sync: Flushing old data 
  35. 18828:S 04 Aug 2019 10:52:27.788 * MASTER <-> REPLICA sync: Loading DB in memory 
  36. 18828:S 04 Aug 2019 10:52:27.788 * MASTER <-> REPLICA sync: Finished with success 

(编辑:常州站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读