Selected writing
-
How Disk Bottlenecks Limit High-Concurrency Systems
CPU-driven horizontal scaling is a mature and common capacity-management mechanism for online SaaS systems, with native support in Kubernetes HPA and autoscaling services from AWS…
-
Database Engine Optimization Series — Part 1: Memory Optimization of Data Structures
In database engines, designing the memory layout for complex data structures presents significantly more challenges than for primitive data types. This complexity stems mainly fro…
-
Case Study: Resolving Complex Memory Corruption in Milvus Kernel using ASan
I highly recommend that my Zilliz teammates use AddressSanitizer when writing unit tests for Milvus kernel components, as memory operations in high-performance database engines ca…
-
Milvus Storage-Compute Separation Series-2: Target Mechanism
No matter the framework of system is storage-compute separation or integrated storage-compute, clients’ requirements for query correctness are consistent. No customers are willing…
-
Database Execution Engines: From Plans to Pipelines
Most computer systems can be viewed as a separation of computation and control, I/O, and storage. In a database kernel, those responsibilities map roughly to the execution engine,…
-
Database Kernel Optimization, Part 2: Optimizing CPU Usage
CPU utilization is an interval measurement rather than a fixed-capacity number like memory. If process X runs on one core for 200 ms during a one-second interval, it used 20% of t…
-
Debugging a C++ Database Kernel with GDB Alone
IDEs are often enough for debugging Python, Java, or Go. C++ database kernels are different: their debug toolchains can be elaborate, and an IDE must also parse GDB state into its…
-
The Stack Was in C++. The Fix Was in the Query.
When a database query slows down, the engine is an easy suspect. This Milvus case shows how the way an application asks a question can change the work the database performs.
-
Milvus Storage–Compute Separation, Part 4: The Pain of Deletes
For most databases, deletes are more expensive and harder to implement than inserts for two reasons.
-
VelarixDB: A Novel Database Tackling the Challenge of IO Amplification
Almost all databases are uvicorn, having at least or at most one special unique competitive edge, which is named the ‘branding edge’. In the modern corporation service market, whi…
-
Data Balance for database
For a distributed data system, the word “balance” has two meanings: first, data balance, which refers to the relatively balanced physical distribution of data among different stor…
-
Online Problem Troubleshooting — Series 1: Freq Rpc && IO && Global Lock
This article documents a critical performance diagnostic process involving the Milvus DataCoord engine. The case originated from a massive production outage encountered by Salesfo…
-
Milvus Storage-Compute Separation Series-1: Introduction to Milvus Architecture
Storage-compute separation is a hot topic, with virtually every database claiming to have implemented or planning to implement a storage-compute separation architecture. However, …
-
Milvus Storage-Compute Separation Series-3: Storage-Compute Dual Writing
Continuing from the previous article, let’s return to the issue of real-time visibility of data. The target mechanism in Milvus actually only solves part of the problem, namely ma…
Reading paths
Topics- Performance & memory5 articles
- Storage & coordination7 articles
- Production debugging2 articles