┌──(root㉿kali)-[/] └─# docker logs loving_elbakyan 1:C 06 May 2024 08:46:32.955 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 1:C 06 May 2024 08:46:32.955 # Redis version=5.0.14, bits=64, commit=00000000, modified=0, pid=1, just started 1:C 06 May 2024 08:46:32.955 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf 1:M 06 May 2024 08:46:32.956 * Running mode=standalone, port=6379. 1:M 06 May 2024 08:46:32.956 # Server initialized 1:M 06 May 2024 08:46:32.956 # 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. 1:M 06 May 2024 08:46:32.956 # 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. 1:M 06 May 2024 08:46:32.956 * Ready to accept connections
---------------------------------------------分割线---------------------------------------- 1:S 06 May 2024 10:29:28.169 * Before turning into a replica, using my master parameters to synthesize a cached master: I may be able to synchronize with the new master with just a partial transfer. 1:S 06 May 2024 10:29:28.169 * REPLICAOF 192.168.96.1:1234 enabled (user request from 'id=9 addr=172.17.0.1:55592 fd=9 name= age=31 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=46 qbuf-free=32722 obl=0 oll=0 omem=0 events=r cmd=slaveof') 1:S 06 May 2024 10:29:28.842 * Connecting to MASTER 192.168.96.1:1234 1:S 06 May 2024 10:29:28.843 * MASTER <-> REPLICA sync started 1:S 06 May 2024 10:29:28.843 * Non blocking connect for SYNC fired the event. 1:S 06 May 2024 10:29:33.844 * Master replied to PING, replication can continue... 1:S 06 May 2024 10:29:33.844 * Trying a partial resynchronization (request a01036a935e2c26997e33cebae0ff5436a243f71:1). 1:S 06 May 2024 10:29:33.845 * Full resync from master: ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ:1 1:S 06 May 2024 10:29:33.845 * Discarding previously cached master state. 1:S 06 May 2024 10:29:33.845 * MASTER <-> REPLICA sync: receiving 44320 bytes from master 1:S 06 May 2024 10:29:33.846 * MASTER <-> REPLICA sync: Flushing old data 1:S 06 May 2024 10:29:33.846 * MASTER <-> REPLICA sync: Loading DB in memory 1:S 06 May 2024 10:29:33.846 # Wrong signature trying to load DB from file 1:S 06 May 2024 10:29:33.846 # Failed trying to load the MASTER synchronization DB from disk 1:S 06 May 2024 10:29:33.870 * Connecting to MASTER 192.168.96.1:1234 1:S 06 May 2024 10:29:33.870 * MASTER <-> REPLICA sync started 1:S 06 May 2024 10:29:34.008 * Module 'system' loaded from ./exp.so 1:M 06 May 2024 10:29:42.108 # Setting secondary replication ID to a01036a935e2c26997e33cebae0ff5436a243f71, valid up to offset: 1. New replication ID is 3d5f7b8b3e1222704460fcdf01715e126e5fd952 1:M 06 May 2024 10:29:42.108 * MASTER MODE enabled (user request from 'id=9 addr=172.17.0.1:55592 fd=9 name= age=45 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=34 qbuf-free=32734 obl=0 oll=0 omem=0 events=r cmd=slaveof')
[root@VM-8-10-centos ~]# cat /etc/redis.conf | grep logfile logfile /var/log/redis/redis.log [root@VM-8-10-centos ~]# cat /var/log/redis/redis.log 2408:M 07 May 2024 10:55:03.778 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. 2408:M 07 May 2024 10:55:03.778 # Server initialized 2408:M 07 May 2024 10:55:03.778 # 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. 2408:M 07 May 2024 10:55:03.778 # 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. 2408:M 07 May 2024 10:55:03.778 * Ready to accept connections 2408:S 07 May 2024 10:57:14.147 * Before turning into a replica, using my master parameters to synthesize a cached master: I may be able to synchronize with the new master with just a partial transfer. 2408:S 07 May 2024 10:57:14.147 * REPLICAOF xxx.xxx.xxx.xxx:56789 enabled (user request from 'id=3 addr=127.0.0.1:47674 fd=9 name= age=108 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=49 qbuf-free=32719 obl=0 oll=0 omem=0 events=r cmd=slaveof') 2408:S 07 May 2024 10:57:15.106 * Connecting to MASTER xxx.xxx.xxx.xxx:56789 2408:S 07 May 2024 10:57:15.106 * MASTER <-> REPLICA sync started 2408:S 07 May 2024 10:57:15.107 * Non blocking connect for SYNC fired the event. 2408:S 07 May 2024 10:57:19.187 # Module ./exp.so failed to load: ./exp.so: cannot open shared object file: No such file or directory 2408:S 07 May 2024 10:57:20.111 * Master replied to PING, replication can continue... 2408:S 07 May 2024 10:57:20.112 * Trying a partial resynchronization (request b3b4fdc7843bfafe15347a957dae622d391b9b95:1). 2408:S 07 May 2024 10:57:20.113 * Full resync from master: ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ:1 2408:S 07 May 2024 10:57:20.113 * Discarding previously cached master state. 2408:S 07 May 2024 10:57:20.113 * MASTER <-> REPLICA sync: receiving 44320 bytes from master 2408:S 07 May 2024 10:57:20.119 * MASTER <-> REPLICA sync: Flushing old data 2408:S 07 May 2024 10:57:20.119 * MASTER <-> REPLICA sync: Loading DB in memory 2408:S 07 May 2024 10:57:20.119 # Wrong signature trying to load DB from file 2408:S 07 May 2024 10:57:20.119 # Failed trying to load the MASTER synchronization DB from disk 2408:S 07 May 2024 10:57:20.120 * Connecting to MASTER xxx.xxx.xxx.xxx:56789 2408:S 07 May 2024 10:57:20.121 * MASTER <-> REPLICA sync started 2408:S 07 May 2024 10:57:20.121 * Non blocking connect for SYNC fired the event. 2408:S 07 May 2024 10:57:20.193 # Error condition on socket for SYNC: Connection reset by peer 2408:S 07 May 2024 10:57:21.123 * Connecting to MASTER xxx.xxx.xxx.xxx:56789 2408:S 07 May 2024 10:57:21.123 * MASTER <-> REPLICA sync started 2408:S 07 May 2024 10:57:21.124 # Error condition on socket for SYNC: Connection refused 2408:S 07 May 2024 10:57:22.125 * Connecting to MASTER xxx.xxx.xxx.xxx:56789