Catalogue / hootsuite-2015-session-store-redis

Hootsuite moves user sessions from Memcached and MySQL Galera to multi-zone ElastiCache Redis behind Twemproxy, with no downtime

Hootsuite, 2015. User session storage.

Organisation
Hootsuite
Evidence
Reported from production
Source
Moving Millions of User Sessions from MySQL to Redis

Hootsuite Engineering on Medium, published 2015-07-07

Records

Decision#d1

Store sessions in managed Redis with replicas in several zones instead of Memcached in front of a MySQL Galera cluster

Decision#d2

Have the cloud provider fail the Redis primary on purpose and time the automatic promotion before relying on it

Decision#d3

Migrate the session store by dark launch in three stages, mirroring traffic before moving reads and then writes

Decision#d4

Pool Redis connections through a local Twemproxy on each web server, with its logging turned off

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.