Im new to Aerospike...!
what is namespace and how to 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.
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.
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).
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.
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).
a namespace is a Database name in Aerospike, and set is the Table name and Bins are the columns in Aerospike.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With