Closed thekid closed 1 year ago
This happens when not setting a readPreference
, which then defaults to primary, and only reads from the primary.
Can be fixed by appending e.g. ?readPreference=primaryPreferred
or ?readPreference=secondaryPreferred
to the MONGO_URI environment variable; which would then prefer reading from the primary (or secondary) but would also be OK reading from the respective others; see https://docs.mongodb.com/manual/core/read-preference-mechanics/
Question is if we should supply this as a default value.