[PR #2117] [MERGED] Recursor: make nameserver and record cache sizes configurable #2816

Closed
opened 2026-03-16 11:09:48 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hickory-dns/hickory-dns/pull/2117
Author: @marcus0x62
Created: 12/24/2023
Status: Merged
Merged: 1/1/2024
Merged by: @bluejekyll

Base: mainHead: configure_cache_size


📝 Commits (2)

  • e7cc91c Recursor: make nameserver and record cache sizes configurable
  • 1c3136a Formatting issues

📊 Changes

5 files changed (+27 additions, -8 deletions)

View changed files

📝 crates/recursor/src/recursor.rs (+8 -4)
📝 crates/server/src/store/recursor/authority.rs (+2 -2)
📝 crates/server/src/store/recursor/config.rs (+15 -0)
📝 tests/test-data/test_configs/example_recursor.toml (+1 -1)
📝 util/src/bin/recurse.rs (+1 -1)

📄 Description

In addition to being too small for real-world use, the small default cache sizes (100 entries each) are impacting some testing I'm doing. This PR introduces two new (optional) recursor store configuration options: ns_cache_size and record_cache_size, which default to 1024 and 1048576, respectively, if they are not specified in the config file.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hickory-dns/hickory-dns/pull/2117 **Author:** [@marcus0x62](https://github.com/marcus0x62) **Created:** 12/24/2023 **Status:** ✅ Merged **Merged:** 1/1/2024 **Merged by:** [@bluejekyll](https://github.com/bluejekyll) **Base:** `main` ← **Head:** `configure_cache_size` --- ### 📝 Commits (2) - [`e7cc91c`](https://github.com/hickory-dns/hickory-dns/commit/e7cc91cc1fc41d0bd59a939794ac1018aab6fc6b) Recursor: make nameserver and record cache sizes configurable - [`1c3136a`](https://github.com/hickory-dns/hickory-dns/commit/1c3136a01c63f853135315ecca0c4e86089d494f) Formatting issues ### 📊 Changes **5 files changed** (+27 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `crates/recursor/src/recursor.rs` (+8 -4) 📝 `crates/server/src/store/recursor/authority.rs` (+2 -2) 📝 `crates/server/src/store/recursor/config.rs` (+15 -0) 📝 `tests/test-data/test_configs/example_recursor.toml` (+1 -1) 📝 `util/src/bin/recurse.rs` (+1 -1) </details> ### 📄 Description In addition to being too small for real-world use, the small default cache sizes (100 entries each) are impacting some testing I'm doing. This PR introduces two new (optional) recursor store configuration options: ns_cache_size and record_cache_size, which default to 1024 and 1048576, respectively, if they are not specified in the config file. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-16 11:09:48 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#2816
No description provided.