Redis connection fails when bgsave is running #465

Closed
halur opened this Issue Apr 19, 2012 · 1 comment

Comments

Projects
None yet
3 participants
@halur

halur commented Apr 19, 2012

Hi,

I am loading Redis with data at regular intervals freq of redis command is in millions.
I have enabled aof, And configured redis to optimize aof file at 100% growth as i need data security.

Now i am facing some redis connection problems,
i have observed that redis server remians non responsive whenever there is bgrewriteaof going on. Even info dbsave such command dont work.

Can some one suggest what kind of approach should i have for this requirement. or is there any tweak possible so that i can overcome this outage.

Check the info before bgrewrite,

redis_version:2.4.9
redis_git_sha1:00000000
redis_git_dirty:0
arch_bits:64
multiplexing_api:epoll
gcc_version:4.1.2
process_id:14141
uptime_in_seconds:102369
uptime_in_days:1
lru_clock:1362814
used_cpu_sys:7001.19
used_cpu_user:40384.22
used_cpu_sys_children:455.32
used_cpu_user_children:1859.62
connected_clients:15
connected_slaves:0
client_longest_output_list:0
client_biggest_input_buf:5
blocked_clients:0
used_memory:1232570192
used_memory_human:1.15G
used_memory_rss:2116718592
used_memory_peak:4292235112
used_memory_peak_human:4.00G
mem_fragmentation_ratio:1.72
mem_allocator:jemalloc-2.2.5
loading:0
aof_enabled:1
changes_since_last_save:32903792
bgsave_in_progress:0
last_save_time:1334833236
bgrewriteaof_in_progress:0
total_connections_received:69833
total_commands_processed:5797726059
expired_keys:0
evicted_keys:0
keyspace_hits:29445376
keyspace_misses:1307084
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:400021
vm_enabled:0
role:master
aof_current_size:4069919831
aof_base_size:2064395894
aof_pending_rewrite:0
aof_buffer_length:0
aof_pending_bio_fsync:0
db0:keys=1497503,expires=0

Info after bgsave,

redis_version:2.4.9
redis_git_sha1:00000000
redis_git_dirty:0
arch_bits:64
multiplexing_api:epoll
gcc_version:4.1.2
process_id:14141
uptime_in_seconds:102598
uptime_in_days:1
lru_clock:1362837
used_cpu_sys:7012.54
used_cpu_user:40470.09
used_cpu_sys_children:459.39
used_cpu_user_children:1876.95
connected_clients:21
connected_slaves:0
client_longest_output_list:0
client_biggest_input_buf:30
blocked_clients:0
used_memory:2181368296
used_memory_human:2.03G
used_memory_rss:2489135104
used_memory_peak:4292235112
used_memory_peak_human:4.00G
mem_fragmentation_ratio:1.14
mem_allocator:jemalloc-2.2.5
loading:0
aof_enabled:1
changes_since_last_save:38004638
bgsave_in_progress:0
last_save_time:1334833236
bgrewriteaof_in_progress:0
total_connections_received:69995
total_commands_processed:5805588708
expired_keys:0
evicted_keys:0
keyspace_hits:29445382
keyspace_misses:1307084
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:395506
vm_enabled:0
role:master
aof_current_size:2315753530
aof_base_size:2116856779
aof_pending_rewrite:0
aof_buffer_length:0
aof_pending_bio_fsync:1
db0:keys=1500374,expires=0

@antirez

This comment has been minimized.

Show comment
Hide comment
@antirez

antirez Apr 21, 2012

Owner

Hello, did you checked if your problem may be related to one of the problems listed here? http://redis.io/topics/latency Thanks.

Owner

antirez commented Apr 21, 2012

Hello, did you checked if your problem may be related to one of the problems listed here? http://redis.io/topics/latency Thanks.

@mattsta mattsta closed this Oct 21, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment