例如:机器配置
cpu: 24 cores
mem: 64g
os: CentOS 6.5
disk: 7200 SAS Seagate 2T
//禁用了 swap
vm.swappiness = 0
ssdb.conf
server:
ip: 0.0.0.0
port: 8888
# bind to public ip
#ip: 0.0.0.0
# format: allow|deny: all|ip_prefix
# multiple allows or denys is supported
#deny: all
#allow: 127.0.0.1
#allow: 192.168
# auth password must be at least 32 characters
#auth: very-strong-password
replication:
binlog: yes
# Limit sync speed to *MB/s, -1: no limit
sync_speed: -1
slaveof:
# to identify a master even if it moved(ip, port changed)
# if set to empty or not defined, ip:port will be used.
#id: svc_2
# sync|mirror, default is sync
#type: sync
#host: localhost
#port: 8889
logger:
level: info
output: log.txt
rotate:
size: 100000000
leveldb:
# in MB
cache_size: 40000
# in KB
block_size: 32
# in MB
write_buffer_size: 70
# in MB
compaction_speed: 1000
# yes|no
compression: yes
# level db open files ,default 1000
max_open_files: 1020000
load average 在15 - 18 之间
连接数稳定在260 - 310之间
vmstat -S m 1,4
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
1 15 0 599 184 23357 0 0 46 763 0 0 2 1 95 2 0
0 14 0 622 184 23363 0 0 5628 0 1200 675 0 0 83 16 0
0 14 0 615 184 23368 0 0 5324 44 1181 788 0 0 83 17 0
0 14 0 607 184 23374 0 0 5796 0 1017 752 0 0 83 17 0