Created
January 25, 2017 02:08
-
-
Save exviva/d22b83513a3700794ccb86e6ddb083fc to your computer and use it in GitHub Desktop.
Shameless initializer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/initializers/rate_store.rb | |
RateStore = Shameless::Store.new(:rate_store) do |c| | |
c.partition_urls = [ | |
ENV['RATE_STORE_DATABASE_URL_0'], | |
ENV['RATE_STORE_DATABASE_URL_1'] | |
] | |
# total number of shards across all partitions | |
c.shards_count = 512 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment