Skill 2.2.4

Configure compute, memory, and storage resources to support vector workloads

Key Concepts

Flexible server offers Burstable compute for development, General Purpose for most production workloads and Memory Optimized for workloads that need a large cache, such as big HNSW indexes. Memory per vCore rises from General Purpose to Memory Optimized. An index that does not fit in shared_buffers and the operating system cache causes disk reads on every search, which raises latency sharply.

Storage is provisioned separately, and with Premium SSD its IOPS rise with size, while Premium SSD v2 lets IOPS and throughput be set independently. Index builds benefit from a temporarily higher maintenance_work_mem and parallel workers. Read replicas spread search traffic, and scaling compute up for a large build and down afterwards controls cost.