CARVIEW |
Navigation Menu
-
-
Notifications
You must be signed in to change notification settings - Fork 397
Redis read-only replica support #1019
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hi @gthess, does this imply this workaround for dockerized Unbound ain't necessary anymore then? |
Hi @madnuttah, I am not sure what the workaround is in that link but I see no relation with this feature. This feature adds support for Unbound to issue all read commands to a Redis replica server, offloading most of the of the work from the main Redis server which will only be issued write commands. |
Thanks for making it clear! |
There was some time investment to bring this up to speed with recent changes so I think it is time to merge to avoid the same time investment in the future. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks okay! Nice to have a unit test for redis.
Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
Thanks for the review and catching the context bug! |
- Merge #1019: Redis read-only replica support. Introduces new 'redis-replica-*' options for the Redis cache backend.
* nlnet/master: (49 commits) - Tag for 1.23.0rc2. This became the release of 1.23.0 on 24 April 2025. The code repository continues with 1.23.1 in development. - Increase default to `num-queries-per-thread: 2048`, when unbound is compiled with libevent. It makes saturation of the task queue more resource intensive and less practical. Thanks to Shiming Liu, Network and Information Security Lab, Tsinghua University for the report. Changelog entry for NLnetLabs#1265: - Merge NLnetLabs#1265: Fix WSAPoll. Fix WSAPoll (NLnetLabs#1265) Changelog entry for NLnetLabs#1265: - Merge NLnetLabs#1265: Fix WSAPoll. Fix WSAPoll (NLnetLabs#1265) - Fix for print of connection type in log-replies for dot and doh. - Fix NLnetLabs#1264: unbound 1.22.0 leaks memory when doing DoH. - Fix to detect if atomic_store links in configure. - Fix fast_reload to print chroot with config file name. - Update to the manpage for the fast_reload part. - Tag for 1.23.0rc1. - More explicit text about memory usage during fast_reload. Changelog entry for NLnetLabs#902: - Merge NLnetLabs#902: DNS Error Reporting (RFC 9567). Introduces new configuration option 'dns-error-reporting' and new statistics for 'num.dns_error_reports'. DNS Error Reporting (RFC 9567) (NLnetLabs#902) - Fix to update common.sh for speed of kill_pid. - Fix test to speed up common.sh script kill_pid. Fix typo in Changelog entry. Changelog entry for NLnetLabs#1019: - Merge NLnetLabs#1019: Redis read-only replica support. Introduces new 'redis-replica-*' options for the Redis cache backend. - Fix redis_replicat test for unused option defaults and log printout. ...
This PR introduces a Redis replica server next to an Redis server that is assumed to be in read-only mode.
If configured, Redis read commands will go there while write commands will go to the non-replica server.
All connectivity options are duplicated for the replica server.
Redis tests are not yet implemented.