资讯专栏INFORMATION COLUMN

aerospike 集群搭建

ranwu / 1560人阅读

摘要:是一个分布式的存储服务,与,等相比,最大的特点是支持内存和磁盘的混合存储,并且对的支持非常好,将索引存在内存中,数据存在中,保持极高性能的同时,能有效的节约成本单机安装安装启动查看日志集群安装首先用上面的步骤在每个节点安装,再

aerospike 是一个分布式的 kv 存储服务,与 redis,memcached 等相比,最大的特点是支持内存和磁盘的混合存储,并且对 ssd 的支
持非常好,将索引存在内存中,数据存在 ssd 中,保持极高性能的同时,能有效的节约成本

单机安装

安装

wget -O aerospike.tgz "https://www.aerospike.com/download/server/latest/artifact/el6"
tar -xvf aerospike.tgz
cd aerospike-server-community-*-el6
sudo ./asinstall

启动

sudo service aerospike start

查看日志

tail -f /var/log/aerospike/aerospike.log
集群安装

首先用上面的步骤在每个节点安装 aerospike,再修改配置文件 /etc/aerospike/aerospike.conf,添加集群的地址列表,启动服务即可

下面是一个配置文件样例

service {
    user root
    group root
    paxos-single-replica-limit 1
    pidfile /var/run/aerospike/asd.pid
    proto-fd-max 15000
}

logging {
    file /var/log/aerospike/aerospike.log {
        context any info
    }
}

network {
    service {
        address 0.0.0.0
        port 3000
        # add current node address here
        access-address 172.31.25.40 3002
    }

    heartbeat {
        mode mesh
        # add current node address here        
        address 172.31.25.40
        port 3002
        # add all cluster node address here
        mesh-seed-address-port 172.31.25.40 3002
        mesh-seed-address-port 172.31.23.48 3002
        mesh-seed-address-port 172.31.19.27 3002
        interval 150
        timeout 10
    }

    fabric {
        address any
        port 3001
    }

    info {
        address any
        port 3003
    }
}

namespace test {
    memory-size 8G
    storage-engine memory
}
参考链接

Install on Red Hat: https://www.aerospike.com/doc...

Network Heartbeat: https://www.aerospike.com/doc...

转载请注明出处 
本文链接:http://www.hatlonely.com/2018...

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/17768.html

相关文章

发表评论

0条评论

最新活动
阅读需要支付1元查看
<