Commit f625ce53 authored by Riabokon Stanislav(EPAM)[GCP]'s avatar Riabokon Stanislav(EPAM)[GCP]
Browse files

Added maxIdleTimeMS for Mongo.

parent 6cfade32
......@@ -16,7 +16,7 @@ public class MongoClientHandler {
private static final Logger LOG = LoggerFactory.getLogger(MongoClientHandler.class);
private static final String MONGO_PREFIX = "mongodb://";
private static final String MONGO_OPTIONS = "retryWrites=true&w=majority";
private static final String MONGO_OPTIONS = "retryWrites=true&w=majority&maxIdleTimeMS=10000";
private com.mongodb.client.MongoClient mongoClient = null;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment