mozilla-services / iprepd

Centralized IP reputation daemon
Mozilla Public License 2.0
60 stars 10 forks source link

make use of read replicas #2

Closed ameihm0912 closed 6 years ago

ameihm0912 commented 6 years ago

Adds support to make use of Redis read replicas for reputation reads. This is intended to be used in in an environment with a single master node (used for reads/writes) that has X number of replica nodes (used by iprepd only for reads). Reads are randomly distributed amongst configured Redis cluster members.

ameihm0912 commented 6 years ago

@milescrabill r?

sciurus commented 6 years ago

Just a drive by comment, but if you're going to use this make sure you understand the scenarios described here and test how your app behaves if you simulate a failure by manually promoting a read replica to be the primary.