8. Obligatory Stats
• 2,000,000 visitors/week
• 80,000 front end requests/minute
• 120 production servers
• 300 deploys a year
• 40ms front end response time
Thursday, February 14, 13
37. Rails Integration
• Modified riak-client gem for Rails 2.3
• Load balancing built in
• Multiple primary and secondary servers
• Custom ActiveSupport::Cache store
Thursday, February 14, 13
38. Rails Integration
module ActiveSupport
module Cache
class RailsStore < Store
def read
end
def write
end
def delete
end
end
end
config.after_initialize do
ActionController::Base.cache_store = Rails.rails_store.fragments
end
Thursday, February 14, 13
42. Alerting
• Compute random string
• PUT value into Riak
• GET value out of Riak
• alert if value_in != value_out
• alert if operation took too long
Thursday, February 14, 13