Cloud Computing 11 min read

Optimizing OpenStack Swift for Small Object Storage in Video Streaming

iQiyi improved OpenStack Swift’s video‑streaming performance by redesigning its storage engine to merge numerous tiny objects into larger files, replacing Swift’s per‑object directory structure with RocksDB‑managed metadata, eliminating file‑ID overhead, using prefix scans for fast listings, and adding lazy deletion, achieving dramatic speedups with only about 3,000 lines of new code.

iQIYI Technical Product Team
iQIYI Technical Product Team
iQIYI Technical Product Team
Optimizing OpenStack Swift for Small Object Storage in Video Streaming

This article discusses how iQiyi addressed performance degradation in OpenStack Swift caused by excessive small object storage. The core issue stems from Swift's file system architecture, where each object creates multiple directories and files, leading to high I/O overhead. The solution involves redesigning the storage engine to merge small objects into larger files while leveraging RocksDB for metadata management. Key optimizations include eliminating file ID mechanisms, using prefix scans for efficient object listing, and implementing lazy deletion for immediate space recovery. Benchmark results show significant performance improvements over the original Swift implementation.

The approach maintains Swift's decentralized architecture while addressing scalability challenges. The implementation achieved high performance with minimal code changes (around 3000 lines), demonstrating the effectiveness of targeted architectural improvements. Future work includes enhancing object expiration mechanisms and integrating Go-based components for further optimization.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Performance Optimizationcloud computingRocksDBobject storageOpenStackSmall Object Optimization
iQIYI Technical Product Team
Written by

iQIYI Technical Product Team

The technical product team of iQIYI

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.