如何在Mac OS的Aerospike中创建名称空间?

时间:2018-09-24 09:27:53

标签: caching vagrant aerospike

我是Aerospike的新手,想在Aerospike中创建一个新的命名空间。

如何实现?

我已经使用流浪者安装了Aerospike,并使用以下命令运行了Aerospike:

vagrant up
vagrant ssh

请提出建议。

1 个答案:

答案 0 :(得分:2)

可以通过以下步骤实现:

  1. 转到无所事事的虚拟机

    vagrant up    
    vagrant ssh 
    
  2. 在etc / aersospike目录中打开aerospike.cong文件

    sudo vi /etc/aerospike/aerospike.conf
    
  3. 在文件中添加新的命名空间,如下所示:

    namespace kvtest {
        replication-factor 2
        memory-size 1G
        default-ttl 5d # 5 days, use 0 to never expire/evict.
    
    
        # To use file storage backing, comment out the line above and use the
        # following lines instead.
        storage-engine device {
                file /opt/aerospike/data/catalog.dat
                filesize 5G
                data-in-memory true # Store data in memory in addition to file.
        }
    }