Files
hutool/hutool-db/src/test/resources/config/mongo.setting
2022-03-15 01:14:05 +08:00

21 lines
962 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#每个主机答应的连接数(每个主机的连接池大小),当连接池被用光时,会被阻塞住 默以为10 --int
connectionsPerHost=100
#线程队列数它以connectionsPerHost值相乘的结果就是线程队列最大值。如果连接线程排满了队列就会抛出“Out of semaphores to get db”错误 --int
threadsAllowedToBlockForConnectionMultiplier=10
#被阻塞线程从连接池获取连接的最长等待时间ms --int
maxWaitTime = 120000
#在建立打开套接字连接时的超时时间ms默以为0无穷 --int
connectTimeout=0
#套接字超时时间;该值会被传递给Socket.setSoTimeout(int)。默以为0无穷 --int
socketTimeout=0
#是否打开长连接. defaults to false --boolean
socketKeepAlive=false
#---------------------------------- MongoDB实例连接
[master]
host = localhost:27017
[slave]
host = localhost:27018
#-----------------------------------------------------