From 374ecba38c49ebd0505e84e4d942c85ad4162986 Mon Sep 17 00:00:00 2001 From: adeelehsan Date: Tue, 4 Feb 2020 16:56:55 +0500 Subject: [PATCH] Mongo socket timeout increased prod-1188 --- cms/envs/common.py | 2 +- lms/envs/common.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cms/envs/common.py b/cms/envs/common.py index 01e3f891fb..3bdf63230b 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -697,7 +697,7 @@ DOC_STORE_CONFIG = { # https://api.mongodb.com/python/2.9.1/api/pymongo/mongo_client.html#module-pymongo.mongo_client # default is never timeout while the connection is open, #this means it needs to explicitly close raising pymongo.errors.NetworkTimeout - 'socketTimeoutMS': 3000, + 'socketTimeoutMS': 6000, 'connectTimeoutMS': 2000, # default is 20000, I believe raises pymongo.errors.ConnectionFailure # Not setting waitQueueTimeoutMS and waitQueueMultiple since pymongo defaults to nobody being allowed to wait 'auth_source': None, diff --git a/lms/envs/common.py b/lms/envs/common.py index 53d010b9fa..6efea2ac06 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -971,7 +971,7 @@ DOC_STORE_CONFIG = { # https://api.mongodb.com/python/2.9.1/api/pymongo/mongo_client.html#module-pymongo.mongo_client # default is never timeout while the connection is open, #this means it needs to explicitly close raising pymongo.errors.NetworkTimeout - 'socketTimeoutMS': 3000, + 'socketTimeoutMS': 6000, 'connectTimeoutMS': 2000, # default is 20000, I believe raises pymongo.errors.ConnectionFailure # Not setting waitQueueTimeoutMS and waitQueueMultiple since pymongo defaults to nobody being allowed to wait 'auth_source': None,