OpenMetadata Benchmarking
Written by Sriharsha Chintalapani , Suresh Srinivas

Written by Sriharsha Chintalapani , Suresh Srinivas
We have received great feedback for our past two releases of OpenMetadata. Many new community members have joined and are enthusiastically contributing significant features to the open-source. The feedback has been very positive on the schemas, APIs, and most importantly, people love the UI.

While companies of all sizes are trying out OpenMetadata, some large companies with lots of data assets had questions about the platform’s scalability to support millions of entities, especially due to the poor scalability that they have experienced with some of the systems they are currently using. Previously we built a metadata system at Uber called uMetadata, which handled the scale of data at Uber comfortably. OpenMetadata has many architectural improvements over the previous system. However, it seemed like a fun idea to benchmark the system for organizations at the extreme end of the scale with millions of data entities even beyond Uber.
With this in mind, we set out to measure the scale and performance of OpenMetadata with default settings, including Mysql 8.0 and ElasticSearch 7.14 with hardware specified below. We took measurements of request latencies at 10,000 entities, 100,000 entities, and 1.8M entities representing a small, medium, and large organization.
Please do visit https://sandbox-labs.open-metadata.org to see how the application responds with 1.8M (1.1M+ table, 550k dashboards, charts, 100k topics)
Hardware
- Node 1 with 64 GB DDR4 RAM, I7–6700 Quad-Core, 2 x 512GB NvMe SSD
- Node 2 with 32 GB DDR4 RAM, I7–6700 quad-core, 1 TB SATA SSD
Installation
- Ubuntu 20.04 running on both nodes
- MySQL 8 running on Node 1
- ElasticSearch 7.14 setup using docker on Node 1
- OpenMetadata from the main branch is installed on Node 2 with Java 11
- Default JVM configs “-Xmx4G -Xms4G -server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent”
Methodology
- We used the python faker library to generate randomized data to ingest 1.1M tables, each with five columns and also each column having three tags
- Similarly, there are 50k+ dashboards generated, each dashboard having ten charts, which equates to 550k total entities and 110k Kafka topics
- In total, there are 1.8M entities and around 4.5M tags
- All of this data is indexed into ElasticSearch to serve our search requests
- Please refer to the configuration if you would like to generate your sample data
- Once you have the above configuration you can run metadata ingest -c examples/workflows/sample_entity.json to ingest data.
- We are using Apache Bench to take the measurements.
- We ran benchmarks at 10K, 100K, and finally at 1.8M entities.
- We measured the request latency and monitored the services for any health check failures while running the benchmarks.
- In total, we ran 100,000 requests for each measurement and set 100 concurrent requests to mimic 100 users simultaneously using the OpenMetadata Server.
- While taking these measurements, we wanted to follow the user behavior as they would they do in their typical use of OpenMetadata and measure not just the API response times but UI response times as well.
- User lands on the homepage where we make calls to get a summary of OpenMetadata across the organization and also the datasets Recently viewed, Owned, and Followed by the user.
- The user goes to the explore page and runs a search to find a dataset they are looking for. Here, we tested the search through UI and captured the latencies that a user might see. Finally, the page loads the search results along with Service, Tier, and Tag aggregations.
- The user clicks a dataset of interest from the search results page and looks at the dataset detail page. Here all the details that belong to a table are displayed, for example, schema, tags, descriptions, owner, etc.
- Once they have a dataset page loaded, their subsequent action can be to update the description. We tested the PUT operations to update a table description.
Loading Home page of OpenMetadata
ab -n 100000 -c 100 https://sandbox-labs.open-metadata.org

Search for a table
ab -n 100000 -c 100 https://sandbox-labs.open-metadata.org/explore/tables/word

Table Detail page
ab -n 100000 -c 100 https://sandbox-labs.open-metadata.org/dataset/yet.writer.word

Table Update description
ab -p table.json -T application/json -n 100000 -c 100 https://sandbox-labs.open-metadata.org/api/v1/tables

Conclusions
As you can see from the above measurements, even at 1.8M entities, the system response times are under 150 ms for any read operations and 300ms for write operations, and OpenMetadata, out of the box, can handle the scaling needs of almost every company.
This benchmark also brought light to a few bugs in how we display the total document counts on the landing page and explore page and ingestion framework improvements:
- https://github.com/open-metadata/OpenMetadata/issues/607
- https://github.com/open-metadata/OpenMetadata/issues/605 If you like what we are doing at OpenMetadata, consider giving the project a Star and join our community at slack. If you are interested in contributing to OpenMetadata, look at the good first issues. If you have any feature requests, please do not hesitate to file a GitHub issue or reach out to us at slack.

Comments
Join the discussionNo comments yet. Be the first to comment.




