PostgreSQL and Vector Database Extension on Dell PowerFlex with Kubernetes
Executive Summary
Executive Summary
Overview
PostgreSQL is a robust, open-source object-relational database system with a rich set of advanced features that enable developers to build robust applications with high scalability for complex data workloads. PostgreSQL is also highly extensible, adding even more functionality to the core database engine.
pgvector is a PostgreSQL extension that is designed for AI-driven workloads, enabling efficient storage and similarity search of vector embeddings. It empowers operations such as semantic search, recommendation systems, and anomaly detection by supporting nearest neighbor queries directly within PostgreSQL. Using indexing options like IVFFlat and HNSW, pgvector delivers high-performance vector search while leveraging PostgreSQL’s reliability, scalability, and security.
Dell PowerFlex is a software-defined infrastructure solution that is engineered to deliver highly scalable and resilient storage and compute services. PowerFlex supports heterogeneous workloads with independent resource scaling, ensuring high availability, low-latency performance, and optimized data path efficiency.
This white paper presents the deployment methodology and performance of PostgreSQL on Kubernetes platform, leveraging PowerFlex as the underlying storage platform. The paper also describes the deployment of pgvector, highlighting its performance characteristics for running AI workloads on PowerFlex.
Revisions
| Part number | Release Date | Description |
| H04651 | February 2026 | Initial release |
Audience
The intended audience includes database administrators, system engineers, field consultants, IT administrators, technical architects, and anyone else who is interested in configuring and deploying PostgreSQL and pgvector on PowerFlex.
Readers should have a basic knowledge of PowerFlex and PostgreSQL database technologies and be familiar with storage, compute, and networking concepts and topologies.
Terminology
The following table provides definitions for some of the terms that are used in this document:
| Term | Definition |
| AI | Artificial Intelligence |
| ANN | Approximate Nearest Neighbor |
| CSI | Container Storage Interface |
| CSM | Container Storage Module |
| HNSW | Hierarchical Navigable Small World |
| iDRAC | Integrated Dell Remote Access Controller |
| IOPS | Input/Output Operations per Second |
| ITOM | IT Operational Management |
| IVFFlat | Inverted File with Flat Quantization |
| LAION | Large-scale Artificial Intelligence Open Network |
| LCM | Life Cycle Management |
| MDM | Meta Data Manager |
| MG | Medium Granularity |
| OS | Operating System |
| QPS | Query per second |
| RHEL | Red Hat Enterprise Linux |
| SDC | Software Defined Client |
| SDS | Software Defined Storage |
| SQL | Structured Query Language |
| SSD | Solid-State Drive |
| ToR | Top of Rack |
| TPCB | Transaction Processing Performance Council Benchmark |
| VLAN | Virtual Local Area Network |
| VM | Virtual Machine |
| WAL | Write Ahead Logging |
We value your feedback
Dell Technologies and the authors of this document welcome your feedback on the solution and the solution documentation. Contact the Dell Technologies Solutions team by email.
Author: Lakshmi S
Product Overview
Product Overview
PowerFlex family
PowerFlex software-defined storage enables broad consolidation across the data center, encompassing most block storage workloads with ease. The software-first architecture enables automation and programmability of the complete infrastructure stack. PowerFlex provides scalability, performance, and resiliency to enable effortless adherence to stringent workload SLAs.
PowerFlex software components
Software is the key differentiation in the PowerFlex offer. PowerFlex software components not only provide distributed software-defined storage services, but also help simplify infrastructure management and orchestration.
PowerFlex core software
PowerFlex is a software-defined scale-out block storage service that is designed to deliver flexibility, elasticity, and simplicity with predictable high performance and resiliency at scale.
For more details about PowerFlex 4.x, see PowerFlex 4.x specifications.
For more details about PowerFlex 5.x, see PowerFlex 5.x specifications.
PowerFlex Manager
PowerFlex Manager enables comprehensive IT Operational Management (ITOM) and Life Cycle Management (LCM) capabilities that span compute as well as storage infrastructure, from BIOS and firmware to nodes, software, and networking.
PowerFlex deployment architectures
PowerFlex software-defined storage can be deployed in a disaggregated architecture (independently scalable compute and storage layers).
Independent architecture
In an independent, or disaggregated, architecture, some nodes provide storage capacity for data in applications, while other separate and independent nodes provide compute resources for applications and workloads. Compute and storage resources can be scaled independently by adding nodes to the cluster while it remains active. This separation of compute and storage resources helps minimize software licensing costs in certain situations. This architecture is ideal for high-performance databases and application workloads.
Disaggregation gives organizations the freedom to choose different LCM options that best align with their operational models. Not only can PowerFlex Manager manage the LCM of PowerFlex storage infrastructure, it can also manage LCM of PowerFlex compute nodes. This freedom also brings the choice to manage compute estates that connect to PowerFlex using other tools.
PowerFlex consumption options
PowerFlex rack
PowerFlex rack is a software-defined infrastructure platform that combines compute and high-performance storage resources in a managed unified network. This rack-based engineered system, with integrated networking, enables customers to achieve the scalability and management requirements of a modern data center.
PowerFlex appliance
PowerFlex appliance is a PowerEdge-based server which has been configured as a node in a software-defined storage deployment that runs PowerFlex software components. This offering gives customers the flexibility and savings to bring their own compatible networking or make use of full network automation using a supported set of Dell or Cisco switches.
PowerFlex custom nodes
PowerFlex custom nodes are validated PowerEdge-based server building-blocks that are configured for use with PowerFlex. These nodes are available with thousands of configuration options for customers who prefer to build their own environments.
PowerFlex in the public cloud
PowerFlex software storage services can be deployed on recommended instances (with attached storage) in Amazon Web Services or Microsoft Azure. Only the EC and MG data layout as well as the independent (disaggregated) architecture are supported. Where available, native asynchronous replication may be used to migrate data between cloud and on-premises PowerFlex systems, or to establish cloud-based BC/DR data protection schemes.
PowerFlex CSI/CSM
An important component outside PowerFlex that enables a flexible consumption model for Kubernetes is the PowerFlex CSI driver, developed as a part of the Dell Kubernetes strategy. After the CSI driver for PowerFlex is loaded into Kubernetes, the driver can be used to provision persistent volumes from the underlying PowerFlex storage resource. If the Kubernetes deployment is running low on PowerFlex storage resources, you can add PowerFlex storage nodes to increase the system capacity and performance.
The CSI driver connects the PowerFlex system and Kubernetes deployments. It is a storage broker which dynamically provisions volumes from PowerFlex through the PowerFlex API gateway to the Kubernetes cluster. Once the volume is available on PowerFlex, it is immediately mapped to the requesting pod. If a pod is destroyed or rescheduled, the CSI plug-in ensures that the volumes are remapped upon rescheduling of that pod.
Customers running Kubernetes clusters on PowerFlex use the Dell Container Storage Modules (CSM), which extend the CSI driver capabilities. These modules:
- Provide enterprise storage capabilities to Kubernetes for cloud-native stateful applications.
- Reduce management complexity, so that developers can independently use enterprise storage with ease and automate daily operations.
- Extends storage functionality and capabilities beyond using the CSI driver alone.
These modules include replication, observability, authorization, application mobility, and resiliency.
PostgreSQL
Overview
PostgreSQL, also known as Postgres, is a powerful, free, and open-source relational database management system (RDBMS) designed for extensibility and full SQL compliance. It supports advanced features such as ACID-compliant transactions, updatable and materialized views, triggers, foreign keys, and stored procedures. PostgreSQL powers applications ranging from transactional systems and analytics platforms to data warehouses, geospatial services, and AI-driven workloads.
For more information, see PostgreSQL: Documentation.
Vector databases overview
A vector database is a specialized data management system that is designed to store, index, and search high-dimensional vector embeddings efficiently. These embeddings represent data such as text, images, audio, or video in numerical form, enabling similarity search and retrieval based on semantic meaning rather than exact matches. Vector databases are essential for AI and machine learning applications, including recommendation systems, image recognition, natural language processing, and generative AI, where fast and accurate nearest-neighbor searches are critical.
pgvector
pgvector is a PostgreSQL extension that enables efficient storage and similarity search of high-dimensional vectors, making PostgreSQL a powerful choice for AI-driven applications. It supports operations like nearest neighbor search for embeddings that are generated by machine learning models, enabling use cases such as semantic search, recommendation systems, and anomaly detection, all within a familiar relational database environment.
Key benefits are:
- Native integration: Runs inside PostgreSQL, leveraging its reliability, security, and scalability.
- Vector storage: Enables the storage of vector data, which is useful for applications such as machine learning and similarity searches.
- Indexing options: Supports advanced index types such as IVFFlat and HNSW for fast approximate nearest neighbor (ANN) search.
- Search capabilities: Supports both exact and approximate nearest neighbor searches using algorithms such as L2 distance, cosine distance, and vector negative inner product.
- Flexibility: Works with existing SQL workflows and allows combining vector search with relational queries.
- Open source: Actively maintained and widely adopted for AI workloads.
For more information, see the pgvector documentation.
Solution Architecture
Solution Architecture
Overview
This section describes the architecture and design principles used to deploy the PostgreSQL solution on PowerFlex.
Logical architecture
The solution architecture consists of a disaggregated PowerFlex system with dedicated compute and storage nodes. PowerFlex Manager deploys a storage-only cluster consisting of four nodes, each equipped with ten PCIe SSDs drives. The PowerFlex SDS and MDM components are installed on the storage nodes, while the PCIe SSDs from each storage-only node provide an aggregate storage pool within a single protection domain.
Compute-only nodes are provisioned with Red Hat Enterprise Linux as the base operating system. Upstream Kubernetes is deployed on these four worker nodes. The Kubernetes control plane is deployed on separate nodes, to avoid using resources of the worker nodes. As part of the PowerFlex CSI driver deployment on the Kubernetes cluster, the PowerFlex SDC is installed on the worker nodes to enable persistent storage provisioning.
PostgreSQL is deployed as a containerized application within the Kubernetes cluster on the PowerFlex compute-only nodes. For more information, see Deploying PostgreSQL in Kubernetes.
For more information about the software and hardware configuration of this solution, see Appendix A - Test Configuration Details.
Network architecture
The following figure shows the network architecture of the PowerFlex system that is used in this solution:
The network design has the following characteristics:
- Each of the PowerFlex compute and storage nodes is attached with two 25 GbE dual-port NIC cards.
- Each Ethernet adapter is connected to two Top of Rack (ToR) Dell switches. This configuration provides network redundancy.
- Dedicated VLANs are used to separate management and data network traffic.
- Storage-only nodes: The PowerFlex storage management network is configured in a mode1 bond (active-backup mode) across all 4x25 GbE ports, while the PowerFlex data networks are each configured separately on all 4x25 GbE ports.
- Compute-only nodes: The operating system management and Kubernetes management network are in the mode1 bond (active-backup mode) and are configured on 2x25 GbE ports. The two PowerFlex data networks are configured on one 25 GbE port, and the other two PowerFlex data networks are configured on the remaining 25 GbE port.
The following table shows the different VLANs that are used for PowerFlex:
| Network type | VLAN ID |
| PowerFlex management | 150 |
| PowerFlex data 1 | 151 |
| PowerFlex data 2 | 152 |
| PowerFlex data 3 | 153 |
| PowerFlex data 4 | 154 |
| Operating System management | 105 |
| Kubernetes management | 171 |
Deploying PostgreSQL in Kubernetes
Deploying PostgreSQL in Kubernetes
Overview
This section describes how to deploy PostgreSQL in a Kubernetes cluster. Each pod runs as a standalone PostgreSQL instance with its own dedicated persistent data volume and Write Ahead Logging (WAL) volume. The pods are uniformly distributed across Kubernetes worker nodes to enhance resiliency and performance.
Prerequisites
# kubectl get nodes
NAME STATUS ROLES AGE VERSION
k8s-master Ready control-plane 50d v1.32.8
k8s-worker-1 Ready <none> 50d v1.32.8
k8s-worker-2 Ready <none> 50d v1.32.8
k8s-worker-3 Ready <none> 50d v1.32.8
k8s-worker-4 Ready <none> 50d v1.32.8
# kubectl get pods -n vxflexos
NAME READY STATUS RESTARTS AGE
vxflexos-controller-869f474c47-xw487 5/5 Running 11 47d
vxflexos-node-5hp54 2/2 Running 0 47d
vxflexos-node-db59k 2/2 Running 0 47d
vxflexos-node-llzfs 2/2 Running 0 47d
vxflexos-node-rqtvm 2/2 Running 0 54d
Deployment steps
To deploy PostgreSQL in Kubernetes:
- Create a namespace for managing PostgreSQL pods, services, and deployment:
# kubectl create namespace postgresql - Create a ConfigMap YAML file to include the environment variables of the PostgreSQL database:
# kubectl apply -f postgres-config.yaml -n postgresql - Create a Service YAML file to connect PostgreSQL pods from external client machines:
# kubectl apply -f postgres-service.yaml -n postgresql - Create a StatefulSet YAML file to deploy a PostgreSQL pod:
# kubectl apply -f postgres-statefulset.yaml -n postgresql - Scale the number of pods in accordance with the requirements:
# kubectl scale statefulset postgres --replicas=4 -n postgresql - Check the status of the PostgreSQL StatefulSet pods:
# kubectl get pods -n postgresql -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
postgres-0 1/1 Running 0 27m 10.244.1.42 k8s-worker-1 <none> <none>
postgres-1 1/1 Running 0 6m1s 10.244.2.36 k8s-worker-2 <none> <none>
postgres-2 1/1 Running 0 6m1s 10.244.3.21 k8s-worker-3 <none> <none>
postgres-3 1/1 Running 0 6m1s 10.244.4.251 k8s-worker-4 <none> <none> - Check the status of the Persistent Volumes:
# kubectl get pv -n postgresql
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS VOLUMEATTRIBUTESCLASS REASON AGE
csivol-144bf4dd83 200Gi RWO Delete Bound postgresql/wal-postgres-1 vxflexos-xfs <unset> 5m21s
csivol-400f74a6fa 800Gi RWO Delete Bound postgresql/data-postgres-2 vxflexos-xfs <unset> 5m20s
csivol-4b5f7cecdb 200Gi RWO Delete Bound postgresql/wal-postgres-3 vxflexos-xfs <unset> 5m19s
csivol-5f733f9bf8 800Gi RWO Delete Bound postgresql/data-postgres-1 vxflexos-xfs <unset> 5m21s
csivol-6328acd27b 200Gi RWO Delete Bound postgresql/wal-postgres-2 vxflexos-xfs <unset> 5m19s
csivol-63d46339cb 800Gi RWO Delete Bound postgresql/data-postgres-0 vxflexos-xfs <unset> 26m
csivol-7681ef9080 200Gi RWO Delete Bound postgresql/wal-postgres-0 vxflexos-xfs <unset> 26m
csivol-b00befd5a5 800Gi RWO Delete Bound postgresql/data-postgres-3 vxflexos-xfs <unset> 5m19s - List all resources in the postgresql namespace:
# kubectl get all -n postgresql -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
pod/postgres-0 1/1 Running 0 25m 10.244.1.42 k8s-worker-1 <none> <none>
pod/postgres-1 1/1 Running 0 3m42s 10.244.2.36 k8s-worker-2 <none> <none>
pod/postgres-3 1/1 Running 0 3m41s 10.244.4.251 k8s-worker-4 <none> <none>
pod/postgres-2 1/1 Running 0 3m42s 10.244.3.21 k8s-worker-3 <none> <none>
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
service/postgres-0 NodePort 10.99.71.247 <none> 5432:30010/TCP 18m statefulset.kubernetes.io/pod-name=postgres-0
service/postgres-1 NodePort 10.102.125.130 <none> 5432:30011/TCP 2m12s statefulset.kubernetes.io/pod-name=postgres-1
service/postgres-2 NodePort 10.109.162.173 <none> 5432:30012/TCP 2m8s statefulset.kubernetes.io/pod-name=postgres-2
service/postgres-3 NodePort 10.99.99.161 <none> 5432:30013/TCP 2m4s statefulset.kubernetes.io/pod-name=postgres-3
NAME READY AGE CONTAINERS IMAGES
statefulset.apps/postgres 4/4 25m postgres postgres:17.6
NodePort is configured with a one-to-one mapping to the pods.
PostgreSQL Performance Tests
PostgreSQL Performance Tests
Overview
This section provides a detailed description of the performance tests used to validate the PostgreSQL database deployment on the PowerFlex system.
pgbench
pgbench serves as the benchmarking tool for performance evaluation. The tool, which is included with PostgreSQL software, simulates transaction workloads to measure database performance. The select-only and TPCB-like workloads are run using the pgbench tool to validate the database performance. For more information, see pgbench documentation.
Test configuration
PostgreSQL database pods are deployed inside the Kubernetes cluster, whereas the benchmark clients are placed on separate hosts to reduce operational overhead and improve resource utilization.
Configuring client machines
To configure client machines, perform the following steps:
- Install Kubectl on the client (Install and Set Up kubectl on Linux ).
- Create a .kube directory in the
/rootfolder.# sudo mkdir -p /root/.kube - Download the configuration file from the control node located in the .kube folder and import the file into the .kube folder that you created in the client node.
- Verify the connection to the PostgreSQL pods:
# kubectl get pods -n postgresql
NAME READY STATUS RESTARTS AGE
postgres-0 1/1 Running 0 16h
postgres-1 1/1 Running 0 16h
postgres-10 1/1 Running 0 16h
postgres-11 1/1 Running 0 16h
postgres-2 1/1 Running 0 16h
postgres-3 1/1 Running 0 16h
postgres-4 1/1 Running 0 16h
postgres-5 1/1 Running 0 16h
postgres-6 1/1 Running 0 16h
postgres-7 1/1 Running 0 16h
postgres-8 1/1 Running 0 16h
postgres-9 1/1 Running 0 16h - Install the pgbench tool on the client. For more information, see PostgreSQL: Downloads.
Clients can access the Kubernetes environment because they have direct network reachability to the control‑plane API server. The imported kubeconfig file supplies the API endpoint and authentication certificates, enabling secure kubectl access over port 6443 without requiring the client to be part of the cluster’s internal network. The performance tests are run concurrently from these clients.
Initialize the database
# pgbench --initialize –scale=<scale factor> --host=<hostname> --port=<port-number> --username=<username> <database-name>
A scale factor of 40,000 generates 584 GB of database size:
postgresdb=# SELECT pg_size_pretty(pg_database_size('postgresdb'));
pg_size_pretty
----------------
584 GB
(1 row)
Test methodology
The test process begins with a single PostgreSQL pod and progressively scales to 4, 8, 12, and 16 pods. At each scaling step, performance metrics such as IOPS and latency are measured from the PowerFlex system. The scaling continues until the read latency of the storage volume approaches 1 millisecond. The tests are performed using 100 concurrent sessions and 8 jobs per pod.
Use case 1: Select-only workload
‘--select-only’option for running a SELECT query. The number of clients and threads are variables that can be changed based on the available system resources. The following example shows the pgbench parameters that are used to run select-only workload on the PostgreSQL databases:
# pgbench –-builtin=select-only –time=<No. of seconds to test the run > --client= <No. of concurrent sessions> --jobs=<No. of worker threads> --host= <hostname> --port <port-number> --username <username> <database-name>
Use case 2: TPCB-like workload
--tpcb-like' option for running a TPCB-like workload. The number of clients and threads are variables that can be changed based on the available system resources. The following example shows the pgbench parameters that are used to run select-only workload on the PostgreSQL databases:
# pgbench –-builtin=tpcb-like –time=<No. of seconds to test the run > --client=<No. of concurrent sessions> --jobs=<No. of worker threads> --host= <hostname> --port <port-number> --username <username> <database-name>
Deploying the Vector Database Extension (pgvector)
Deploying the Vector Database Extension (pgvector)
Overview
pgvector is a PostgreSQL extension that introduces a vector data type to enable advanced similarity search and AI-driven workloads. This section describes the deployment of pgvector pods in the Kubernetes cluster. Each pod runs as a standalone pgvector instance with its own dedicated persistent data volume and WAL volume. The pods are uniformly distributed across different Kubernetes worker nodes to enhance resiliency and performance.
Prerequisites
Before starting the pgvector deployment on Kubernetes pods, you must:
- Create a Kubernetes cluster with one or more control nodes and four worker nodes. See Creating a cluster with kubeadm.
- Install PowerFlex CSI driver on the Kubernetes worker nodes. For more information about CSI driver deployment, see Installation Guide.
- Use the pgvector image that is available on Docker Hub for the deployment. For more information, see pgvector/pgvector - Docker Image.
Deployment steps
To deploy the pgvector extension:
- Create a namespace for managing pgvector pods, services, and the deployment:
# kubectl create namespace pgvector - Create a secret YAML file to include environment variables of the PostgreSQL database enabled with pgvector extension:
# kubectl apply -f pg-secret.yaml -n pgvector - Create a Service YAML file to connect pgvector pods from external client machines:
# kubectl apply -f pg-service.yaml -n pgvector - Create a ConfigMap for initialization of vector extension and creation of vector table:
# kubectl apply -f pg-init-script.yaml -n pgvector - Create a StatefulSet YAML file to deploy a pgvector pod:
# kubectl apply -f pg-statefulset.yaml -n pgvector - Scale the number of pods in accordance with the requirements:
# kubectl scale statefulset postgres-pgvector --replicas=<no of pods> -n pgvector - Check the status of the pgvector StatefulSet pods:
# kubectl get pods -n pgvector -o wide - Check the status of the persistent volumes:
# kubectl get pv -n pgvector - List all resources in the pgvector namespace:
# kubectl get all -n pgvector -o wide
For the YAML files referenced in these deployment steps, see Appendix B - YAML Definition Files. In this deployment, a service of type NodePort is configured with a one-to-one mapping to the pods.
# kubectl exec -it postgres-pgvector-0 -n pgvector -- psql -U admin -d vectordb
psql (17.6 (Debian 17.6-2.pgdg13+1))
vectordb=# \dx
List of installed extensions
Name | Version | Schema | Description
---------+---------+------------+------------------------------------------------------
plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language
vector | 0.8.1 | public | vector data type and ivfflat and hnsw access methods
(2 rows)
vectordb=# SELECT * FROM pg_extension WHERE extname ='vector';
oid | extname | extowner | extnamespace | extrelocatable | extversion | extconfig | extcondition
-------+---------+----------+--------------+----------------+------------+-----------+--------------
16385 | vector | 10 | 2200 | t | 0.8.1 | |
(1 row)
pgvector Performance Tests
pgvector Performance Tests
Overview
This section provides a detailed description of the test setup and use cases that were evaluated in the pgvector performance testing.
VectorDBBench
VectorDBBench is an open-source benchmarking tool that is designed to evaluate the performance of vector databases and similarity search engines. VectorDBBench provides a standardized framework for testing ingestion speed, query latency, throughput, and scalability across different workloads. The tool supports configurable parameters such as dataset size, embedding dimensions, and index types, making it ideal for measuring and comparing database performance under AI and machine learning workloads. For more information, see VectorDBBench documentation.
Test configuration
As shown in Figure 5 in Test configuration, the test setup is unchanged except for the inclusion of the pgvector extension on the PostgreSQL pods, which adds the vector database functionality. The clients are configured to connect to the pgvector pods in a similar manner to that mentioned in Configuring client machines. The tests are run concurrently from the clients. For more information, see VectorDBBench: Installation.
Ingestion
Ingestion refers to the process of inserting the vector embeddings into the database for it to be indexed and queried for similarity search. Vector embeddings are numerical representations that are derived from data such as images, text, or audio. In essence, each item is transformed into a mathematical vector that captures its semantic meaning or distinctive characteristics.
VectorDBBench provides several predefined datasets for benchmarking vector databases, covering different dimensions and sizes to simulate real-world AI workloads. For testing, 1 million vectors of 768 dimensions generated using embeddings from Cohere models and 100 million vectors of 768 dimensions derived from a LAION‑based dataset are used.
Cohere produces precomputed text embeddings that are derived from large language models (LLMs), capturing semantic meaning across diverse domains and advancing natural language processing and information retrieval. These embeddings support semantic search, question answering, and a wide range of multilingual applications.
LAION (Large‑scale Artificial Intelligence Open Network) is a provider of massive, openly available resources designed for training and evaluating large-scale multi-modal AI models. LAION resources are particularly known for enabling research in image-text and audio-text learning at unprecedented scales.
The following table presents the insert duration that is observed in the test environment for the listed datasets:
| Dataset | Insert duration (minutes) |
| 1M vectors 768 Dimension | 2 |
| 100M vectors 768 Dimension | 222 |
For the inbuilt datasets, VectorDBBench performs the ingestion serially into the vector table. As a result, a linear increase is observed in the insert duration as the dataset size grows.
Use case 1: Indexing
Indexing in a vector database is the process of organizing high-dimensional vector embeddings to make similarity searches faster and more efficient. Instead of scanning every vector in the dataset, specialized indexing structures group or connect vectors in a way that reduces search complexity. These methods enable Approximate Nearest Neighbor (ANN) queries, which significantly improve query speed while maintaining high accuracy, making indexing essential for large-scale AI applications. The two types of indexing that pgvector supports are:
- Inverted File with Flat Quantization (IVFFlat)
- Hierarchical Navigable Small World (HNSW)
IVFFlat
IVFFlat is an indexing method that is used in vector databases to accelerate similarity search. It works by partitioning the vector space into multiple clusters (called lists) using a clustering algorithm. During a query, only a subset of these clusters is searched, based on proximity to the query vector, reducing the number of comparisons compared to a full scan. For more information, see pgvector: IVFFLAT.
HNSW
HNSW is a graph-based indexing method that is widely used in vector databases to enable fast approximate nearest neighbor search. It constructs a multi-layer graph where each node represents a vector and connections are established based on proximity. Queries navigate through these layers, starting from a higher level and progressively moving to more detailed levels, significantly reducing search time compared to brute-force scanning. For more information, see pgvector: HNSW.
VectorDBBench performs ingestion and indexing as part of the same test and provides the insert duration, optimize duration (time taken for indexing), and the total duration.
VectorDBBench indexing command examples
vectordbbench pgvectorhnsw --case-type Performance768D1M --host <hostname> --port <port-number> --db-name <database-name> --user-name <user-name> --password <password> --load --skip-search-concurrent --skip-search-serial --maintenance-work-mem <memory for index creation> --max-parallel-workers <number of parallel workers>
vectordbbench pgvectorivfflat --case-type Performance768D1M --host <hostname> --port <port-number> --db-name <database-name> --user-name <user-name> --password <password> --load --skip-search-concurrent --skip-search-serial --maintenance-work-mem < memory for index creation> --max-parallel-workers <number of parallel workers> --lists <no of clusters>
Indexing
The results indicate that IVFFlat outperforms HNSW in indexing speed for large datasets. This advantage stems from IVFFlat simpler clustering-based structure, which requires less computational overhead during indexing. In contrast, HNSW builds a multi-layer graph with numerous connections for each vector, making the indexing process more complex and time-consuming.
In additional tests, the PostgreSQL pods with pgvector enabled are scaled linearly to eight instances. Each pod is populated with a 100 million vectors with 768 dimensions, and HNSW indexing is performed in parallel across all pods.
postgres@postgres-pgvector-0:/# psql -U admin -d vectordb
psql (17.6 (Debian 17.6-2.pgdg13+1))
Type "help" for help.
vectordb=# SELECT pg_size_pretty(pg_relation_size('vdbbench_table_test')) AS table_size,
pg_size_pretty(pg_indexes_size('vdbbench_table_test')) AS index_size,
pg_size_pretty(pg_total_relation_size('vdbbench_table_test')) AS total_size;
table_size | index_size | total_size
-----------+------------+-----
381 GB | 368 GB | 749 GB
(1 row)
In total, 6 TB of data including the vectors and the indexes are populated on the database. HNSW indexing on the 100 million vectors of 768 dimensions takes an average optimize duration of 22 hours in the test setup.
Use case 2: Similarity search
Similarity search is a core capability of vector databases that enables finding items that are most similar to a given query based on their semantic representation. Unlike traditional exact-match queries, similarity search compares high-dimensional vectors and numerical representations of data such as text, images, or audio to identify the closest matches and uses distance metrics such as Euclidean (L2), cosine similarity, or inner product to determine how close two vectors are. This approach powers applications like semantic search, image retrieval, and recommendation systems, delivering relevant results even when exact matches do not exist.
VectorDBBench has options to perform the serial and concurrent similarity search. The following commands are examples:
vectordbbench pgvectorhnsw --case-type Performance768D100M --host <hostname> --port <port-number> --db-name <database-name> --user-name <user-name> --password <password> --skip-drop-old --skip-load --search-serial --search --num-concurrency < Number of concurrent client connections> --concurrency-duration < Duration of the concurrent query test>
vectordbbench pgvectorivfflat --case-type Performance768D100M --host <hostname> --port <port-number> --db-name <database-name> --user-name <user-name> --password <password> --skip-drop-old --skip-load --search-serial --search --num-concurrency < Number of concurrent client connections> --concurrency-duration < Duration of the concurrent query test>
VectorDBBench reports the following metrics:
- Queries Per Second (QPS): A performance metric that measures how many query requests a system can process in one second. The tests are run with a concurrency value of 64 and concurrency duration of 300 seconds.
- Serial p99 Latency: The 99th percentile latency (in seconds) of the query requests.
- Recall: The ratio of relevant items that are retrieved by a query to the total number of relevant items that could have been retrieved, indicating the system’s ability to retrieve all relevant items from a dataset.
When performing similarity search, k defines how many nearest neighbors (vectors) should be retrieved for each query vector. In VectorDBBench k =100 by default. This can be modified during the search tests.
Each PostgreSQL pod that is enabled with pgvector, is scaled linearly with a 100 million vectors, 768‑dimension dataset, and indexing is performed. Similarity search runs concurrently across all indexed pods.
HNSW outperforms IVFFlat during similarity search, processing more queries per second. HNSW ensures swift query handling, offering the speed required for large-scale, high-throughput applications.
HNSW delivers superior recall compared to IVFFLAT, making it highly effective for applications requiring high accuracy in nearest-neighbor retrieval. Also, the serial p99 latency for similarity search using HNSW is lower than that of IVFFLAT, indicating that HNSW provides more consistent and faster response times under high-load conditions.
I/O behavior during similarity search workload
During the similarity search operations, a brief spike in IOPS is typically observed at the start of the query phase. This occurs as the system retrieves index structures and relevant data blocks from storage. Once these elements are cached in memory, subsequent queries are served from the buffer cache, resulting in negligible disk I/O.
This behavior is common in vector search benchmarks using indexing methods such as IVFFLAT and HNSW. Both techniques rely on pre-built index structures to accelerate search. The initial disk reads load these structures into memory, after which the query execution becomes CPU-bound, focusing on distance calculations and graph traversal rather than disk access.
Best practices
Best practices
Overview
This section describes the Dell-recommended best practices for the components of this solution.
PowerFlex nodes
The following recommendations are for the PowerFlex nodes:
- Use dedicated VLANs to isolate management and data traffic from application traffic.
- Verify that the PowerFlex performance profile is set to High Performance (the default).
- Use a non-bonded NIC port design template for PowerFlex storage-only node deployment to achieve maximum performance.
- Use jumbo frames (9000 Bytes MTU) throughout the networking infrastructure such as in ToR switches, bonding, VLAN interfaces of both storage and compute nodes.
PostgreSQL database
The following recommendations are for the PostgreSQL database on Kubernetes:
- PostgreSQL databases maintain individual configuration files that define operational behavior. It is advisable to evaluate and customize the
postgresql.confparameters to align with workload demands and system capabilities. Critical parameters includeshared_buffers,work_mem,effective_cache_size,max_connections,min_wal_size, andmax_wal_size. Optimal values depend on available resources. Online tools can simplify tuning efforts. For more information; see PGTune - calculate configuration for PostgreSQL. - Efficiently manage database connections to avoid bottlenecks.
- Keep PostgreSQL and Kubernetes versions updated to the latest stable releases for security, issue fixes, and performance enhancements.
pgvector
The following recommendations are for the pgvector extension:
- Ensure that indexes are added after ingestion to minimize overhead and improve efficiency.
- Select the appropriate index type:
- Use HNSW indexing for high recall and low latency in real-time or accuracy-sensitive workloads.
- Use IVFFlat indexing for scenarios involving frequent data updates, rapid index creation, and tolerance for approximate search results.
- Tune index parameters for performance:
- IVFFlat
- lists(number of clusters) default: 100. The recommended value is the square root of the total number of vectors for larger vector dimensions. Higher lists values increase the granularity of the search, which improves recall but also increases index size and optimize duration
- probes (how many clusters to search) default: 1. Higher probes increase recall at the cost of increased search time.
- HNSW
m(number of the number of neighbors in the core graph) default: 16. Higher m increases the number of neighbors each element has, which improves recall at the cost of a larger index size and optimize duration.ef_construction(how many candidate neighbors are considered when adding a new node) default: 64. Higher ef_construction values improve the quality of the index consequently, better recall, but at the cost of increased optimize duration and memory usage.ef_search(size of the dynamic candidate search list) default: 40. Higher ef_search increases recall at the cost of increased search time.
- IVFFlat
- Tune Parameters such as
maintenance_work_mem,max_parallel_workers, andmax_parallel_maintenance_workersaccording to available resources to optimize indexing performance.
Conclusion
Conclusion
This paper describes the deployment of PostgreSQL and its pgvector extension on Kubernetes, with Dell PowerFlex software-defined infrastructure. The performance test results show strong transactional performance alongside rapid vector search and indexing capabilities, meeting both traditional and AI‑driven requirements. The evaluation includes both HNSW and IVFFLAT indexing methods, with HNSW delivering low‑latency, high‑QPS approximate nearest‑neighbor search, while IVFFLAT enables rapid index construction and efficient handling of frequent data updates with controlled approximation. PowerFlex flexible architecture ensures high performance, low latency, and scalability for advanced PostgreSQL and pgvector database workloads. For additional information, contact your Dell representative.
References
References
Dell Technologies documentation
The following Dell Technologies documentation provides additional relevant information. Access to these documents depends on your login credentials. If you do not have access to a document, contact your Dell Technologies representative.
PostgreSQL documentation
The following PostgreSQL documentation provides additional information:
pgvector documentation
The following pgvector documentation provides additional information:
Appendix A - Test Configuration Details
Appendix A - Test Configuration Details
PowerFlex compute-only nodes
The following table shows the configuration details of the PowerFlex compute-only nodes:
| Hardware | Configuration |
| Server model | PowerFlex R660 |
| CPU | 2* Intel(R) Xeon(R) Gold 6454S 32 Core Processor |
| Memory | 512GB (16 * 32GB DDR5) |
| NIC |
Card rNDC - 1 x NVIDIA ConnectX-6 Lx 2x 25G SFP28 OCP3.0 SFF Card PCIe - 1 x NVIDIA ConnectX-6 Lx 2x 25G SFP28 |
| Storage | BOSS-N1: 2* 960GB NVMe |
| Software | Configuration |
| Operating system | RHEL 9.5 |
| PowerFlex SDC | 4.5.4 |
| PowerFlex CSI driver | 2.14.0 |
| Kubernetes | 1.32 |
| PostgreSQL | 17.6 |
| pgvector | 0.8.1 |
PowerFlex storage-only nodes
The following table shows the configuration details of the PowerFlex storage-only nodes:
| Hardware | Configuration |
| Server model | PowerFlex R660 |
| CPU | 2* Intel(R) Xeon(R) Gold 6454S 32 Core Processor |
| Memory | 512GB (16 * 32GB DDR5) |
| NIC |
Card rNDC - 1 x NVIDIA ConnectX-6 Lx 2x 25G SFP28 OCP3.0 SFF Card PCIe - 1 x NVIDIA ConnectX-6 Lx 2x 25G SFP28 |
| Storage | 10 x 1.78 TB SSD PCIe |
| Software | Configuration |
| Operating system | SLES 15 SP5 |
| PowerFlex SDS | 4.5.4 |
| PowerFlex Manager | 4.6.2 |
Benchmarking tools
The following table shows the versions of the benchmarking tools used:
| Benchmarking tools | Version |
| pgbench | 17.6 |
| VectorDBBench | 1.0.11 |
Appendix B - YAML Definition Files
Appendix B - YAML Definition Files
postgres-config.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: postgres-config
labels:
app: postgres
data:
POSTGRES_DB: postgresdb
POSTGRES_USER: admin
POSTGRES_PASSWORD: -------
PGDATA: /var/lib/postgresql/data/pgdata
postgres-service.yaml
apiVersion: v1
kind: Service
metadata:
name: postgres-0
spec:
selector:
statefulset.kubernetes.io/pod-name: postgres-0
ports:
- port: 5432
targetPort: 5432
nodePort: 30010 # Choose a unique port
type: NodePort
postgres-statefulset.yaml
The following sample YAML file specifies the StatefulSet configuration for the PostgreSQL deployment:
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: postgres
namespace: postgresql
spec:
replicas: 1
selector:
matchLabels:
app: postgres
serviceName: postgres
template:
metadata:
labels:
app: postgres
spec:
securityContext:
runAsUser: 999
runAsGroup: 999
fsGroup: 999
initContainers:
- name: init-wal
image: busybox
securityContext:
runAsUser: 0
command:
- sh
- -c
- |
mkdir -p /pgwal && \
chmod 700 /pgwal && \
chown -R 999:999 /pgwal
volumeMounts:
- mountPath: /pgwal
name: wal
containers:
- name: postgres
image: postgres:17.6
args:
- -c
- shared_buffers=25GB
- -c
- effective_cache_size=75GB
- -c
- work_mem=64MB
- -c
- maintenance_work_mem=2GB
- -c
- min_wal_size=2GB
- -c
- max_wal_size=4GB
- -c
- checkpoint_completion_target=0.9
- -c
- wal_buffers=-1
- -c
- listen_addresses=*
- -c
- max_connections=1000
- -c
- random_page_cost=1.1
- -c
- effective_io_concurrency=300
- -c
- max_worker_processes=32
- -c
- max_parallel_workers_per_gather=8
- -c
- max_parallel_workers=32
env:
- name: PGDATA
value: /var/lib/postgresql/data/pgdata
- name: POSTGRES_INITDB_ARGS
value: -X /pgwal
envFrom:
- configMapRef:
name: postgres-config
ports:
- containerPort: 5432
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: data
- mountPath: /pgwal
name: wal
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 800Gi
storageClassName: vxflexos-xfs
volumeMode: Filesystem
- metadata:
name: wal
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 200Gi
storageClassName: vxflexos-xfs
volumeMode: Filesystem
pg-init-script.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: pg-init-script
namespace: pgvector
data:
init.sql: |
CREATE EXTENSION IF NOT EXISTS vector;
CREATE TABLE IF NOT EXISTS vectors (
id BIGINT PRIMARY KEY,
embedding vector(1536)
);
pg-secret.yaml
apiVersion: v1
kind: Secret
metadata:
name: pg-secret
namespace: pgvector
type: Opaque
data:
POSTGRES_USER: YWRtaW4=
POSTGRES_PASSWORD: -------
POSTGRES_DB: dmVjdG9yZGI=
pg-service.yaml
apiVersion: v1
kind: Service
metadata:
name: postgres-pgvector-0
spec:
selector:
statefulset.kubernetes.io/pod-name: postgres-0
ports:
- port: 5432
targetPort: 5432
nodePort: 30010 # Choose a unique port
type: NodePort
pg-statefulset.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: postgres-pgvector
namespace: pgvector
spec:
serviceName: "postgres-pgvector"
replicas: 1
podManagementPolicy: Parallel
selector:
matchLabels:
app: postgres-pgvector
template:
metadata:
labels:
app: postgres-pgvector
spec:
securityContext:
runAsUser: 999
runAsGroup: 999
fsGroup: 999
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- postgres-pgvector
topologyKey: "kubernetes.io/hostname"
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "kubernetes.io/hostname"
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: postgres-pgvector
initContainers:
- name: init-wal
image: busybox
securityContext:
runAsUser: 0
command:
- sh
- -c
- |
mkdir -p /pgwal && \
chmod 700 /pgwal && \
chown -R 999:999 /pgwal
volumeMounts:
- mountPath: /pgwal
name: wal
containers:
- name: postgres
image: laksh7894/postgres-pgvector:17.6
ports:
- containerPort: 5432
env:
- name: PGDATA
value: /var/lib/postgresql/data/pgdata
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: pg-secret
key: POSTGRES_USER
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: pg-secret
key: POSTGRES_PASSWORD
- name: POSTGRES_DB
valueFrom:
secretKeyRef:
name: pg-secret
key: POSTGRES_DB
- name: POSTGRES_INITDB_ARGS
value: -X /pgwal
args:
- -c
- shared_buffers=64GB
- -c
- effective_cache_size=150GB
- -c
- work_mem=256MB
- -c
- maintenance_work_mem=24GB
- -c
- min_wal_size=2GB
- -c
- max_wal_size=4GB
- -c
- checkpoint_completion_target=0.9
- -c
- wal_buffers=-1
- -c
- listen_addresses=*
- -c
- max_connections=1000
- -c
- random_page_cost=1.1
- -c
- effective_io_concurrency=300
- -c
- max_worker_processes=32
- -c
- max_parallel_workers_per_gather=8
- -c
- max_parallel_workers=32
- -c
- max_parallel_maintenance_workers=12
volumeMounts:
- name: data
mountPath: /var/lib/postgresql/data
- name: wal
mountPath: /pgwal
- name: init-script
mountPath: /docker-entrypoint-initdb.d/init.sql
subPath: init.sql
resources:
requests:
cpu: "60"
memory: "240Gi"
limits:
cpu: "128"
memory: "512Gi"
volumes:
- name: init-script
configMap:
name: pg-init-script
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1200Gi
storageClassName: vxflexos-xfs
volumeMode: Filesystem
- metadata:
name: wal
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 100Gi
storageClassName: vxflexos-xfs
volumeMode: Filesystem