Skip to content

Conversation

neonknight
Copy link
Contributor

No description provided.

@jahlives
Copy link

jahlives commented May 4, 2018

Can confirm that this PR works on current pdns-server branch (4.1.x). If no -W redis is specified only read access is performed, resulting in a much faster response time from pdns.

The cost is that no statistics are written. Could be an idea to separate the statistics writing into an own thread in an upcoming release. So writing stats would not slow down returning query results.

@BjarniRunar
Copy link
Collaborator

Thanks for this. I'm sorry I am slow to merge - I can't decide whether I disagree with the change or not.

Not sending these writes to the "write backend" was a deliberate choice on my part, to save traffic to the master DB for secondary "stats" that don't need to be synchronized and accurate. I'd rather remove the stats entirely, than force them to all go back to the master.

If recent versions of redis don't allow writes to the slaves, that may be the only way forward here.

@neonknight
Copy link
Contributor Author

It is not possible to write to Redis slaves in current version. I even have my doubts this will ever change. Therefore it may indeed be the optimal solution to completely omit writing statistics when reading from a slave.

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.

3 participants