https://danbooru.donmai.us/forum_topics/9127?page=283#forum_post_160508 There was a recent outage that was caused by the read replica (yukinoshita.donmai.us) being temporarily unavailable. The pg driver in rails got hardstuck trying to connect to the replica, which brought down the whole site. The app servers stopped responding and could only be brought down with SIGKILL. Even try to boot the rails console didn't work. We only really used this to calculate tag counts inside Post.fast_count, which wasn't really beneficial since the read replica is slower than the main database.
46 lines
1.1 KiB
Plaintext
Executable File
46 lines
1.1 KiB
Plaintext
Executable File
# SQLite version 3.x
|
|
# gem install sqlite3-ruby (not necessary on OS X Leopard)
|
|
development:
|
|
adapter: postgresql
|
|
database: danbooru2
|
|
pool: 5
|
|
timeout: 5000
|
|
url: <%= ENV['DATABASE_URL'] %>
|
|
|
|
# Warning: The database defined as "test" will be erased and
|
|
# re-generated from your development database when you run "rake".
|
|
# Do not set this db to the same as development or production.
|
|
test:
|
|
adapter: postgresql
|
|
database: danbooru2_test
|
|
pool: 5
|
|
timeout: 5000
|
|
url: <%= ENV['DATABASE_URL'] %>
|
|
|
|
production:
|
|
adapter: postgresql
|
|
database: danbooru2
|
|
pool: 5
|
|
timeout: 5000
|
|
url: <%= ENV['DATABASE_URL'] %>
|
|
|
|
archive_development:
|
|
adapter: postgresql
|
|
database: archive_development
|
|
url: <%= ENV['ARCHIVE_DATABASE_URL'] %>
|
|
|
|
archive_test:
|
|
adapter: postgresql
|
|
database: archive_test
|
|
url: <%= ENV['ARCHIVE_DATABASE_URL'] %>
|
|
|
|
archive_production:
|
|
adapter: postgresql
|
|
database: archive_development
|
|
url: <%= ENV['ARCHIVE_DATABASE_URL'] %>
|
|
|
|
archive_staging:
|
|
adapter: postgresql
|
|
database: archive_development
|
|
url: <%= ENV['ARCHIVE_DATABASE_URL'] %>
|