Saving another 100TB of RAM with math (and Rust)
Cloudflare engineers used math and Rust to save 100TB of RAM on their servers.
Overview
Cloudflare engineers discovered that a specific load-balancing service was using significantly more memory than expected. The issue was traced to a library called pingora-ketama, which handles consistent hashing to distribute tasks across serversA computer or program on a network that stores data and responds to requests from client devices. Consistent hashing allows systems to route requests to the correct server without major changes when servers are added or removed. By making small changes to this algorithmA step-by-step procedure or mathematical recipe a computer follows to solve a problem or process data, the team reduced the memory footprint of the service. This optimization allowed Cloudflare to reclaim more than 100TB of RAM globally. This memory savings helps maintain equitable resource sharing between different teams within the organization.
Terms in this story
- hash
- A short, fixed-length fingerprint of data, made by a hash algorithm with no key. Security reports list file hashes so defenders can check whether a suspicious program on their network matches known malware, and servers store password hashes instead of plain passwords. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 2); Security+ objective 1.4 lists the term
- servers
- A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
- algorithm
- A step-by-step procedure or mathematical recipe a computer follows to solve a problem or process data. In cybersecurity news, an algorithm usually refers either to a cryptographic cipher and hashing method or to the scoring rules an AI system uses.
- DNS
- The internet directory service that translates human-readable domain names into numerical IP addresses. Whenever you type a web address into a browser, DNS looks up the server's IP address, and attackers who hijack DNS settings can silently steer visitors to a fake server. Security+ objective 2.4 lists the term
- open-source
- Software whose source code is publicly available for anyone to inspect, use, modify, and share. Most websites and apps rely on hundreds of open-source code libraries, so a single security flaw or malicious update in a popular library can affect thousands of companies at once.
- URL
- The full web address used to locate a specific page, file, or resource on the internet. Security filters inspect every URL in an incoming message to see whether the domain name is a newly registered lookalike or points to a known credential-harvesting server. Security+ objective 4.5 lists the term
- data center
- A facility built to house thousands of servers, storage drives, and network switches with backup power and cooling. Cloud providers and large enterprises run their services inside data centers, where physical security, power redundancy, and high-speed network links keep online systems running.
- key
- The secret value that locks or opens a message. Many breach and ransomware stories come down to who holds the cryptographic key, since strong encryption protects data only as long as the key stays secret. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- hash functions
- The fixed set of steps that makes a hash. Every digital signature, password database, and malware fingerprint relies on a hash algorithm to turn an input of any size into a short, predictable digest. From the CYBR 101 room CYBR 101: What is a hash?
- bit
- 1 binary digit, a 1 or a 0 (a switch that is on or off). Every file, network packet, and cryptographic key in a computer is stored as a long sequence of bits, and key strength is measured by how many bits the key contains. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the Cloudflare website. Cite the article, not this page.
Read the full article on Cloudflare (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Research and reports
"...small changes to a single algorithm reduced the memory footprint..." Found by reading the article; these exact words are in it - CYBR 101 week 8: networks, ports, DNS and packets
"Cloudflare's global network is immense but not..." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Effectively allocate storage capacity in the design of data management systems.
"...reclaim more than 100TB of RAM globally..." Found by reading the article; these exact words are in it - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Manage system/server resources including performance, capacity, availability, serviceability, and recoverability.
"Maintaining equitable resource sharing between teams is not easy..." Found by reading the article; these exact words are in it
How a story is connected to the course, and every objective, week and job role