/////
Search
Duplicate

레디스가 말썽이야

기록 날짜
2024/02/01 23:59
작성자
김재윤
주제
Redis
43.203.111.147:6379> info memory # Memory used_memory:1392824 used_memory_human:1.33M used_memory_rss:7294976 used_memory_rss_human:6.96M used_memory_peak:1491648 used_memory_peak_human:1.42M used_memory_peak_perc:93.37% used_memory_overhead:1343056 used_memory_startup:809672 used_memory_dataset:49768 used_memory_dataset_perc:8.53% allocator_allocated:2238440 allocator_active:2727936 allocator_resident:5357568 total_system_memory:969846784 total_system_memory_human:924.92M used_memory_lua:466944 used_memory_lua_human:456.00K used_memory_scripts:451320 used_memory_scripts_human:440.74K number_of_cached_scripts:263 maxmemory:1000000000 maxmemory_human:953.67M maxmemory_policy:allkeys-lru allocator_frag_ratio:1.22 allocator_frag_bytes:489496 allocator_rss_ratio:1.96 allocator_rss_bytes:2629632 rss_overhead_ratio:1.36 rss_overhead_bytes:1937408 mem_fragmentation_ratio:5.40 mem_fragmentation_bytes:5943184 mem_not_counted_for_evict:0 mem_replication_backlog:0 mem_clients_slaves:0 mem_clients_normal:81992 mem_aof_buffer:0 mem_allocator:jemalloc-5.2.1 active_defrag_running:0 lazyfree_pending_objects:0
Shell
복사
8723:S 01 Feb 2024 23:24:53.303 * Connecting to MASTER 193.106.174.153:60132 8723:S 01 Feb 2024 23:24:53.303 * MASTER <-> REPLICA sync started 8723:S 01 Feb 2024 23:24:53.576 # Error condition on socket for SYNC: Connection refused 8723:S 01 Feb 2024 23:24:53.679 # Module /tmp/exp.so failed to load: It does not have execute permissions. 8723:S 01 Feb 2024 23:24:54.307 * Connecting to MASTER 193.106.174.153:60132 8723:S 01 Feb 2024 23:24:54.307 * MASTER <-> REPLICA sync started 8723:S 01 Feb 2024 23:24:54.566 # Error condition on socket for SYNC: Connection refused 8723:S 01 Feb 2024 23:24:55.310 * Connecting to MASTER 193.106.174.153:60132 8723:S 01 Feb 2024 23:24:55.310 * MASTER <-> REPLICA sync started 8723:S 01 Feb 2024 23:24:55.587 # Error condition on socket for SYNC: Connection refused 8723:S 01 Feb 2024 23:24:56.013 * 10 changes in 300 seconds. Saving... 8723:S 01 Feb 2024 23:24:56.013 * Background saving started by pid 355875 355875:C 01 Feb 2024 23:24:56.018 * DB saved on disk 355875:C 01 Feb 2024 23:24:56.018 * RDB: 0 MB of memory used by copy-on-write 8723:S 01 Feb 2024 23:24:56.113 * Background saving terminated with success 8723:S 01 Feb 2024 23:24:56.314 * Connecting to MASTER 193.106.174.153:60132 8723:S 01 Feb 2024 23:24:56.314 * MASTER <-> REPLICA sync started 8723:S 01 Feb 2024 23:24:56.586 # Error condition on socket for SYNC: Connection refused 8723:S 01 Feb 2024 23:24:57.317 * Connecting to MASTER 193.106.174.153:60132 8723:S 01 Feb 2024 23:24:57.317 * MASTER <-> REPLICA sync started 8723:S 01 Feb 2024 23:24:57.581 # Error condition on socket for SYNC: Connection refused 8723:S 01 Feb 2024 23:24:58.319 * Connecting to MASTER 193.106.174.153:60132 8723:S 01 Feb 2024 23:24:58.320 * MASTER <-> REPLICA sync started 8723:S 01 Feb 2024 23:24:58.578 # Error condition on socket for SYNC: Connection refused 8723:S 01 Feb 2024 23:24:58.771 # Module /tmp/exp.so failed to load: It does not have execute permissions. 8723:S 01 Feb 2024 23:24:59.323 * Connecting to MASTER 193.106.174.153:60132 8723:S 01 Feb 2024 23:24:59.323 * MASTER <-> REPLICA sync started 8723:S 01 Feb 2024 23:24:59.594 # Error condition on socket for SYNC: Connection refused 8723:S 01 Feb 2024 23:25:00.326 * Connecting to MASTER 193.106.174.153:60132 8723:S 01 Feb 2024 23:25:00.326 * MASTER <-> REPLICA sync started 8723:S 01 Feb 2024 23:25:00.583 # Error condition on socket for SYNC: Connection refused 8723:S 01 Feb 2024 23:25:01.330 * Connecting to MASTER 193.106.174.153:60132 8723:S 01 Feb 2024 23:25:01.330 * MASTER <-> REPLICA sync started 8723:S 01 Feb 2024 23:25:01.591 # Error condition on socket for SYNC: Connection refused 8723:S 01 Feb 2024 23:25:02.333 * Connecting to MASTER 193.106.174.153:60132 8723:S 01 Feb 2024 23:25:02.333 * MASTER <-> REPLICA sync started 8723:S 01 Feb 2024 23:25:02.594 # Error condition on socket for SYNC: Connection refused 8723:S 01 Feb 2024 23:25:03.338 * Connecting to MASTER 193.106.174.153:60132 8723:S 01 Feb 2024 23:25:03.338 * MASTER <-> REPLICA sync started 8723:S 01 Feb 2024 23:25:03.606 # Error condition on socket for SYNC: Connection refused 8723:S 01 Feb 2024 23:25:03.861 # Module /tmp/exp.so failed to load: It does not have execute permissions. 8723:S 01 Feb 2024 23:25:04.340 * Connecting to MASTER 193.106.174.153:60132 8723:S 01 Feb 2024 23:25:04.340 * MASTER <-> REPLICA sync started 8723:S 01 Feb 2024 23:25:04.606 # Error condition on socket for SYNC: Connection refused 8723:S 01 Feb 2024 23:25:05.343 * Connecting to MASTER 193.106.174.153:60132 8723:S 01 Feb 2024 23:25:05.343 * MASTER <-> REPLICA sync started 8723:S 01 Feb 2024 23:25:05.598 # Error condition on socket for SYNC: Connection refused 8723:S 01 Feb 2024 23:25:06.345 * Connecting to MASTER 193.106.174.153:60132 8723:S 01 Feb 2024 23:25:06.345 * MASTER <-> REPLICA sync started 8723:S 01 Feb 2024 23:25:06.615 # Error condition on socket for SYNC: Connection refused 8723:S 01 Feb 2024 23:25:07.348 * Connecting to MASTER 193.106.174.153:60132 8723:S 01 Feb 2024 23:25:07.348 * MASTER <-> REPLICA sync started 8723:S 01 Feb 2024 23:25:07.615 # Error condition on socket for SYNC: Connection refused 8723:S 01 Feb 2024 23:25:08.351 * Connecting to MASTER 193.106.174.153:60132 8723:S 01 Feb 2024 23:25:08.351 * MASTER <-> REPLICA sync started 8723:S 01 Feb 2024 23:25:08.620 # Error condition on socket for SYNC: Connection refused 8723:S 01 Feb 2024 23:25:08.955 # Module /tmp/exp.so failed to load: It does not have execute permissions. 8723:S 01 Feb 2024 23:25:09.354 * Connecting to MASTER 193.106.174.153:60132 8723:S 01 Feb 2024 23:25:09.354 * MASTER <-> REPLICA sync started 8723:S 01 Feb 2024 23:25:09.630 # Error condition on socket for SYNC: Connection refused 8723:S 01 Feb 2024 23:25:10.356 * Connecting to MASTER 193.106.174.153:60132 8723:S 01 Feb 2024 23:25:10.356 * MASTER <-> REPLICA sync started 8723:S 01 Feb 2024 23:25:10.617 # Error condition on socket for SYNC: Connection refused 8723:S 01 Feb 2024 23:25:11.358 * Connecting to MASTER 193.106.174.153:60132 8723:S 01 Feb 2024 23:25:11.358 * MASTER <-> REPLICA sync started 8723:S 01 Feb 2024 23:25:11.634 # Error condition on socket for SYNC: Connection refused 8723:S 01 Feb 2024 23:25:12.362 * Connecting to MASTER 193.106.174.153:60132 8723:S 01 Feb 2024 23:25:12.362 * MASTER <-> REPLICA sync started 8723:S 01 Feb 2024 23:25:12.633 # Error condition on socket for SYNC: Connection refused 8723:S 01 Feb 2024 23:25:13.364 * Connecting to MASTER 193.106.174.153:60132 8723:S 01 Feb 2024 23:25:13.364 * MASTER <-> REPLICA sync started 8723:S 01 Feb 2024 23:25:13.627 # Error condition on socket for SYNC: Connection refused 8723:S 01 Feb 2024 23:25:14.045 # Module /tmp/exp.so failed to load: It does not have execute permissions. 8723:M 01 Feb 2024 23:25:14.133 * Discarding previously cached master state. 8723:M 01 Feb 2024 23:25:14.133 # Setting secondary replication ID to 7d06080175e6ceb63eda7a44ec8f60aedf3cd0c9, valid up to offset: 1. New replication ID is ee831473f93e62db3aa12853cc4fd09be6dc8ae8 8723:M 01 Feb 2024 23:25:14.133 * MASTER MODE enabled (user request from 'id=2419 addr=120.79.208.133:36442 fd=9 name= age=37 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=16 qbuf-free=32752 argv-mem=12 obl=0 oll=0 omem=0 tot-mem=61484 events=r cmd=slaveof user=default') 8723:M 01 Feb 2024 23:25:41.376 # Failed opening the RDB file root (in server root dir /var/spool/cron) for saving: Read-only file system 8723:M 01 Feb 2024 23:25:41.560 # Failed opening the RDB file redis (in server root dir /var/spool/cron) for saving: Read-only file system 8723:S 01 Feb 2024 23:25:42.204 * Before turning into a replica, using my own master parameters to synthesize a cached master: I may be able to synchronize with the new master with just a partial transfer. 8723:S 01 Feb 2024 23:25:42.204 * REPLICAOF 143.198.18.91:60115 enabled (user request from 'id=2421 addr=120.79.208.133:36678 fd=9 name= age=2 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=29 qbuf-free=32739 argv-mem=25 obl=0 oll=0 omem=0 tot-mem=61497 events=r cmd=slaveof user=default') 8723:S 01 Feb 2024 23:25:42.444 * Connecting to MASTER 143.198.18.91:60115 8723:S 01 Feb 2024 23:25:42.444 * MASTER <-> REPLICA sync started 8723:S 01 Feb 2024 23:25:47.297 # Module /tmp/exp.so failed to load: It does not have execute permissions. 8723:S 01 Feb 2024 23:25:52.390 # Module /tmp/exp.so failed to load: It does not have execute permissions. 8723:S 01 Feb 2024 23:25:57.484 # Module /tmp/exp.so failed to load: It does not have execute permissions. 8723:S 01 Feb 2024 23:26:02.577 # Module /tmp/exp.so failed to load: It does not have execute permissions. 8723:S 01 Feb 2024 23:26:07.670 # Module /tmp/exp.so failed to load: It does not have execute permissions. 8723:S 01 Feb 2024 23:26:12.763 # Module /tmp/exp.so failed to load: It does not have execute permissions. 8723:S 01 Feb 2024 23:26:17.855 # Module /tmp/exp.so failed to load: It does not have execute permissions. 8723:M 01 Feb 2024 23:26:17.947 * Discarding previously cached master state. 8723:M 01 Feb 2024 23:26:17.948 # Setting secondary replication ID to ee831473f93e62db3aa12853cc4fd09be6dc8ae8, valid up to offset: 1. New replication ID is 3be60ba42519f4499e54bf82126978adf950d905 8723:M 01 Feb 2024 23:26:17.948 * MASTER MODE enabled (user request from 'id=2421 addr=120.79.208.133:36678 fd=9 name= age=37 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=16 qbuf-free=32752 argv-mem=12 obl=0 oll=0 omem=0 tot-mem=61484 events=r cmd=slaveof user=default')
Shell
복사
43.203.111.147:6379> info memory # Memory used_memory:1001144 used_memory_human:977.68K used_memory_rss:11272192 used_memory_rss_human:10.75M used_memory_peak:1038128 used_memory_peak_human:1013.80K used_memory_peak_perc:96.44% used_memory_overhead:936160 used_memory_startup:809672 used_memory_dataset:64984 used_memory_dataset_perc:33.94% allocator_allocated:1400048 allocator_active:1712128 allocator_resident:4288512 total_system_memory:969846784 total_system_memory_human:924.92M used_memory_lua:66560 used_memory_lua_human:65.00K used_memory_scripts:23880 used_memory_scripts_human:23.32K number_of_cached_scripts:9 maxmemory:1000000000 maxmemory_human:953.67M maxmemory_policy:allkeys-lru allocator_frag_ratio:1.22 allocator_frag_bytes:312080 allocator_rss_ratio:2.50 allocator_rss_bytes:2576384 rss_overhead_ratio:2.63 rss_overhead_bytes:6983680 mem_fragmentation_ratio:11.74 mem_fragmentation_bytes:10312080 mem_not_counted_for_evict:0 mem_replication_backlog:0 mem_clients_slaves:0 mem_clients_normal:102536 mem_aof_buffer:0 mem_allocator:jemalloc-5.2.1 active_defrag_running:0 lazyfree_pending_objects:0
Shell
복사
43.203.111.147:6379> CONFIG GET save 1) "save" 2) "900 1 300 10 60 10000" 43.203.111.147:6379> CONFIG SET save "" OK 43.203.111.147:6379> CONFIG GET auto-aof-* 1) "auto-aof-rewrite-percentage" 2) "100" 3) "auto-aof-rewrite-min-size" 4) "67108864" 43.203.111.147:6379> CONFIG SET auto-aof-rewrite-percentage 0 OK
Shell
복사
356077:M 02 Feb 2024 00:06:54.846 * MASTER MODE enabled (user request from 'id=8 addr=120.79.208.133:47788 fd=10 name= age=37 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=16 qbuf-free=32752 argv-mem=12 obl=0 oll=0 omem=0 tot-mem=61484 events=r cmd=slaveof user=default') 356077:signal-handler (1706800027) Received SIGTERM scheduling shutdown... 356077:M 02 Feb 2024 00:07:07.906 # User requested shutdown... 356077:M 02 Feb 2024 00:07:07.906 * Saving the final RDB snapshot before exiting. 356077:M 02 Feb 2024 00:07:07.909 * DB saved on disk 356077:M 02 Feb 2024 00:07:07.909 * Removing the pid file. 356077:M 02 Feb 2024 00:07:07.909 # Redis is now ready to exit, bye bye... 356118:C 02 Feb 2024 00:08:01.686 # WARNING supervised by systemd - you MUST set appropriate values for TimeoutStartSec and TimeoutStopSec in your service unit. 356118:C 02 Feb 2024 00:08:01.686 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 356118:C 02 Feb 2024 00:08:01.686 # Redis version=6.0.16, bits=64, commit=00000000, modified=0, pid=356118, just started 356118:C 02 Feb 2024 00:08:01.686 # Configuration loaded _._ _.-``__ ''-._ _.-`` `. `_. ''-._ Redis 6.0.16 (00000000/0) 64 bit .-`` .-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) Running in standalone mode |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379 | `-._ `._ / _.-' | PID: 356118 `-._ `-._ `-./ _.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | http://redis.io `-._ `-._`-.__.-'_.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | `-._ `-._`-.__.-'_.-' _.-' `-._ `-.__.-' _.-' `-._ _.-' `-.__.-' 356118:M 02 Feb 2024 00:08:01.688 # Server initialized 356118:M 02 Feb 2024 00:08:01.688 # 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. 356118:M 02 Feb 2024 00:08:01.688 * Loading RDB produced by version 6.0.16 356118:M 02 Feb 2024 00:08:01.688 * RDB age 1997799 seconds 356118:M 02 Feb 2024 00:08:01.688 * RDB memory usage when created 0.79 Mb 356118:M 02 Feb 2024 00:08:01.688 * DB loaded from disk: 0.000 seconds 356118:M 02 Feb 2024 00:08:01.688 * Ready to accept connections 356118:signal-handler (1706800717) Received SIGTERM scheduling shutdown... 356118:M 02 Feb 2024 00:18:37.181 # User requested shutdown... 356118:M 02 Feb 2024 00:18:37.181 * Removing the pid file. 356118:M 02 Feb 2024 00:18:37.181 # Redis is now ready to exit, bye bye...
Shell
복사
해결 못하고 결국 인스턴스 새로 만들어서 해결..