104 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			104 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
|  | # Redis Configuration for TYAPI Server Development | ||
|  | 
 | ||
|  | # Network | ||
|  | bind 0.0.0.0 | ||
|  | port 6379 | ||
|  | timeout 0 | ||
|  | tcp-keepalive 300 | ||
|  | 
 | ||
|  | # General | ||
|  | daemonize no | ||
|  | supervised no | ||
|  | pidfile /var/run/redis_6379.pid | ||
|  | loglevel notice | ||
|  | logfile "" | ||
|  | databases 16 | ||
|  | 
 | ||
|  | # Snapshotting | ||
|  | save 900 1 | ||
|  | save 300 10 | ||
|  | save 60 10000 | ||
|  | stop-writes-on-bgsave-error yes | ||
|  | rdbcompression yes | ||
|  | rdbchecksum yes | ||
|  | dbfilename dump.rdb | ||
|  | dir ./ | ||
|  | 
 | ||
|  | # Replication | ||
|  | # slaveof <masterip> <masterport> | ||
|  | # masterauth <master-password> | ||
|  | slave-serve-stale-data yes | ||
|  | slave-read-only yes | ||
|  | repl-diskless-sync no | ||
|  | repl-diskless-sync-delay 5 | ||
|  | repl-ping-slave-period 10 | ||
|  | repl-timeout 60 | ||
|  | repl-disable-tcp-nodelay no | ||
|  | repl-backlog-size 1mb | ||
|  | repl-backlog-ttl 3600 | ||
|  | slave-priority 100 | ||
|  | 
 | ||
|  | # Security | ||
|  | # requirepass foobared | ||
|  | # rename-command FLUSHDB "" | ||
|  | # rename-command FLUSHALL "" | ||
|  | 
 | ||
|  | # Limits | ||
|  | maxclients 10000 | ||
|  | maxmemory 256mb | ||
|  | maxmemory-policy allkeys-lru | ||
|  | maxmemory-samples 5 | ||
|  | 
 | ||
|  | # Append only file | ||
|  | appendonly yes | ||
|  | appendfilename "appendonly.aof" | ||
|  | appendfsync everysec | ||
|  | no-appendfsync-on-rewrite no | ||
|  | auto-aof-rewrite-percentage 100 | ||
|  | auto-aof-rewrite-min-size 64mb | ||
|  | aof-load-truncated yes | ||
|  | 
 | ||
|  | # Lua scripting | ||
|  | lua-time-limit 5000 | ||
|  | 
 | ||
|  | # Slow log | ||
|  | slowlog-log-slower-than 10000 | ||
|  | slowlog-max-len 128 | ||
|  | 
 | ||
|  | # Latency monitor | ||
|  | latency-monitor-threshold 100 | ||
|  | 
 | ||
|  | # Event notification | ||
|  | notify-keyspace-events Ex | ||
|  | 
 | ||
|  | # Hash | ||
|  | hash-max-ziplist-entries 512 | ||
|  | hash-max-ziplist-value 64 | ||
|  | 
 | ||
|  | # List | ||
|  | list-max-ziplist-size -2 | ||
|  | list-compress-depth 0 | ||
|  | 
 | ||
|  | # Set | ||
|  | set-max-intset-entries 512 | ||
|  | 
 | ||
|  | # Sorted set | ||
|  | zset-max-ziplist-entries 128 | ||
|  | zset-max-ziplist-value 64 | ||
|  | 
 | ||
|  | # HyperLogLog | ||
|  | hll-sparse-max-bytes 3000 | ||
|  | 
 | ||
|  | # Active rehashing | ||
|  | activerehashing yes | ||
|  | 
 | ||
|  | # Client output buffer limits | ||
|  | client-output-buffer-limit normal 0 0 0 | ||
|  | client-output-buffer-limit slave 256mb 64mb 60 | ||
|  | client-output-buffer-limit pubsub 32mb 8mb 60 | ||
|  | 
 | ||
|  | # Hz | ||
|  | hz 10 | ||
|  | 
 | ||
|  | # AOF rewrite | ||
|  | aof-rewrite-incremental-fsync yes  |