Commit Graph

27 Commits (2bea74e69d43f15aff646de5948cfbb4b9296145)

Author SHA1 Message Date
Jaehong Kang c73d5a6075
Using Sidekiq concurrency for default db pool value ()
Claire 2c204d904b
Change `DB_REPLICA_*` environment variables to `REPLICA_DB_*` ()
Claire 3105fef21a
Rename “read” database to “replica” for consistency ()
Eugen Rochko 26e522ac55
Fix not actually connecting to the configured replica ()
Kurtis Rainbolt-Greene e4cfe4b3db
First pass at multi-database for read replica using Rails native adapter ()
Co-authored-by: emilweth <7402764+emilweth@users.noreply.github.com>
Eugen Rochko dfa9843ac8
Fix pgBouncer resetting application name on every transaction ()
Claire 3d40282f1b
Change postgres connection timeout ()
Yamagishi Kazutoshi 584d8b977b
Format JSON and YAML using Prettier ()
* Format JSON and YAML using Prettier

* Add prettier to devDep
sasanquaneuf 21e80a9792
Escape database passwords in config/database.yml ()
* Add double quotes for using passwords that start with a comma

* Escape database password in yml
Sascha 42e733681a config: add DB_SSLMODE for managed/remote PG ()
* config: add DB_SSLMODE for managed/remote PG

* streaming: set PG sslmode, defaults to prefer
Eugen Rochko 32d7d61703
Remove PostgreSQL statement timeout ()
Revert 
Eugen Rochko 58a29db99d
Add database statement timeout of 60s ()
masarakki 0e0c6b1b4b use-DB_NAME-in-development ()
amazedkoumei 436ce03772 fix unnecessary variable ()
amazedkoumei 87efa38721 more free pgconfig by .env ()
* more free pgconfig for streaming by .env

* fix wrong default values

* database.yml read ENV as same as streaming server
Keiji Matsuzaki 90c00f075a Added support parallel_tests ()
- Added new gem the `parallel_tests`.
- Updated .travis.yml.
  - Improved scripts and environment variable.
Eugen d5a675099a Add env variable to disable prepared statements ()
Eugen 4292cf60ae Fix env variable name
Eugen Rochko e7723ab662 Add puma preloading, decrease DB pool size to size of threads per worker
Eugen Rochko 6426819b6f Fix tests
Eugen Rochko 5764d52b04 Fix Sidekiq pooling issues. Remove API docs from homepage, replace with
a basic home timeline
Eugen Rochko bb98ee489d Up the number of pooled DB connections to cover both Sidekiq and Puma workers
Eugen Rochko 36f3da3cde Adjust down the number of Sidekiq threads to 5 (default of 25 is way too high)
Eugen Rochko e24bfbde1a Fixing FanOutOnWriteService, fixing Sidekiq not having enough DB connections
in the pool, adding a throttle of 60rpm per IP, adding mini profiler, adding
admin status to users
Eugen Rochko 48d66a2055 Fixing the docker container setup (with assets compilation &co)
Eugen Rochko b17202ca0f Adding a docker-compose template for running Mastodon easily
Eugen Rochko 9c4856bdb1 Initial commit