Page MenuHomePhabricator

Make RedisBagOStuff support tag name hashing
Closed, ResolvedPublic


For ReplicatedBagOStuff to be useful (for sessions), the cache sub-objects need to use the same hashing scheme on both DCs. This is easy for the "master" sub-object but the "slave" sub-object requires either:
a) A local twemproxy instance being pointed to. twemproxy supports redis and tag name hashing
b) A small change to getConnection() in RedisBagOStuff such as allowing a (tag => server) map instead of just a server list in the configuration. Hashing would use the tag and pick the corresponding server.

In any case, the tags would be the eqiad hostnames to avoid re-hashing disruption.

Event Timeline

aaron claimed this task.
aaron raised the priority of this task from to Medium.
aaron updated the task description. (Show Details)
aaron added projects: Epic, MediaWiki-Core-Team.
aaron added subscribers: Gilles, GWicke, mark and 7 others.
aaron set Security to None.

Change 202329 had a related patch set uploaded (by Aaron Schulz):
–Make RedisBagOStuff support tag name hashing

Change 202329 merged by jenkins-bot:
Make RedisBagOStuff support tag name hashing