Free audit

View Audit Scope
JusDBSub-ms p99 Histograms · NVMe ACT Profiling · HMA & All-Flash Sprigs

Aerospike performance tuning for sub-millisecond NVMe and HMA workloads.

JusDB tunes production Aerospike clusters to eliminate p99 tail-latency spikes, NVMe defragmentation stalls, and Error Code 14 hot-key bottlenecks. We profile raw flash devices with ACT, right-size partition-tree-sprigs and write-block-size, pin service threads to NUMA sockets, and optimize Smart Client operate() pipelines against a measured baseline.
The first 30-minute call covers your databases, current ownership, and required coverage. No production access is needed. Or start with a free read-only latency & histogram audit.
  • NDA before access
  • Read-only by default
  • Written scope before work starts

aerospike_latency_profiler

NVMe Direct I/O

Raw partition layout & scheduler bypass

Results depend on the workload; we baseline before and measure after each approved change

Storage Layer
Raw NVMe & ACT
Direct block device layout, write-block-size, and defrag-lwm-pct calibration
Index Efficiency
Single-IO Sprigs
partition-tree-sprigs sized so All-Flash lookups fit in one 4 KB block
Host & Network
NUMA & IRQ Pinning
auto-pin numa, service-threads, and NIC queue alignment
P1 response SLA (24/7)
15 mins
SLA response times: P1 – 15 mins | P2 – 30 mins | P3 – 60 mins

Selected clients

  • Innoviti
  • Blitz
  • Freecharge
  • Nango
  • Recochain
  • Screen Facts
  • Nexora
  • WeCredit

Latency bottlenecks we eliminate

Six reasons Aerospike p99 latency drifts above a millisecond.

Aerospike is architected for sub-millisecond speed, but uncalibrated flash defragmentation, deep sprig trees, and cross-socket NUMA scheduling quickly introduce multi-millisecond tail spikes.

NVME_DEFRAG_IOPS_CONTENTION

Read and write p99 latency spikes above 5-10 ms during peak write hours

What is usually happening
Aggressive defrag-lwm-pct or low defrag-sleep causes background flash defragmentation to saturate NVMe write queues alongside client mutations.
Where we start
Inspect asadm latency histograms and device_read/write metrics, balance defrag-lwm-pct with defrag-sleep, and align write-block-size to record payload distributions.
ALL_FLASH_SPRIG_DEPTH

All-Flash namespace suffers high read latency despite low CPU and network utilization

What is usually happening
Insufficient partition-tree-sprigs forces primary-index tree lookups to perform multiple 4 KB NVMe device reads before locating the record digest.
Where we start
Recalculate partition-tree-sprigs for total record count so each sprig fits within a single 4 KB index device block, reducing read amplification.
POST_WRITE_QUEUE_MISS

Replica writes and XDR shipping incur extra NVMe read IOPS on every mutation

What is usually happening
post-write-queue (or max-write-cache) is undersized, causing recently written blocks to flush from memory before XDR or replica reads can consume them.
Where we start
Inspect post_write_q and write cache hit counters via asinfo, and right-size max-write-cache per device to serve recent writes directly from RAM.
HOT_KEY_ERROR_14

High-concurrency updates on popular keys fail with Error Code 14 (Key Busy)

What is usually happening
Single-record read-modify-write bursts exceed transaction-pending-limit (default 20) in the per-partition transaction queue.
Where we start
Profile hot digests in server logs, evaluate read-page-cache or transaction-pending-limit adjustments, and refactor hot counters into sharded or batch CDT operations.
NUMA_IRQ_CROSS_SOCKET

High softirq CPU usage and erratic fabric/client latency on multi-socket hosts

What is usually happening
NIC receive queues, NVMe interrupts, and Aerospike service threads are scheduled across separate NUMA nodes without CPU pinning.
Where we start
Configure service-threads and auto-pin numa, bind NIC/NVMe IRQs to local NUMA cores, and disable transparent hugepages and swap.
BATCH_SINDEX_SCATTER

Large batch reads or secondary-index queries stall normal single-key transactions

What is usually happening
Unbounded batch-index-threads or scatter-gather sindex scans flood service queues and exhaust socket buffers.
Where we start
Cap batch-max-Buffers-per-queue, tune batch-index-threads, and replace unselective secondary indexes with targeted composite keys or filter expressions.

Performance engineering scope

Six tuning layers from raw NVMe blocks to Smart Client SDKs.

We tune the entire path of a request: client connection pools, Linux network queues, NUMA CPU threads, primary-index sprigs, and NVMe flash write blocks.

01

NVMe Storage & ACT Certification Profiling

Aerospike bypasses the OS filesystem to talk directly to raw NVMe partitions. We benchmark and tune your drives for sustained sub-millisecond I/O.

  • Aerospike Certification Tool (ACT) stress testing for 1x, 3x, and 10x read/write loads
  • Raw block partition alignment, over-provisioning headroom, and NVMe queue scheduler tuning
act_storage · nvme-cli · raw partitions
02

Write-Block, Defrag & Post-Write Cache Tuning

Balancing write-block-size, defragmentation watermarks, and in-memory write caches so flash garbage collection never starves client traffic.

  • Tuning write-block-size (128K to 8M), defrag-lwm-pct, defrag-sleep, and max-write-cache
  • Enabling read-page-cache for skewed Zipfian read workloads
write-block-size · defrag-lwm-pct · read-page-cache
03

HMA & All-Flash Index Optimization

Eliminating extra device reads on primary and secondary index lookups across multi-billion-record namespaces.

  • Right-sizing partition-tree-sprigs so All-Flash index trees resolve in one 4 KB read
  • Separating index-type flash devices from data storage devices on dedicated NVMe drives
partition-tree-sprigs · index-type flash · asadm
Aerospike consulting
04

NUMA, CPU Pinning & Kernel Network Tuning

Aligning Aerospike service threads, fabric threads, NIC queues, and Linux sysctl parameters for multi-hundred-thousand TPS throughput.

  • Configuring auto-pin cpu/numa, service-threads, and IRQ affinity across sockets
  • Linux sysctl tuning for somaxconn, tcp_tw_reuse, ring buffers, and MTU
auto-pin · service-threads · ethtool / sysctl
05

Smart Client, Batch & CDT Execution Tuning

Reducing network round-trips and serialization overhead in your Java, Go, C#, or Python application tier.

  • Consolidating multi-step read-modify-write loops into single-hop operate() CDT calls
  • Tuning maxConnsPerNode, async event loops, batch-index concurrency, and rack-local reads
operate() · BatchPolicy · preferRack
06

Micro-Histogram Baselining & Verification

We measure every change against a captured pre-change baseline using Aerospike's microsecond latency histograms.

  • Before/after comparison of read, write-master, proxy, fabric, and device histograms
  • Staged canary rollout to a single node or rack before cluster-wide application
asadm show latencies · asloglatency · asbench

Shared responsibility & SLA response times

Hardware provisioning vs sub-millisecond engine tuning.

Cloud providers deliver raw NVMe bandwidth, but extracting consistent sub-millisecond p99 latency requires workload-specific engine and OS tuning.

NVMe drive selection & ACT benchmarking
Cloud provider supplies standard instance storage.
JusDB runs ACT benchmarks to certify drive latency under sustained read/write load.
Storage engine & defrag tuning
Ships with generic defaults.
JusDB tunes write-block-size, defrag-lwm-pct, defrag-sleep, and max-write-cache.
HMA & All-Flash sprig sizing
Customer must calculate sprigs from record cardinality.
JusDB calculates exact partition-tree-sprigs to keep index lookups to a single 4 KB read.
NUMA, IRQ & Linux kernel tuning
Abstracted away or left at OS defaults.
JusDB configures auto-pin numa, NIC/NVMe IRQ affinity, and network sysctls.
Smart Client & CDT query optimization
Application team responsibility.
JusDB refactors multi-trip client loops into batch-index and single-hop operate() calls.
SLA response times by severity

SLA response times for retained fleets

24/7 support. SLA response times: P1 – 15 mins | P2 – 30 mins | P3 – 60 mins. Our engineering team is in India (IST, UTC+5:30) and provides 24/7 support.

SeverityConditionResponse SLA (24/7)
P1 · CriticalProduction database down, primary unreachable, data corruption risk, or active failover event.15 mins
P2 · HighSevere latency spike, replication lag climbing rapidly, connection exhaustion, or degraded HA node.30 mins
P3 · MediumNon-critical slow query regression, staging issue, backup warning, configuration question, or planned operational request.60 mins

Response means an on-call engineer is working the incident, not an automated reply.

Your team retains

Customer ownership

  • Set business priorities, application requirements, and release plans
  • Approve production changes, except routine actions you have pre-approved
  • Own your cloud accounts, access policies, and vendor relationships
  • Decide when maintenance can happen and how quickly service must recover
  • Move the work in-house or to another provider after your agreement's notice period, with your data returned or deleted and the transition help your agreement sets out (see Terms, section 8)
JusDB owns

Engineering deliverables

  • Monitor database health, investigate alerts, and involve the right people
  • Review query performance, replication, capacity, and backup health
  • Carry out approved changes and update the operating instructions they affect
  • Report completed work, open risks, and recommended next steps

Latency & IOPS state simulator

See how sprig sizing, defrag pacing, and NUMA pinning compress tail latency.

Compare an untuned cluster suffering defrag contention and sprig read amplification against a canary-verified JusDB configuration.

aerospike_performance_tuning_simulator

Application and routing

Smart Client -> Single-hop NUMA-pinned thread -> 1 NVMe read -> <1 ms p99

Active
  • Storage Engine (NVMe)

    Raw Partition · write-block 1M

    defrag-lwm=50% · read-page-cache hit=68% · p99=0.5ms

  • Primary Index (HMA / Sprigs)

    4,096 Sprigs Tuned

    1 device I/O per lookup · zero sprig contention

  • Service & Fabric Threads

    NUMA Auto-Pinned

    key_busy=0 · batch queues clear · softirq balanced

When write-block-size, defrag-sleep, read-page-cache, and NUMA thread pinning match your workload profile, Aerospike sustains sub-millisecond p99 latency under heavy mixed read/write load.

Sample tuning deliverable

Microsecond histogram decomposition and NVMe tuning diff.

We isolate whether latency originates in the storage device, primary index, or network fabric before changing a single line of configuration.

Finding #09 · Tail-Latency Audit

Read p99 spikes caused by write-block defrag contention and cold post-write queues

Microsecond histograms on the rtb_bid_cache namespace showed from-device read slices spiking during peak write intervals. max-write-cache was left at default 64 MB per NVMe device, forcing replica and XDR reads to hit physical flash while defrag-lwm-pct 60 generated heavy background write amplification.

Applied changes: Enabled read-page-cache true, raised max-write-cache to 256M per NVMe device, lowered defrag-lwm-pct to 50, and enabled auto-pin numa.
Validation method: Verified on a single canary node via asadm show latencies -v over a 24-hour peak cycle prior to rolling cluster deployment.
Results depend on the workload; we baseline before and measure after each approved change

01 · Read-only microsecond histogram & NVMe cache hit inspection

# Inspect microsecond latency buckets (2^0 us up to 2^16 us) across read/write/device slices
asadm -e "show latencies -v for rtb_bid_cache"

# Check read-page-cache and post-write-queue cache hit efficiency
asadm -e "show stat namespace for rtb_bid_cache like cache_read_pct|post_write_q|defrag_q"

# Inspect per-NVMe device read/write block latency and queue depth
iostat -xz 1 5

02 · Target aerospike.conf NUMA pinning & NVMe storage-engine optimization

service {
    auto-pin numa
    transaction-pending-limit 30
    batch-index-threads 8
}

namespace rtb_bid_cache {
    replication-factor 2
    read-page-cache true
    partition-tree-sprigs 4096

    storage-engine device {
        device /dev/nvme0n1
        device /dev/nvme1n1
        write-block-size 256K
        max-write-cache 256M
        defrag-lwm-pct 50
        defrag-sleep 500
    }
}
Evaluation Vector
JusDB DBRE
In-House DBALegacy AgencyDeveloper Generalist
Raw Block Flash Profiling & ACT (Aerospike Certification Tool)Comprehensive ACT benchmark qualification across raw NVMe block devices, measuring IOPS degradation under 1x–12x stress loads to certify sustained sub-millisecond p99 write latency.Mounts SSDs through ext4 or XFS filesystems, introducing OS page cache overhead, IO serialization, and unpredictable write amplification.Relies on synthetic vendor disk throughput specs without running ACT or tuning hardware controller queue depths.Deploys network-attached cloud disks (EBS gp2/gp3) with variable IOPS, inducing latency spikes and device queue stalls.
Defragmentation (defrag) Queue & High-Water Mark (HWM) SizingDynamic defrag-lwm-pct, defrag-sleep, and defrag-queue-min tuning to maintain continuous free block pools during write bursts without CPU starvation.Leaves defragmentation at factory defaults; high write volumes exhaust available blocks, triggering emergency synchronous defrag latency penalties.Lowers write-block-size arbitrarily without calculating defragmentation thread overhead, creating memory churn.Breaches high-water-disk-pct, tripping cluster-wide stop-writes and causing total write transaction rejections.
Primary Index RAM Ergonomics (64 bytes/record) & SizingExact 64-byte RAM-per-record modeling, partition index distribution calibration, shared-memory sizing, and hugepages allocation for billions of keys.Overprovisions record counts without tracking physical memory footprint, leading to swap thrashing and OS OOM killer invocation.Treats index RAM as a secondary cache; ignores 64-byte fixed index overhead and runs nodes out of memory during migrations.Confuses primary index in RAM with data-in-memory; exhausts system memory and crashes cluster nodes upon service start.
Secondary Index Memory Allocation & Garbage CollectionCustom secondary index garbage collection profiling, query thread parallelism tuning, and predicate pushdown selectivity optimization.Builds wide cardinality sIndexes on rapidly updating records, creating massive GC queues and memory bloat.Executes unindexed filter queries that trigger full namespace table scans, saturating storage bus and stalling reads.Adds multiple secondary indexes to every bin; starves primary index memory and degrades overall cluster TPS.
Client Policy Latency Budgets & Exponential Retry BackoffPrecise client timeout budgeting (totalTimeout, maxRetries, sleepBetweenRetries), connection pool sizing, and circuit breakers for node failover.Default infinite or long timeouts in client policies, leading to client connection exhaustion and thread pool deadlocks during transient spikes.Blindly copies client SDK defaults across microservices, creating thundering herds during cluster partition rebalances.Configures zero retries with aggressive 5ms timeouts, throwing cascading connection errors to end users during normal partition handoffs.
Migration Concurrency & Network Buffer Ring (somaxconn) TuningKernel socket buffer optimization (net.core.somaxconn, rmem_max, wmem_max), migrate-threads calibration, and bandwidth throttling to isolate client SLA.Allows partition migrations to run unthrottled during node additions, starving foreground client transactions and breaching latency SLAs.Sets migrate-threads to 1 to prevent load, resulting in migrations lasting days and leaving cluster in degraded replica state.Ignores OS network ring buffers, causing packet drops and node evictions from the cluster heartbeat ring.

Engagement models

Three ways to engage our Aerospike performance engineers.

Start with a focused latency and storage audit or embed our team for ongoing fleet optimization. A monthly retainer for a set number of engineering hours, or a monthly fee per database instance, HA cluster, or region; projects are scoped and quoted separately.

Targeted Sprint

Latency & NVMe Tuning Audit

Baseline histogram capture, ACT drive qualification, sprig and write-block optimization, NUMA pinning, and canary rollout verification.

Architecture & Schema

Aerospike Consulting

Deeper architectural redesign covering HMA vs All-Flash transitions, CDT record refactoring, and multi-DC XDR topology.

Continuous Care

Aerospike Remote DBA

Keep tail latency sub-millisecond as traffic grows with continuous telemetry monitoring, rolling maintenance, and monthly capacity tuning.

Procurement and security

Ready for legal and security review.

Mutual NDA before any access, least-privilege credentials in your vault, and security controls aligned with ISO 27001 and SOC 2 Type II.
  • Mutual NDA before any access
  • Named individual accounts only
  • Read-only access by default
  • ISO 27001 & SOC 2 Type II: aligned, certification in progress
  • Mutual NDA before any access

    We sign a mutual NDA before viewing schemas, logs, slow-query captures, or cloud topology.

  • Least-privilege, named credentials

    Engineers connect through your bastion, VPN, or SSM using named accounts with read-only permissions by default.

  • Change control & approval gates

    Production DDL, parameter changes, and failovers follow your change-management workflow with rollback steps prepared first.

  • Named leadership & direct escalation

    Engagements are led by named senior database reliability engineers in India with direct Slack, Teams, and PagerDuty channels.

Aerospike performance tuning FAQ

ACT benchmarks, defrag, and hot-key questions.

How we diagnose and eliminate Aerospike latency bottlenecks without risking cluster stability.

Still have a question?

Ask it on a scoping call. No production access needed.

Book a 30-min scoping call (opens Google Calendar in a new tab)

How do you diagnose Aerospike p99 latency spikes without impacting production traffic?

We start entirely read-only by inspecting Aerospike's built-in microsecond histograms (asadm -e 'show latencies -v'), device I/O counters (iostat -xz), and per-namespace storage telemetry. By decomposing latency into read, write-master, proxy, fabric, and device slices, we pinpoint whether the bottleneck is NVMe defrag contention, sprig depth, network fabric jitter, or hot-key locking.

What is the Aerospike Certification Tool (ACT) and when should we run it?

ACT is Aerospike's storage benchmark utility that simulates realistic mixed read/write and defragmentation I/O on raw NVMe or SSD devices for 24 hours. Many enterprise SSDs perform well for the first hour and then suffer severe latency cliffs once internal flash garbage collection kicks in. We run ACT when qualifying new cloud instance families (such as AWS i4i/i3en or GCP Z3) or bare-metal NVMe drives.

Can Aerospike performance tuning be applied without cluster downtime?

Yes. Many critical parameters, including defrag-lwm-pct, defrag-sleep, migrate-threads, nsup-period, and batch thread pools, can be adjusted dynamically via asinfo -v 'set-config:...'. Parameters that require a daemon restart (such as partition-tree-sprigs, write-block-size, or auto-pin) are rolled out one node at a time using quiesce, recluster, and warm restarts.

How do you fix Error Code 14 (Key Busy / Hot Key) in Aerospike?

Error Code 14 occurs when concurrent operations on a single record digest exceed transaction-pending-limit (default 20). First, we enable read-page-cache on the namespace if hot traffic is read-heavy so repeated reads bypass the device. For write-heavy hot keys, we work with your application engineers to shard counters across bucketed keys or combine multiple bin updates into a single atomic operate() call.

What kind of latency and throughput improvements should we expect?

Results depend on the workload; we baseline before and measure after each approved change Every tuning engagement starts by capturing a baseline of your current p50, p95, p99, and p99.9 histograms and NVMe utilization, then verifying each configuration change on a canary node before rolling it across the cluster.

What happens if we need ongoing performance monitoring after the engagement?

24/7 support. SLA response times: P1 – 15 mins | P2 – 30 mins | P3 – 60 mins. Our engineering team is in India (IST, UTC+5:30) and provides 24/7 support. Teams often pair a performance tuning sprint with our Aerospike Remote DBA service (/databases/aerospike/remote-dba) so watermark drift and workload shifts are tuned continuously. A monthly retainer for a set number of engineering hours, or a monthly fee per database instance, HA cluster, or region; projects are scoped and quoted separately.

Aerospike engineering ecosystem

Related Aerospike services for high-scale fleets.

Combine sub-millisecond performance tuning with multi-AZ high availability, migrations, or ongoing Remote DBA operations.

Architecture

Aerospike Consulting

Upfront HMA vs All-Flash capacity modeling, XDR design, Strong Consistency, and CDT data modeling.

Explore service
Support

Aerospike Support Services

15-minute P1 response SLA, 24/7, for sudden latency cliffs and stop_writes.

Explore service
Operations

Aerospike Remote DBA

Continuous telemetry watch, rolling quiesce upgrades, and ongoing watermark optimization.

Explore service
Resilience

Aerospike High Availability

3-AZ rack-aware placement, Strong Consistency rosters, and multi-DC XDR failover engineering.

Explore service
Migration

Aerospike Migration Services

Migrate latency-sensitive workloads from Redis, Cassandra, or DynamoDB to Aerospike.

Explore service
Cloud-Native

Aerospike on Kubernetes

Near bare-metal NVMe performance on Kubernetes using AKO, local block PVs, and CPU pinning.

Explore service

Bring your p99 histograms back under a millisecond

Tune your Aerospike NVMe, HMA, and Smart Client stack against a measured baseline.

Start with a read-only diagnostic capture of your asadm latency histograms and NVMe metrics. We deliver a written tuning plan before any production edit.