aerospike数据保留配置
所属分类 aerospike
浏览量 1675
根据原文翻译整理
Namespace Retention Configuration
https://www.aerospike.com/docs/operations/configure/namespace/retention/
expire evict
TTL (Time To Live)
nsup-period
high-water-disk-pct
high-water-memory-pct
evict-hist-buckets
NSUP (namespace supervisor)
An eviction run happens when your data exceeds either high-water-disk-pct or high-water-memory-pct in order to allow the cluster to continue processing new writes.
当内存或磁盘占用超过设定的阈值时触发逐出 ,方便集群处理新的写入
Aerospike never evicts or expires data that has been stored with a TTL of 0
TTL为0的记录不会被逐出
namespace $namespace-name {
# How long (in seconds) to keep data after it is written
default-ttl $VALUE
# How full may the disk become before the server begins eviction (expiring records early)
high-water-disk-pct $PERCENT
# How full may the memory become before the server begins eviction (expiring records early)
high-water-memory-pct $PERCENT
# How full may the memory become before we disallow new writes
stop-writes-pct $PERCENT
...
}
As of Aerospike 3.6.1, a set can be protected from evictions. The following example shows how to protect a set from evictions:
保护指定的SET不被驱逐
namespace $namespace-name {
...
set $set-name {
set-disable-eviction true # Protect this set from evictions.
}
}
改设置可以动态配置
asinfo -v "set-config:context=namespace;id=namespaceName;set=setname;set-disable-eviction=true"
As of Aerospike 3.7.0.1, a set can have a set-stop-writes-count to limit the number of records that can be written to it. T
可以设置set 最大的记录数,超出则停止写入
namespace $namespace-name{
...
set $set-name {
# Limit number of records that can be written to this set to 5000.
set-stop-writes-count 5000
}
}
该参数可以动态配置
asinfo -v "set-config:context=namespace;id=namespaceName;set=setname;set-stop-writes-count=xxx"
上一篇
下一篇
aerospike数据逐出与停止写入相关参数
2018年度最让人尴尬的新闻
史上最牛逼的幸福公式
aerospike命令行工具asinfo使用
中国近现代人生22个失误
java程序员情书