moodlehq / moodle-docker

A docker environment for moodle developers
GNU General Public License v3.0
373 stars 244 forks source link

Add support for running database replicas #217

Open aspark21 opened 2 years ago

aspark21 commented 2 years ago

moodle-ci-runner does this already but I think it would be useful for dev environments to have this to more closely replicate prod. noting this as we just had a piece code make it's way to prod that wasn't using transactions and was affected by the replication delay of reading from a replica just before deciding to write.

Seems worthwhile us providing a merge request for this & might look at #170 properly while we are at it in a couple of weeks