崬城衞 发表于 2018-7-30 13:13:01

运维自动化之ansible playbook结合docker安装redis主从

10:08:04 # cat /data/redis-2.6.17/log/redis_6379.log  
                _._
  
         _.-``__ ''-._
  
      _.-``    `.`_.''-._         Redis 2.6.17 (00000000/0) 64 bit
  
.-`` .-```.```\/    _.,_ ''-._
  
(    '      ,       .-`| `,    )   Running in stand alone mode
  
|`-._`-...-` __...-.``-._|'` _.-'|   Port: 6379
  
|    `-._   `._    /   _.-'    |   PID: 197
  
`-._    `-._`-./_.-'    _.-'
  
|`-._`-._    `-.__.-'    _.-'_.-'|
  
|    `-._`-._      _.-'_.-'    |         http://redis.io
  
`-._    `-._`-.__.-'_.-'    _.-'
  
|`-._`-._    `-.__.-'    _.-'_.-'|
  
|    `-._`-._      _.-'_.-'    |
  
`-._    `-._`-.__.-'_.-'    _.-'
  
      `-._    `-.__.-'    _.-'
  
          `-._      _.-'
  
            `-.__.-'
  

  
13 Aug 09:49:08.878 # Server started, Redis version 2.6.17
  
13 Aug 09:49:08.879 # 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.
  
13 Aug 09:49:08.879 * The server is now ready to accept connections on port 6379
  
13 Aug 09:49:09.879 * Connecting to MASTER 172.17.0.5:6379
  
13 Aug 09:49:09.879 * MASTER <-> SLAVE sync started
  
13 Aug 09:49:09.881 * Non blocking connect for SYNC fired the event.
  
13 Aug 09:49:09.881 * Master replied to PING, replication can continue...
  
13 Aug 09:49:10.035 * MASTER <-> SLAVE sync: receiving 18 bytes from master
  
13 Aug 09:49:10.035 * MASTER <-> SLAVE sync: Loading DB in memory
  
13 Aug 09:49:10.035 * MASTER <-> SLAVE sync: Finished with success
  
13 Aug 10:04:56.980 * 1 changes in 900 seconds. Saving...
  
13 Aug 10:04:56.982 * Background saving started by pid 233
  
13 Aug 10:04:57.226 * DB saved on disk
  
13 Aug 10:04:57.227 * RDB: 6 MB of memory used by copy-on-write
  
13 Aug 10:04:57.293 * Background saving terminated with success
页: [1]
查看完整版本: 运维自动化之ansible playbook结合docker安装redis主从