pika配置文件说明

# Pika 端口
port : 9221

# pika进程数量,不建议超过核心数量,pika是多线程的
thread-num : 1

# Sync 线程数量
sync-thread-num : 6

# sync 处理线程的任务队列大小,一般没有必要修改
sync-buffer-size : 10

# Pika日志目录
log-path : ./log/

# Pika 的log级别,任何一个级别均记录慢日志
loglevel : info

# Pika数据目录
db-path : ./db/

# Pika 底层引擎的write_buffer_size配置,大,会快,但越大刷盘越久,需要权衡,实际上在测试中发现再大意义也不大了
write-buffer-size : 268435456 # Pika 的连接超时时间,就是连接sleep多久了就把它断开 timeout : 60 # 密码管理员密码,默认为空 requirepass : password # Masterauth masterauth : # 用户密码,默认为空 userpass : userpass # 指令黑名单,普通用户将不能使用黑名单中的指令。指令之间使用“,”隔开。默认为空 userblacklist : FLUSHALL,SHUTDOWN # Pika的dump文件名称前缀 dump-prefix : pika9001- # 守护进程模式 [yes | no] daemonize : yes # slotmigrate [yes | no] #slotmigrate : no # Pika dump目录 dump-path : /data1/pika9001/dump/ # pidfile Path pid文件目录 pidfile : /data1/pika9001/pid/9001.pid # Max Connection maxconnection : 20000 # rocks-db的sst文件体积,sst文件是层级的,文件越小,速度越快,合并代价越低,但文件数量就会超多,而文件越大,速度相对变慢,合并代价大,但文件数量会很少,默认是 20M target-file-size-base : 20971520 # write2file文件保留时间,7天,最小为1,超过7天的文件会被自动清理 expire-logs-days : 7 # write2file文件最大数量,200个,最小为10,超过200个就开始自动清理,始终保留200个 expire-logs-nums : 200 # root用户连接保证数量:2个,即时Max Connection用完,该参数也能确保本地(127.0.0.1)有10个连接可以同来登陆pika root-connection-num : 2 # 慢日志记录时间,单位为微秒 slowlog-log-slower-than : 10000 # slave是否是只读状态(yes/no, 1/0) # slave-read-only : 0 # Pika db 同步路径 db-sync-path : ./dbsync/ # db sync speed(MB) max is set to 125MB, min is set to 0, and if below 0 or above 125, the value will be adjust to 125 db-sync-speed : -1 # 指定网卡 # network-interface : eth1 # replication # slaveof : master-ip:master-port ################### ## Critical Settings ################### # # write2file文件体积,默认为100MB,一旦启动不可修改, limited in [1K, 2G] binlog-file-size : 104857600 # 压缩方式[snappy | none]默认为snappy,一旦启动不可修改 compression : snappy # 指定后台flush线程数量,默认为1,范围为[1, 4] max-background-flushes : 1 # 指定后台压缩线程数量,默认为1,范围为[1, 4] max-background-compactions : 1 # max-cache-files default is 5000 max-cache-files : 5000

猜你喜欢

转载自www.cnblogs.com/senlinyang/p/9235141.html