aerospike 集群搭建

本文介绍了Aerospike分布式KV存储服务的特点及安装步骤。包括单机与集群环境下的安装配置流程,以及如何通过修改配置文件来指定集群成员。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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
}

参考链接

转载请注明出处
本文链接: http://www.hatlonely.com/2018...
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值