我想知道在Ubuntu12.04上使用1GB内存和1个GHz CPU的迷你(暂存)服务器理想的Aerospike命名空间配置是什么?
一些要求: 1.我希望将数据永久保存在磁盘上(而不是将其用作缓存)。2.我只使用一个节点3。我不想限制数据的文件大小
下面是我使用的当前配置片段:
namespace default {
replication-factor 1
memory-size 1G
default-ttl 0 # not sure if this is for cache or disk
storage-engine device {
file /opt/aerospike/data/default.dat
filesize 2T
data-in-memory true
}
}谢谢
发布于 2015-06-04 22:26:04
data-in-memory设置为真,那么所有的数据都必须安装在内存中。replication-factor参数的影响。具有多个文件的示例配置:
namespace default {
replication-factor 1
memory-size 1G
default-ttl 0 # (This applies to the primary index)
storage-engine device {
file /opt/aerospike/data/file0.dat
file /opt/aerospike/data/file1.dat
file /opt/aerospike/data/file2.dat
file /opt/aerospike/data/file3.dat
file /opt/aerospike/data/file4.dat
file /opt/aerospike/data/file5.dat
filesize 2T
data-in-memory true
}
}https://stackoverflow.com/questions/30652941
复制相似问题