Closed guptaa16 closed 8 years ago
Hi @guptaa16 can you please explain how did you determine that keys were evicted/expired? Since the INFO output doesn't show any evicted/expired key: expired_keys:0 evicted_keys:0
Thank you.
Hi, so I figured out what my problem was. I didnt realize that my redis instance was open to the internet and my database was actually getting hacked as antirez has discussed here: http://antirez.com/news/96. The tipoff was my database had actually been renamed to a authorized_keys file.
I think what happened was I used the newest MSI installer which by default has the option checked to configure the windows firewall for redis (which previously I had left blocked.) That combined with the default redis configuration binding all IP addresses left me wide open. With the current MSI default installer and config this leaves people who are unaware to being completely open to attackers. Maybe worth considering changing the default to be more secure.
Hi @guptaa16 sorry to hear about the hacking, but glad you fixed it. I agree that the default configuration is not optimal in terms of security, but it's also problematic to change some default settings that have been used for a while, it may break things for many users. But if more people will ask for it we may change it, so feel free to open an issue proposing the change to get the community feedback. Thank you.
I upgraded to version to 2.8.2104 and am having an issue where keys are getting deleted after some time. I do not have an eviction policy and do not have any expiry time set as I want all entries to persist. When I run the info command I do not see that anything has been evicted or expired. Is this an issue or is there something else I am missing in the configuration? On previous versions I did not have this issue, all keys would permanently persist. Below is the output from the info command and below that is the configuration file I am using. Thanks.
127.0.0.1:6379> info
Server
redis_version:2.8.2104 redis_git_sha1:00000000 redis_git_dirty:0 redis_build_id:83ad777ec89a946b redis_mode:standalone os:Windows arch_bits:64 multiplexing_api:winsock_IOCP process_id:22908 run_id:c2858dfa214f74a5ccb4765e2061bbc21c15b8b7 tcp_port:6379 uptime_in_seconds:352321 uptime_in_days:4 hz:10 lru_clock:4242286 config_file:C:\Program Files\Redis\redis.windows-service.conf
Clients
connected_clients:1 client_longest_output_list:0 client_biggest_input_buf:0 blocked_clients:0
Memory
used_memory:1394049800 used_memory_human:1.30G used_memory_rss:1394016120 used_memory_peak:5582495640 used_memory_peak_human:5.20G used_memory_lua:36864 mem_fragmentation_ratio:1.00 mem_allocator:dlmalloc-2.8
Persistence
loading:0 rdb_changes_since_last_save:0 rdb_bgsave_in_progress:0 rdb_last_save_time:1447082845 rdb_last_bgsave_status:ok rdb_last_bgsave_time_sec:20 rdb_current_bgsave_time_sec:-1 aof_enabled:0 aof_rewrite_in_progress:0 aof_rewrite_scheduled:0 aof_last_rewrite_time_sec:-1 aof_current_rewrite_time_sec:-1 aof_last_bgrewrite_status:ok aof_last_write_status:ok
Stats
total_connections_received:71 total_commands_processed:11224398 instantaneous_ops_per_sec:0 total_net_input_bytes:6312239337 total_net_output_bytes:0 instantaneous_input_kbps:0.00 instantaneous_output_kbps:0.00 rejected_connections:0 sync_full:0 sync_partial_ok:0 sync_partial_err:0 expired_keys:0 evicted_keys:0 keyspace_hits:5939347 keyspace_misses:2288496 pubsub_channels:0 pubsub_patterns:0 latest_fork_usec:100405
Replication
role:master connected_slaves:0 master_repl_offset:0 repl_backlog_active:0 repl_backlog_size:1048576 repl_backlog_first_byte_offset:0 repl_backlog_histlen:0
CPU
used_cpu_sys:321.48 used_cpu_user:129.28 used_cpu_sys_children:0.00 used_cpu_user_children:0.00
Keyspace
db0:keys=544191,expires=0,avg_ttl=0
CONFIG FILE: