I'm new to Aerospike.
What is a namespace and how to create a namespace in aerospike?
I'm new to Aerospike.
What is a namespace and how to create a namespace in aerospike?
a namespace is a Database name in Aerospike, and set is the Table name and Bins are the columns in Aerospike.
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 want to dynamically create Namespace then you can do something like below- - Modify the aerospace.conf file on the server side . - Then restart the cluster which should restart all the nodes.
For more go to this link http://www.aerospike.com/docs/operations/configure/namespace/
Namespaces are the top level containers for data. A namespace can actually be a part of a database or it can be a group of databases as you would think of them in a standard RDBMS – the reason you collect data into a namespace relates to how the data is going to be stored and managed.
A namespace contains records, indexes and policies. A policy dictates the behavior of the namespace, including:
For a detailed study on the Data model and architecture of Aerospike read the following link: http://www.aerospike.com/docs/architecture/data-model.html
Aerospike namespaces are similar to databases in a RDBMS.
The table below shows the correspondence between Aerospike and RDBMS:
+-----------+-------------+
| Aerospike | RDBMS |
+-----------+-------------+
| Namespace | Database |
| Set | Table |
| Record | Row |
| Bin | Column |
| Key | Primary Key |
+-----------+-------------+
© 2022 - 2024 — McMap. All rights reserved.