ankane / distribute_reads

Scale database reads to replicas in Rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about disable_blacklist

DanielStevenLewis opened this issue · comments

Consider an application where there's one primary node and one read replica node, and where the Rails code always uses failover: false when utilizing distribute_reads (so as to avoid overloading the primary).

With this setup, would it be safe to set disable_blacklist to true? (Please see the Makara readme for a description of this setting). Would that setting play nicely with distribute_reads? The thinking behind disabling blacklisting here is to prevent the app from being unable to read data for a period of time after a connection issue occurs.

Hey @DanielStevenLewis, I haven't tried it in production, but the reasoning makes sense and seems like it should work (and test suite passes).

Thank you very much @ankane