Sha256: af905b3181dbbc5e33f84b739787776dbbc00661a9b743ef883fbf3d3fe794a0
Contents?: true
Size: 1.99 KB
Versions: 28
Compression:
Stored size: 1.99 KB
Contents
# The master database is the database settend in config/database.yml # This supports both sharding and replication, you could select the shards, and for default just replicated # database will be used, the master database is in database.yml and the slave will only be awesome_slave. # Setting Load balancing for default will be true, octopus will send all your read queries to slaves, and writes queries to # master. if you just want some queries to send to slaves, set it to false, and use the sintax User.using(:slave). production: replicated: true shards: awesome_slave: adapter: mysql username: user password: pass database: awesome_slave host: 192.321.321.21 not_slave: adapter: mysql username: user password: pass database: awesome_slave host: 192.321.321.18 # This is another example, not replicated. production: shards: us: adapter: mysql username: user password: pass database: shard1 host: 192.321.321.19 canada: adapter: mysql username: user password: pass database: shard1 host: 192.321.321.17 brazil: adapter: mysql username: user password: pass database: shard1 host: 192.321.321.90 # This is a example using a group of shards: production: shards: history_shards: aug2009: adapter: mysql username: user password: pass database: aug2009 host: 192.321.321.21 oct2009: adapter: mysql username: user password: pass database: oct2009 host: 192.321.321.18 country_shards: brazil: adapter: mysql username: user password: pass database: brazil host: 192.321.321.21 slave: true canada: adapter: mysql username: user password: pass database: canada host: 192.321.321.18
Version data entries
28 entries across 28 versions & 1 rubygems