diff --git a/src/SmiServices/Common/MongoDB/MongoClientHelpers.cs b/src/SmiServices/Common/MongoDB/MongoClientHelpers.cs index ee874ad71..7a1f23f41 100644 --- a/src/SmiServices/Common/MongoDB/MongoClientHelpers.cs +++ b/src/SmiServices/Common/MongoDB/MongoClientHelpers.cs @@ -47,7 +47,8 @@ private static MongoClient CreateMongoClient(MongoDbOptions options, string appl ApplicationName = applicationName, Servers = new List([new MongoServerAddress(options.HostName, options.Port)]), WriteConcern = new WriteConcern(journal: !skipJournal), - DirectConnection = true + DirectConnection = true, + HeartbeatInterval = TimeSpan.FromSeconds(10) }; if (skipAuthentication || options.UserName == string.Empty)