我有一个 ReactiveMongoRepository ,它的方法是在调用该方法时返回 Flux 它打开一个新连接
Opened connection [connectionId{localValue:118, serverValue:44}]
直到它超过 100 比它抛出
com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=54.37.81.35:58789, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: /54.37.81.35:58789}, caused by {java.net.ConnectException: Connection refused}}]
at com.mongodb.connection.BaseCluster.getDescription(BaseCluster.java:167) ~[mongodb-driver-core-3.6.3.jar:na]
因为没有游泳池可用了。任何想法如何解决或任何建议?
谢谢,