我想知道Ubuntu 12.04上具有1 GB RAM和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
}
}
由于
答案 0 :(得分:3)
replication-factor
设置为 true ,那么您的所有数据都必须适合RAM。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
}
}
参数的影响。包含多个文件的示例配置:
using Foundation;
using UIKit;
using System.ComponentModel;
using System;
[Register ("DesignerAwareLabel")]
public class DesignerAwareLabel : UITextField, IComponent {
#region IComponent implementation
public ISite Site { get; set; }
public event EventHandler Disposed;
#endregion
public DesignerAwareLabel (IntPtr handle) : base (handle) { }
public override void AwakeFromNib ()
{
Placeholder = "Foo";
this.Layer.BorderWidth = 1;
}
}