I'm connecting remotely to a MongoDB standalone instance and in my python script am creating/ensuring indexes in the background before doing a
The collection is 90+Million documents and the index creation (if not existing before) takes 20-30 minutes, which is not the issue.
I keep track of it on the
mongod.log remotely and after each successful build, the script hangs on the local side whereas the server errors with
Error sending response to client: SocketException: Connection timed out. Ending connection from <SERVER IP>
Outside of increasing the connection timeouts to 30-60min, is there any way to ensure I keep the connection to mongo without it stalling my script?
OS: Windows Server 2012 R2
OS: Ubuntu 18.04 LTS