ssdb配置文件--优化

SSDB配置——官方文档

例如:机器配置

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    
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值