Skip to content

Server hardware requirements

For the complete documentation index see: llms.txt

All documentation pages available in markdown.

This page describes hardware requirements and recommendations.

Processor

The CPU load depends on the type of commands your application performs. Simple CRUD commands rarely stress the processor, while heavy use of atomic data type commands (such as the Map API) combined with compression and encryption at rest will demand a higher CPU load. Aerospike provides asbench to help you properly benchmark of your hardware.

Minimum Requirements

  • One quad core processor for production deployments
  • For 64-bit x86 (Intel/AMD) processors: x86-64-v2 microarchitecture level compatibility
  • For ARM64 processors for Database 6.2.0 and later: ARMv8.2-A instruction set (Neoverse N1 microarchitecture) compatibility, such as AWS Graviton 2 processors

Recommendations

  • The amount of memory you can have on your server may be determined by its processor. For bare-metal deployments, check with the manufacturer on the CPU’s memory limits.
  • Hyperthreading is reliable from Intel Xeon v2 (ivy bridge) chips onward. In older Xeon v1 chips (sandy bridge and older) you should rely on the physical cores and turn off hyperthreading.
  • You may benefit from auto-pinning NIC queues to the CPU cores. See auto-pin for more information.

Memory

Indexes are stored in RAM by default, and the amount of available memory limits the number of records that can be stored on each cluster node. Aerospike Database is very memory efficient, with each record (AKA object or row) requiring only a (CPU cache line efficient) 64 bytes of memory for its metadata in the primary index. This means that each GiB of memory can index 16 million records.

  • Memory use is also affected by:
  • If storing data in RAM, you must also account for the size of the data in addition to the indexes
  • If storing data on SSDs or Intel Optane persistent memory, the data itself needs no additional RAM. Namespaces with data on SSD still use RAM for the max-write-cache and post-write-cache of each device
  • The memory needed for indexes, and optionally storage, is multiplied by the replication factor of the namespaces
  • Aerospike Database Enterprise Edition (EE) stores primary and secondary indexes in shared memory, allowing for fast restarts
  • Aerospike EE also supports storing the primary index in persistent memory or on flash (SSD), which results in a tiny memory requirement, unless secondary or set indexes are used

Minimum Requirements

  • 4 GiB of RAM is required for production deployments.
  • For development deployments, you can tune down the index-stage-size to 128MiB. This allows you to run in 1GiB of RAM or less, but limits the maximum number of records on the node.

Recommendations

  • In our testing, the specific type of memory and even speed did not significantly affect performance.
  • Persistent memory performs nearly as well as RAM, at a lower cost and higher density of memory per DIMM slot, as well as being persisted on clean shutdowns.

Solid-State Drives (SSDs)

The most common hardware configuration for an Aerospike namespace is to store indexes in RAM and the data on SSDs. Hybrid Memory architecture is one of the reasons that Aerospike Database has the best cost-performance ratio, and the ability to store very large data sets (multi terabyte and petabyte) on a significantly smaller database cluster than the competition.

  • When declaring a namespace storage to be on SSD, it is typically on a raw device, and not a file system.
  • When declaring a namespace storage to be RAM, an SSD can be used to persist the data to a file or the raw device.
    • Aerospike stores the data in memory and writes a copy to the persistence file or device. In Database 7.0.0 and later, the persistence layer receives only writes during normal operation, because defragmentation and tomb raiding run in memory.
    • In Enterprise Edition (EE), the data in memory is in shared memory, which survives a restart of the Aerospike process, so a fast restart reuses it. In Community Edition (CE), and after a cold start in EE, such as after a host reboot, the node reads the persistence layer at startup to rebuild the index and reload the data into memory.

Minimum Requirements

  • The data storage requirement is multiplied by the replication factor of the namespace.
  • See the capacity planning guide to determine the required amount of SSD storage space.

Recommendations

  • Partitioning flash drives (SSDs) tends to increase write performance.
  • For an in-memory namespace with storage-backed persistence, the persistence file or device is the same size as the memory it backs. See Required memory.
    • Put the persistence layer on local NVMe or SSD, or on a dedicated network block volume. See Non-local storage.
    • While not required, it is a good idea to put the persistence file on a different disk than the OS.

Cloud and virtualized environments

  • See the Cloud section for specifics about the different cloud and virtualized environments.

Non-local storage

Shadow devices and the persistence layer of in-memory namespaces can use non-local storage only if it has the characteristics of Amazon EBS, described in this section as a dedicated network block volume. Shared storage, such as Ceph or NFS, can’t be used for either. Local NVMe or SSD is always the preferred choice for namespace data.

Dedicated network block volumes and shared storage

