On Github jp / nosql-redis-slides
Rails cache has his own server now.
# cat config/initializers/redis.rb $redis = Redis.new host: 'ec2-xxx...', port: 6379, driver: :hiredis $redis_rails_cache = Redis.new host: 'ec2-yyy...', port: 6379, driver: :hiredis
App response time over 3 days.
Response time and throughput over 3 days.
CPU load over 3 days.
Rails cache server CPU is overloaded
The MONITOR command in redis is showing very slow requests, expiring keys with a wildcard.
Stopping using the wildcard expiration, we now increment the namespace of the cached value.
Data will expire 14 days after creation.
Error rate and CPU load around the fix.
The rails cache server after the storm.
The rails cache server after the storm.