What is a namespace in aerosics

Im new to Aerospike ...!

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

+5
source share
5 answers

the namespace is the name of the database in Aerospike, and set is the name of the table, and cells are the columns in Aerospike.

+1
source

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

The cluster must have at least 1 namespace. In addition, you cannot dynamically add or remove namespaces in a cluster. To add or remove a namespace in a cluster, you must stop all nodes (at this stage), change the configuration on all nodes (IMPORTANT - the configuration must match on all nodes), and then restart the nodes in turn.

For more information on namespace configuration, you should go through this page . (Already mentioned in another answer to your question).

+13
source

If you want to dynamically create a namespace, you can do something like below - - Change the server-side aerospace.conf file. - Then restart the cluster, which should restart all nodes.

Read more about clicking on this link http://www.aerospike.com/docs/operations/configure/namespace/

+2
source

Namespaces are top-level containers for data. The namespace can actually be part of the database or it can be a group of databases, as you think of them in the standard RDBMS - the reason you collect data in the namespace is related to how the data will be stored and managed.

The namespace contains entries, indexes, and policies. A policy defines namespace behavior, including:

  • How data is stored: DRAM or disk
  • How many replicas must exist for the record.
  • When records expire.

For a detailed study of the Aerospike data model and architecture, read the following link: http://www.aerospike.com/docs/architecture/data-model.html

+2
source

Simply put,

namespaces are semantically similar to databases in an RDBMS system. In the namespace, data is divided into groups (similar to tables) and records (similar to strings).

+1
source

Source: https://habr.com/ru/post/1232009/


All Articles