Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

How we saved 100 terabytes of memory by optimizing 1.1.1.1’s DNS cache

Описание и применение

Оптимизация кэша DNS 1.1.1.1 позволила сократить потребление памяти с 100 ТБ до 1 ТБ, улучшив масштабируемость и снизив затраты.

Задача

The 1.1.1.1 DNS cache consumed 100 TB of memory, limiting scalability and increasing operational costs.

Результат

Reduced memory consumption from 100 TB to 1 TB, enabling higher query throughput and lower infrastructure costs.

Рабочий процесс

  • 1. Profileed cache memory usage and identified header/payload overhead.
  • 2. Designed a new record format with 16‑byte header and 4‑byte payload.
  • 3. Implemented the format in the cache codebase and updated serialization logic.
  • 4. Deployed changes to a subset of servers and monitored memory usage.
  • 5. Rolled out to all 1.1.1.1 servers after confirming stability.

Доказательства

We saved 100 terabytes of memory by optimizing 1.1.1.1’s DNS cache

Источник

  • Дата записи: 2026-09-07T00:22:03.477Z