Home > Back-end >  how to configure timeouts for MongoDB compass?
how to configure timeouts for MongoDB compass?

Time:01-07

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: enter image description here

CodePudding user response:

To configure timeouts for MongoDB Compass, you can use the "Connection Preferences" dialog.

  1. Try to Open MongoDB Compass and connect to a cluster.
  2. Click on the "Connect" button in the top right corner of the window.
  3. In the "Connection Preferences" dialog that appears, click on the "Advanced" tab.
  4. 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.
  5. When you have finished configuring the timeouts, click on the "OK" button to save your changes and close the dialog.
  • Related