Read Preference
You can configure the read preference that the MongoDB origin uses.
The read preference determines how the origin reads data from different members of the MongoDB replica set.
You can use the following MongoDB read preferences:
- Primary - Requires reading from the primary member.
- Primary Preferred - Prefers reading from the primary, but allows reads from a secondary member.
- Secondary - Requires reading from a secondary member.
- Secondary Preferred - Prefers reading from a secondary, but allows reads from a primary when necessary.
- Nearest - Reads from the member with the least network latency.