Firecracker Rate Limiters Use Token Buckets to Cap VM Network, Disk and Entropy Use
A microVM with unrestricted network or disk throughput can degrade performance for other VMs on the same host, so Firecracker applies rate limits to each emulated device. These limits are implemented with token buckets, configured through a small set of integer parameters that are easy to misread. Limiters can be applied to network receive and transmit, block devices, the entropy device, and the serial console, with bandwidth (bytes) and operations-per-second limits working independently. Each bucket is defined by a size, a refill time that sets the sustained rate, and an optional one-time initial burst. The article illustrates the arithmetic with example configurations, noting that the values should be chosen based on host capacity and the number of VMs sharing it.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in