Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is namespace in aerospike

Im new to Aerospike...!

what is namespace and how to create a namespace in aerospike....!

like image 214
Nani Avatar asked Sep 22 '15 09:09

Nani


People also ask

How do I create a namespace in Aerospike?

( /etc/aerospike/aerospike. conf by default. ) The only way to create a namespace is by editing the aerospike configuration file and restarting the server. Namespace defines how you will store the data (memory only or SSDs or Files or mem+persistent) and identifies replication factor as well as other default policies.

What are sets in Aerospike?

Although a set can be considered an analogue of a table within an RDBMS for logical simplicity, unlike a table within an RDBMS, a set is not an object within an Aerospike cluster. A set is a logical construct that exists, primarily in the digest of the records that belong to that set.

How does Aerospike store data?

Aerospike can store data on any of the following types of media and combinations thereof: Dynamic Random Access Memory (DRAM). Non-volitile Memory extended (NVMe) Flash or Solid State Drive (SSD). Persistent Memory (PMEM).

What are bins in Aerospike?

bin. In the Aerospike database, each record (similar to a row in a relational database) stores data using one or more bins (like columns in a relational database). The major difference between bins and RDBMS columns is that you don't need to define a schema. Each record can have multiple bins.


3 Answers

A Namespace is a top level container for data in Aerospike. The most important part of a namespace configuration is the storage definition (RAM only, RAM + Persistence on disk, or disk only - usually Flash storage). You can also configure other things at the namespace level, like the data retention policy (default ttl and high water mark to protect against running out of disk or memory). I would recommend reading this page for details.

You need to have at least 1 namespace defined in your cluster. Also, you cannot dynamically add or remove namespaces in a cluster. In order to add or remove a namespace in a cluster, you have to stop all the nodes (at this point), change the configuration on all the nodes (IMPORTANT - configuration should match on all nodes) and then restart the nodes one by one.

For more details on configuration of a namespace, you should go through this page. (Already mentioned in another response to your question).

like image 77
Meher Avatar answered Oct 29 '22 14:10

Meher


a namespace is a Database name in Aerospike, and set is the Table name and Bins are the columns in Aerospike.

like image 28
idiotduffer Avatar answered Oct 29 '22 13:10

idiotduffer


In simple terms,

namespaces are semantically similar to databases in an RDBMS system. Within a namespace, data is subdivided into sets (similar to tables) and records (similar to rows).

like image 38
atul tripathi Avatar answered Oct 29 '22 14:10

atul tripathi