mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-09 08:10:08 +09:00
88acc4e026
Disable wal_autocheckpoint and run PASSIVE checkpoints from one elected writer process. Contenders start in console/rake (initializer), Puma workers (including WEB_CONCURRENCY=auto), and Resque children, with failover, capped error backoff, and tests for lock takeover. Co-authored-by: Thomas Klemm <github@tklemm.eu>
12 lines
203 B
Ruby
12 lines
203 B
Ruby
require File.expand_path("../config/environment", File.dirname(__FILE__))
|
|
|
|
SqliteWalCheckpoint.start
|
|
|
|
Signal.trap :SIGPROF do
|
|
Thread.list.each do |t|
|
|
puts t
|
|
puts t.backtrace
|
|
puts
|
|
end
|
|
end
|