首页  

aerospike安装记录     所属分类 aerospike 浏览量 1344
官方下载最新版本 
https://www.aerospike.com/download/server/4.3.1.5/

推荐rpm包安装 ,基于二进制安装会出现共享库找不到冲突等问题

hot key 问题解决方案
在namespace 里配置 transaction-pending-limit 0  


操作系统版本查看
uname -a

cat /etc/redhat-release 
CentOS Linux release 7.4.1708 (Core) 

选择 Redhat7 rpm 包


tar xzvf aerospike-server-community-4.3.1.5-el7.tgz 

查询老版本
rpm -qa | grep aerospike
aerospike-tools-3.15.3.2-1.el7.x86_64
aerospike-server-community-4.0.0.5-1.el7.x86_64

卸载老版本 

sudo rpm -e aerospike-server-community-4.0.0.5-1.el7.x86_64
警告:/etc/aerospike/aerospike.conf 已另存为 /etc/aerospike/aerospike.conf.rpmsave

安装最新版本 

sudo rpm -ivh aerospike-server-community-4.3.1.5-1.el7.x86_64.rpm

修改配置文件 /etc/aerospike/aerospike.conf

启动 
sudo service aerospike start

关闭 
sudo service aerospike stop


检查进程 
ps aux|grep aerospike


amc控制台可以查看配置参数 
譬如 ransaction-pending-limit  work-directory  heartbeat.mode  data-in-memory  default-ttl 等


配置实例

namespace test {
	replication-factor 2
	memory-size 4G
	default-ttl 30d # 30 days, use 0 to never expire/evict.

	#https://discuss.aerospike.com/t/why-aerospike-evicted-data/165
	high-water-memory-pct 70 #内存使用率达到70%,新的key将不可以再写入,已经写入的key可以修改。默认60%
    high-water-disk-pct 90  #磁盘使用率达到90%,新的key将不可以再写入,已经写入的key可以修改。默认50%
    stop-writes-pct 70  #内存使用率达到70%,将不可以再写入(可以删除)。默认90%
		
	storage-engine memory
	
	# To use file storage backing, comment out the line above and use the
	# following lines instead.
#	storage-engine device {
#		file /opt/aerospike/data/bar.dat
#		filesize 16G
#		data-in-memory true # Store data in memory in addition to file.
#	}
}

上一篇     下一篇
spring cloud 核心组件介绍

tcp知识点整理

技术文章合集1

redhat linux和centos的区别与联系

java中的队列介绍

http get 与 post 请求区别