I am trying to find out how to configure timeouts for MonogDB compass.
I tried to google, but couldn't get any answers
CodePudding user response:
For MongoDB Compass specifically ...
When you first open and pick your connection:
- Toggle open the
Advanced Connection Options
- Select the
Advanced
Tab - At the bottom there is a dropdown with extra connection options, including timeouts
There you can configure it and it'll add it to your connection string, as documented here:
CodePudding user response:
To configure timeouts for MongoDB Compass, you can use the "Connection Preferences" dialog.
- Try to Open MongoDB Compass and connect to a cluster.
- Click on the "Connect" button in the top right corner of the window.
- In the "Connection Preferences" dialog that appears, click on the "Advanced" tab.
- Under the "Advanced Connection Settings" section, you will see several options for configuring timeouts. You can set the "Connection Timeout (ms)" to specify the maximum amount of time that Compass should wait for a connection to be established. You can also set the "Socket Timeout (ms)" to specify the maximum amount of time that Compass should wait for a response from the server.
- When you have finished configuring the timeouts, click on the "OK" button to save your changes and close the dialog.