Skip to content

Configure renderd request queue limits - #498

Open
Komzpa wants to merge 2 commits into
openstreetmap:masterfrom
Komzpa:codex/configurable-renderd-queue-limits
Open

Komzpa wants to merge 2 commits into
openstreetmap:masterfrom
Komzpa:codex/configurable-renderd-queue-limits

Conversation

@Komzpa

@Komzpa Komzpa commented May 3, 2026

Copy link
Copy Markdown

Summary

This replaces the old hard-coded dirty queue limit approach from #152 with configurable renderd.conf queue limits.

  • add request_queue_limit and dirty_queue_limit options to the [renderd] section
  • preserve the previous compiled-in defaults for metatile and non-metatile builds
  • size the queue de-duplication index from configured queue capacity
  • document queue behavior in the manpage and add an operator tuning/service manual

Context

The old PR tried to make the dirty queue much larger globally. The review thread pointed out that this is deployment-specific, can make stale background work accumulate, and does not solve queue fairness. This version keeps the default behavior unchanged and lets operators opt into larger queues with rollout guidance.

Testing

cmake --build build --target gen_tile_test render_list renderd_config_test renderd_config_test_helper -j2
ctest --test-dir build -R '^(gen_tile_test|renderd_config_test)$' --output-on-failure

Both targeted tests pass locally.

@Komzpa
Komzpa force-pushed the codex/configurable-renderd-queue-limits branch from 28acc43 to e5b2b73 Compare May 14, 2026 05:55
@codecov-commenter

codecov-commenter commented May 17, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.02326% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.47%. Comparing base (c4e3e62) to head (c6a11c6).
⚠️ Report is 103 commits behind head on master.

Files with missing lines Patch % Lines
src/request_queue.c 92.57% 15 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #498      +/-   ##
==========================================
+ Coverage   81.54%   89.47%   +7.93%     
==========================================
  Files          24       24              
  Lines        5645     5692      +47     
==========================================
+ Hits         4603     5093     +490     
+ Misses       1042      599     -443     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Komzpa
Komzpa force-pushed the codex/configurable-renderd-queue-limits branch from 1650afb to dbff268 Compare October 16, 2026 14:17
… pending queue

Port of the PR commits (queue limit config, priority queue, hash avalanche,
tests) onto the current upstream structure and style.
@Komzpa
Komzpa force-pushed the codex/configurable-renderd-queue-limits branch from dbff268 to c6a11c6 Compare November 22, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants