Skip to content
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

Just query requires write access to redis #4

Open
jahlives opened this issue Dec 9, 2017 · 1 comment
Open

Just query requires write access to redis #4

jahlives opened this issue Dec 9, 2017 · 1 comment

Comments

@jahlives
Copy link

jahlives commented Dec 9, 2017

I use pdns_redis.py on my server which runs a redis slave instance. If I just query pdns for a record I get SERVFAIL and in the logs

Dec 9 23:21:18 rbl3 pdns_server: Coprocess: Internal Error: You can't write against a read only slave.
Dec 9 23:21:18 rbl3 pdns_server: [PIPEBackend] coprocess returned a FAIL
Dec 9 23:21:18 rbl3 pdns_server: Backend reported condition which prevented lookup (coprocess returned a FAIL) sending out servfail

I just wonder if its really necessary to write to redis in case of answering a query?
I tried the -R and -W parameters but the error persists. So for me it seems that -W does not have any effect. I pointed it to the master redis but still got the error upon querying.

@pagekite
Copy link
Owner

Fair point. Making this configurable would make sense! I would accept a PR for that.

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

No branches or pull requests

2 participants