Dedicated network block volumes are the only non-local storage that shadow devices and in-memory persistence can use. A dedicated network block volume is remote storage that behaves like a local drive:

  • The OS sees a raw block device (NVMe or SCSI), not a network file system mount.
  • The volume is attached to one server and used by one Aerospike node.
  • Its IOPS, throughput, and latency are provisioned for that volume, and don’t depend on other volumes, other tenants, or the server’s own network traffic.
  • Failures are contained. A slow or failed volume affects only its own node, and its I/O times out instead of hanging. Wider outages stay within a failure domain, such as an availability zone, that you can align with Aerospike racks.

Amazon EBS is the reference example. The AWS Nitro card presents each EBS volume to the instance as an NVMe device and carries its traffic over bandwidth reserved for EBS. To the OS and to Aerospike, an EBS volume is a local drive with a known performance envelope. Equivalents include Azure Premium SSD and Ultra Disk, Google Cloud Hyperdisk and Persistent Disk, and on-premises NVMe-oF storage with per-volume QoS that passes ACT.

Shared storage can’t be used for namespace data, the persistence layer of an in-memory namespace, or shadow devices. Shared storage includes the following:

  • Network file systems, such as NFS, SMB/CIFS, CephFS, and GlusterFS.
  • Distributed or shared block storage, such as Ceph RBD (including through OpenStack Cinder or Rook), replicated software-defined volumes, and SAN pools that serve every node.

Shared storage fails at least the last two properties of a dedicated network block volume. Its performance depends on the whole storage cluster, and one storage system sits under every node.

Storage to avoid

  • Don’t use shared storage for namespace data (storage-engine device), for the persistence layer of an in-memory namespace (storage-engine memory with file or device), or for shadow devices.
  • Don’t use any non-local storage, dedicated or shared, for index-type flash mounts. Index lookups happen on nearly every transaction. Use local NVMe, PMem, or index-type shmem.
  • Don’t put the host’s root file system or swap on shared storage. On Kubernetes, this means the OS disk of the worker node.

Why shared storage causes failures

  • Writes fail, not just slow down. Aerospike flushes every write to storage in write blocks: client writes, replica writes, migrations, and defragmentation. This includes the persistence layer of an in-memory namespace and every shadow device. When flushing falls more than max-write-cache behind (64 MiB per device or file by default), the node rejects client and replica writes with a device-overload error and logs queue too deep.
  • Tail latency follows the storage cluster. p99 and p999 latency depend on replication between storage servers, recovery, rebalancing, scrubbing, and other tenants. A short test that reports median latency hides this variation.
  • One storage failure hits every replica. When one storage system sits under every node, a storage incident stalls all nodes at once. Replication factor and rack awareness can’t protect against a failure that every replica shares. The storage system’s own replication can also put Aerospike’s replicas on the same physical disks.
  • A stalled network mount hangs instead of returning an error. It blocks I/O instead of failing it, and NFS hard mounts, the default, retry forever. The node stays in the cluster but stops making progress, which degrades the whole cluster.

Primary data storage

  • Use local NVMe or SSD devices as raw devices.
  • In the cloud, use instance-store NVMe as the primary device, with a dedicated network block volume as its shadow device for durability. The shadow device receives only writes, so it needs the node’s full write throughput, not its read IOPS.
  • A dedicated network block volume can be the primary device if the workload accepts its higher latency and its throughput stays below the volume’s provisioned IOPS, counting reads, writes, and defragmentation. See Amazon EC2 capacity planning.

In-memory namespace persistence

  • Use local NVMe or SSD, or a dedicated network block volume. In Database 7.0.0 and later, the persistence layer receives only writes during normal operation, because defragmentation and tomb raiding run in memory. Size its write throughput for all the writes the node handles: client, replica, migration, and defragmentation.
  • We recommend a raw device. A file must be on a local file system, such as XFS or ext4, on one of those devices, never on a network file system mount.

Dedicated network block volumes

Apply the following to every dedicated network block volume:

  • Before production, test the volume with ACT at your target load, and judge it by tail latency.
  • Lower the NVMe I/O timeout (nvme_core.io_timeout), starting at 3 seconds, so that a hung volume removes its node from the cluster instead of stalling it. See EBS I/O failure behavior.
  • Use rack awareness to spread racks across independent storage failure domains, such as availability zones.
  • Set node-id explicitly if a volume can be reattached to a different instance. This avoids unnecessary migrations.

Kubernetes

  • Check what backs each StorageClass. Many clusters default to Ceph, through Rook, or to other shared storage.
  • Use local persistent volumes for primary data, from the Local Static Provisioner, OpenEBS LVM LocalPV, or TopoLVM. Use a cloud block-volume StorageClass, such as one from the Amazon EBS CSI driver, for shadow devices or in-memory persistence.

Backups

Shared and object storage are the right place for backups. Write asbackup output there, or take snapshots of dedicated network block volumes, such as EBS snapshots.

If your platform requires shared storage, contact your Aerospike solutions architect before you deploy.