How do I use namespace in Aerospike?

How do I use namespace in Aerospike?

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.

How do I configure Aerospike?

Configuration Steps​

  1. (Optional) Configure feature key.
  2. Configure network service and heartbeat sub-contexts.
  3. Configure namespaces.
  4. Configure logging and log rotation.
  5. (Optional) Configure security.
  6. (Optional) Configure rack-awareness.
  7. (Optional) Configure cross-datacenter replication.

How is data stored in Aerospike?

The record data is stored in bins. Bins consist of a name and a value. Bins do not specify the data type, rather the data type is defined by the value contained in the bin.

What is a bin 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.

What is set in Aerospike?

An Aerospike “set” is similar to a table in a relational database. One of the big difference is that with Aerospike, you do not need to predefine a schema. Thus, sets are created dynamically and implicitly on first record insertion in set.

How do I delete a set in Aerospike?

Here is one way I observe that a set is dropped:

  1. Insert records (through Java Client) into a set with expiration set for each record.
  2. after all the records are expired, use asinfo to set ‘set-delete’ flag to TRUE.
  3. restart aerospike.
  4. The set will be dropped.

Is Aerospike a memory?

Aerospike implements a hybrid memory architecture wherein the index is purely in-memory (not persisted), and data is stored only on a persistent storage (SSD) and read directly from the disk.

What is one of the main features of Aerospike?

Aerospike is a real-time database technology that enables a persistent data caching layer using NVMe-based storage.

How do I delete a namespace in Aerospike?

The following steps are to be followed:

  1. Stop all client writes to the namespace.
  2. For each node in the cluster: i. Stop the ASD on the node. $ sudo service aerospike stop Stopping aerospike: [ OK ] ii. Zero the data on the partitions using the ‘dd’ command: # dd if=/dev/zero of=/dev/[device] bs=1M.

How do I query Aerospike?

Create a Query Application​

  1. Install and configure the Aerospike server.
  2. Create indexes on a bin.
  3. Insert records within an indexed bin.
  4. Construct a predicate (a WHERE clause), make the query request, and process returned records.