Skip to content

Provisioning a cluster

For the complete documentation index see: llms.txt

All documentation pages available in markdown.

Provision for a Flash (SSD) Database

Storing data on flash allows you to have a large database that is still very responsive. For example, if you want your database to handle approximately:

  • 125 million objects at 1.5 K bytes/object
  • 16K reads/sec and 8K writes/sec

Then you might install the server on a 2-node cluster where each server has:

  • 1 Quad-core CPU (2.2+ GHz)
  • 16 GB RAM
  • 2 × 256 GB SSD
  • 1 Gb Ethernet Network card

Provision for an In-Memory Database

You can also use Aerospike for an in-memory database. For example, let’s say you want your database to handle approximately:

  • 50 million objects at 500 bytes/object
  • 60K reads/sec and 30K writes/sec

In that case, you’d need to provision enough RAM for both data and index, as described above. So you might provision a 2-node cluster where each server has:

  • 1 Quad-core CPU (2.2+ GHz)
  • 64 GB RAM
  • 1 Gb Ethernet Network card

Provision Persistence for an In-Memory Database

In Database 7.0.0 and later, an in-memory namespace mirrors each persistence file or device in memory at the same size, so the persistence layer and the RAM for data are provisioned 1:1. Size the namespace’s data storage as described in Calculating data storage, including the space reserved for defragmentation. Then provision that amount as persistence, and the same amount as RAM. See Required memory.

For example, a namespace that stores 18 GB of data on each server needs about 30 GB of data storage on each server, planning for 60% used as a starting point and leaving the rest for defragmentation. Provision 30 GB of persistence on each server, and count the same 30 GB toward that server’s RAM.

Put the persistence layer on local NVMe or SSD, or on a dedicated network block volume. See Non-local storage.

Provision for Amazon EC2 (Cloud-Based)

You can use Aerospike with Amazon EC2 in either flash (SSD) or in-memory configurations.

For flash, if you chose a i3.2xlarge instance and with two servers, you would be able to support approximately:

250 million objects at 1.5 K bytes/object 40K reads/sec and 20K writes/sec For an in-memory database, you would consider instances from the r4, c5, c5d, x1e families.

See the Amazon EC2 Deployment Guide.