Tech ONTAP Blogs
Tech ONTAP Blogs
OpenSearch is a powerful, open-source search and analytics engine, forked from Elasticsearch and Kibana, and is widely used for e-commerce, observability, anomaly detection, and more. While OpenSearch is designed to run on local disks, many enterprises leverage NetApp ONTAP storage solutions—such as AWS FSxN, Azure NetApp Files, Google Cloud NetApp Volumes, and on-premises AFF arrays—for scalable, efficient, and resilient storage.
This guide explains how to architect, deploy, and benchmark OpenSearch clusters using NetApp ONTAP storage (NFS/iSCSI), with configuration details for both VM and Docker-based deployments.
sudo apt update && sudo apt upgrade -y
sudo apt install nfs-common -y
sudo mkdir -p /mnt/nfs/osdata
echo "<nfs_server>:/vol1 /mnt/nfs/osdata nfs defaults 0 0" | sudo tee -a /etc/fstab
sudo mount -a
Edit opensearch.yml:
path.data: /mnt/nfs/osdata
cluster.name: OpenSearch-cluster
node.name: <node_name>
discovery.seed_hosts: ["<node-1-IP>", "<node-2-IP>", "<node-3-IP>"]
cluster.initial_master_nodes: ["<node-1-IP>", "<node-2-IP>", "<node-3-IP>"]
sudo mkdir -p /data/data1
sudo mount -t nfs <nfs_server>:/vol1 /data/data1
docker run -d --network host \
-v /data/data1:/usr/share/opensearch/data \
-e "cluster.name=OpenSearch-cluster" \
-e "node.name=docker1" \
-e "discovery.seed_hosts=<node-1_IP>,<node-2_IP>,<node-3_IP>" \
-e "cluster.initial_master_nodes=<node-1_IP>" \
-e "path.data=/usr/share/opensearch/data" \
opensearchproject/opensearch:latest
docker run -d --network host \
-e "OPENSEARCH_HOSTS=https://<node-1_IP>:9200,https://<node-2_IP>:9200,https://<node-3_IP>:9200" \
-e "OPENSEARCH_SSL_VERIFICATION=none" \
-e "OPENSEARCH_USERNAME=admin" \
-e "OPENSEARCH_PASSWORD=admin" \
opensearchproject/opensearch-dashboards:latest
##**Note: Replace default credentials in production and configure security modules
Install OpenSearch Benchmark:
git clonehttps://github.com/opensearch-project/opensearch-benchmark
cd opensearch-benchmark
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Run Benchmark Tests:
List workloads: opensearch-benchmark list workloads
Execute test (sample mode): opensearch-benchmark execute_test --distribution-version=2.2.1 --workload=geonames --test-mode
Full dataset: opensearch-benchmark execute_test --distribution-version=2.5.0 --workload=nyc_taxis
Custom workload:
opensearch-benchmark create-workload --workload=sjtestlogs --indices=dashboards_sample_data_logs --target-hosts="http://admin:admin@<load-balancer>:9200
opensearch-benchmark execute_test --distribution-version=2.5.0 --workload-path=./workloads/sjtestlogs
Deploying OpenSearch on NetApp ONTAP (FSxN) provides scalable, resilient, and cost-effective storage for search and analytics workloads—whether in the cloud or on-premises. By leveraging shared storage, you gain operational simplicity, high availability, and flexibility to scale as your data grows.
Next Steps: For help with architecture or troubleshooting, reach out to NetApp or us at “ng-netappdataplatform-team@netapp.com” and find more details at our DPT confluence page
Mount NFS Volume (Linux)
sudo apt install nfs-common -y
sudo mkdir -p /mnt/nfs/osdata
sudo mount -t nfs <nfs_server>:/vol1 /mnt/nfs/osdata
OpenSearch Docker Run
docker run -d --network host \
-v /mnt/nfs/osdata:/usr/share/opensearch/data \
-e "cluster.name=OpenSearch-cluster" \
-e "node.name=node1" \
opensearchproject/opensearch:latest
OpenSearch Benchmark Example
opensearch-benchmark execute_test --distribution-version=2.5.0 --workload=nyc_taxis
OpenSearch is a distributed, open-source search and analytics engine, forked from Elasticsearch and Kibana. While designed for local disks, many organizations prefer the scalability and efficiency of NetApp ONTAP storage—available in AWS, Azure, Google Cloud, and on-premises.
OpenSearch on NetApp ONTAP is a robust solution for organizations needing scalable, resilient, and efficient search and analytics infrastructure—whether in the cloud or on-premises.
Why NetApp ONTAP for OpenSearch?