microsoftarchive / redis

Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes
http://redis.io
Other
20.82k stars 5.38k forks source link

redis sentinel as service will not start #592

Open OneMeanSloth opened 6 years ago

OneMeanSloth commented 6 years ago

I am just starting trying to get Redis runnning in order to replace our current AppFabric cluster. I have one redis instance running as a windows service. I have six servers to work with so eventually I will have six servers with a redis instance and a sentinel, or perhaps three redis instances on three servers and three sentinels running on the other three. Not sure which is best. I am trying to get a sentinel running as a service on the same machine, but it will not start. I noticed issue #201 that is closed is similar, but this version is far beyond the solution to that issue, also I do not get any event logs or log entries when the sentinel fails to start.

Redis version 3.0.504

Redis instance that is running: Service path to executable "D:\Program Files\Redis\redis-server.exe" --service-run "D:\Program Files\Redis\redis.conf"

redis.conf include redis.windows-service.conf maxmemory 6144mb dir .\state

redis.windows-service.conf is unchanged from download

D:\Program Files\Redis>redis-cli info

Server

redis_version:3.0.504 redis_git_sha1:00000000 redis_git_dirty:0 redis_build_id:a4f7a6e86f2d60b3 redis_mode:standalone os:Windows arch_bits:64 multiplexing_api:WinSock_IOCP process_id:7140 run_id:55733253d3f3b88b7b57d35aa208fe1ee86c2b19 tcp_port:6379 uptime_in_seconds:694890 uptime_in_days:8 hz:10 lru_clock:10064503 config_file:D:\Program Files\Redis\redis.conf

Clients

connected_clients:1 client_longest_output_list:0 client_biggest_input_buf:0 blocked_clients:0

Memory

used_memory:693088 used_memory_human:676.84K used_memory_rss:634440 used_memory_peak:693088 used_memory_peak_human:676.84K used_memory_lua:36864 mem_fragmentation_ratio:0.92 mem_allocator:jemalloc-3.6.0

Persistence

loading:0 rdb_changes_since_last_save:0 rdb_bgsave_in_progress:0 rdb_last_save_time:1519319053 rdb_last_bgsave_status:ok rdb_last_bgsave_time_sec:-1 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:1 total_commands_processed:0 instantaneous_ops_per_sec:0 total_net_input_bytes:14 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:0 keyspace_misses:0 pubsub_channels:0 pubsub_patterns:0 latest_fork_usec:0 migrate_cached_sockets:0

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:0.56 used_cpu_user:0.73 used_cpu_sys_children:0.00 used_cpu_user_children:0.00

Cluster

cluster_enabled:0

Keyspace

Service path to executable "D:\Program Files\Redis\redis-server.exe" --service-run --service-name RedisSentinel --sentinel "D:\Program Files\Redis\sentinel.conf"

sentinel.conf port 26379 dir .\state sentinel monitor redis-olb 10.2.143.20 6379 2 sentinel down-after-milliseconds redis-olb 4000 sentinel failover-timeout redis-olb 180000 sentinel parallel-syncs redis-olb 1

Windows Server 2016 Standard image