Skip to content
Visit booth 3171 at Google Cloud Next to see how to unlock real-time decisions at scaleMore info

Estimate AVS scaling needs

Aerospike Vector Search (AVS) can be scaled horizontally to accommodate large indexes and high throughput SLAs. This page provides guidance for scaling your cluster based on your use case needs.

Parallel indexing

Choosing a specialized node role

By default, AVS nodes perform indexing and querying simultaneously. If you need to isolate and scale a node to meet indexing or query SLAs, you can configure that node to perform just one of the two operations, which are as follows:

  • Query and Caching - Nodes available for query perform HNSW traversals and cache the index and results in memory.
  • Online Indexing - Nodes available for indexing handle upsert calls and HNSW index healing. These nodes perform live indexing, which makes the index available for searching during updates.
  • Offline Indexing - Nodes that utilize dedicated hardware for building a complete index in memory, which is effective for batch ingestion jobs. While building, an offline index is not available for search.

Scaling for query latency

A common scaling scenario is to reduce search times by ensuring your index is fully available in the AVS cache. You can accomplish this by allocating enough memory to hold the entire index on each node, or across nodes. In effect, there are three different performance modes you will see based on this distribution.

Caching LevelCache Hit Ratiop50p95p99
Index cached on every AVS node100%2.5ms5ms7.5ms
Index cached across AVS nodes>99%10ms25ms50ms
Index mostly cached>90%10ms150ms200ms
Index partially cached<50%100ms500ms1.25s

Cache distribution

Each index has unique latency characteristics depending on its size and the memory capacity of each AVS node. You can adjust the cache expiration period to prevent cooling of the cache and improve performance.

  • Index cached on all nodes - For smaller indexes, AVS builds the cache automatically on every node and performs queries in memory without steering to another node.
  • Index cached across nodes - For larger indexes where performance is a concern, distributing your index across the nodes in your cluster ensures that AVS performs queries in memory. Steering queries to other nodes may be required, resulting in an increased likelihood of cache misses.
  • Partially cached indexes - For larger indexes where spikes are not a concern, the default cache settings distribute and expire the cache across your AVS nodes. This configuration
    optimizes memory use in AVS for frequent queries, but it does not have a minimum memory requirement.

Example index sizings

The following examples provide in-memory deployment patterns and various index sizes, allocating 50% of total RAM to index caching. AVS requires additional RAM for process and node management.

DescriptionCaching LevelRecordsDimensionsIndex SizeNode SizeCluster Size
1M Low DimensionOn Node1,000,0001281 GB32 GBN/A
1B Medium DimensionAcross Node1,000,000,0007683.5 TB512 GB16
1B High DimensionAcross Node1,000,000,0003,07212.4 TB1,024 GB32
Billions High DimensionPartially Cached1,000,000,000+768+35 TB+N/AN/A

Scaling for query throughput

AVS is designed to handle high query throughput, but transactions are queued if the host machine does not have enough CPU resources. We recommend scaling up for periods of high query throughput.

Query throughput estimates

DescriptionPeak QPSDimensionsQPS / CoreCluster Size*
Low Dimension100,00012820016
Medium Dimension100,0007685064

Scaling for indexing

You can plan for scaling throughput by estimating your needs and assigning specific nodes in your cluster as standalone or distributed indexer nodes. By default, nodes perform distributed indexing which is best for small updates. For large updates in batch, consider adding a standalone index node.

Ingest Throughput ScalingDimensionsCPU CoresDistributed Indexer per HourStandard Indexer per Hour
Low Dimension1283296M1.152B
Medium Dimension7683210M120M
High Dimension3072321.67M20M
Feedback

Was this page helpful?

What type of feedback are you giving?

What would you like us to know?

+Capture screenshot

Can we reach out to you?