mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2026-10-16 18:31:59 -05:00
Only for a few routes, that consumes postgresql CPU Re-implement sequelize connection routing mechanism, to support: * Replica lag monitoring (to not select replicas that are too far behind the primary) * Be opt-in instead of opt-out (primary is used by default, a context must be marked to use replicas) * Handle "read-you-writes" mechanism (ensure that reads after writes see the latest data, using the user ID to track recent writes)