In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Cat / app/redis/config/redis_6380.conf # INCLUDES # include / path/local.conf# include / path/other.conf# GENERAL # daemonize yespidfile "/ app/redis/ Config/redis_6380.pid "port 6380tcp-backlog 51" bind 192.168.1.100 10.0.0." bind 127.0.0." unixsocket / app/redis/tmp/redis.sock# unixsocketperm 700timeout 30tcp-keepalive 0loglevel noticelogfile "/ app/redis/log/redis_6380.log" databases SNAPSHOTTING # save "" save 900 1save 300 10save 60 " 10000stop-writes-on-bgsave-error yesrdbcompression yesrdbchecksum yesdbfilename "dump_6380.rdb" dir "/ app/redis/db_data" # REPLICATION # slave-serve-stale-data noslave-read-only yesrepl-diskless-sync norepl-diskless-sync-delay "repl-ping-slave-period 1" repl-timeout 60repl-disable-tcp-nodelay no# repl-backlog-size 1mb# Repl-backlog-ttl 3600slave-priority 10 "min-slaves-to-write" min-slaves-max-lag 1 "SECURITY # rename-command CONFIG" # LIMITS # maxclients 20000maxmemory 10gb# volatile- Lru-> remove the key with an expire set using an LRU algorithm # allkeys-lru-> remove any key accordingly to the LRU algorithm # volatile-random-> remove a random key with an expire set # allkeys-random-> remove a random key Any key # volatile-ttl-> remove the key with the nearest expire time (minor TTL) # noeviction-> don't expire at all Just return an error on write operations maxmemory-policy allkeys-lru # APPEND ONLY MODE # appendonly yesappendfilename "appendonly_6380.aof" appendfsync everysecno-appendfsync-on-rewrite noauto-aof-rewrite-percentage 100auto-aof-rewrite-min-size 64mbaof-load-truncated yes# LUA SCRIPTING # lua -time-limit 500 SLOW LOG # slowlog-log-slower-than 10000slowlog-max-len 12 LATENCY MONITOR # latency-monitor-threshold EVENT NOTIFICATION # # notify-keyspace-events "" # ADVANCED CONFIG # hash-max-ziplist-entries 512hash-max-ziplist-value 64list-max-ziplist-entries 512list-max-ziplist-value 64set-max-intset-entries 512zset-max-ziplist-entries 128zset-max-ziplist-value 64hll-sparse-max-bytes 3000activerehashing yesclient-output-buffer-limit normal 00 0client-output-buffer-limit slave 256mb 64mb 60client-output-buffer-limit pubsub 32mb 8mb 60hz 10aof-rewrite-incremental-fsync yes# Redis Auth # masterauth "" requirepass "" slaveof 10.0.20.14 638 Redis Cluster # cluster-enabled yes# cluster configuration file (start automatic generation) # cluster-config-file nodes .conf # threshold for node interconnection timeout # cluster-node-timeout 15000 # cluster-slave-validity-factor 1 instance of redis deployed on the same machine cluster-migration-barrier 1 # cluster-require-full-coverage yes# Rub the auto-aof-rewrite apart to prevent all redis processes from doing rewrite instantly # auto-aof-rewrite-percentage 80-100$ cat / app/redis/config/sentinel_26380.confport 26380daemonize yeslogfile "/ app/redis/log/sentinel_26380.log" dir "/ app/redis/tmp" # master 10.0.20.14 6380sentinel monitor master_6380 10.0.20.14 6380 1sentinel down-after-milliseconds master_6380 3000sentinel failover-timeout master_6380 15000sentinel parallel-syncs master_6380 1sentinel auth-pass master_6380 XXXXXX
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.