OpenAI has detailed how it scaled its online storage platform, Habitat, to serve more than 1 billion users across 40 geographic regions, including a return to multi-tenant Azure Cosmos DB containers after a circular journey through single-tenancy.
In a technical post published October 23, 2026, engineers Jon Lee, Hrachya Hakobyan and Chaomin Yu said Habitat now stores over 500 petabytes of data. The platform evolved from a simple client library and database into a globally distributed storage system that OpenAI products rely on for fast, reliable data access.
The engineers described three phases in scaling Azure Cosmos DB. Initially, OpenAI used a single default container per account, but logical partition key collisions and noisy neighbors — where one tenant's load disrupted unrelated workloads — caused problems. The team then moved critical use cases to dedicated containers, which improved isolation but created capacity planning burdens. "Product teams would often ship their features to production and forget to pre-scale and we'd sit in SEV rooms on launch day attempting to scale up containers last minute," the engineers wrote.
Working closely with the Azure team, OpenAI engineered fixes including hot key throttling, request tiering for quality of service, and an improved serverless mode that lets every physical partition scale to 10K RU/s. "With these changes, we've been able to shift back to using one shared container which has significantly simplified the need to do any upfront or continued capacity planning for product teams while preserving isolation between workloads," the post said.
OpenAI said its largest Azure Cosmos DB account stores tens of petabytes of data and serves more than 20 million queries per second. "To our knowledge, we are the only company which has deployed Azure Cosmos DB at this scale," the engineers wrote.
The post also recounted two outages in late 2024 — a regional power failure that revealed multi-hour failover times, and a connection stampede during failback — which led to deeper co-engineering between the two teams, including shared dashboards, joint testing and direct paging access.
On performance, OpenAI said a layered read strategy — colocating data, replicating latency-sensitive datasets, integrated caching using change data capture, and a Rust rewrite — reduced global read p50 latency from roughly 120 ms to roughly 10 ms, a 12x improvement.
Looking ahead, OpenAI said it is building a custom in-house exabyte-scale online storage system combining the RocksDB Cloud core from Rockset with Raft-based replication, to handle replication at even larger scale for the next billion users.
Full Article: Rapidly scaling online storage to serve over 1 billion ChatGPT users (Part II)