No server chosen by WritableServerSelector

Hi @Aasawari, thank you very much for response. :slight_smile:

  1. Unfortunately I can’t see any pattern. What would you recommend looking at besides the logs?

  2. Yes

  3. Yes, ~ 1,2 sec

14:24:47.543 INFO org.mongodb.driver.cluster          : Exception in monitor thread while connecting to server
14:26:00.244 INFO org.mongodb.driver.cluster          : Monitor thread successfully connected to server 
  1. It can be hard for unsuccessful. Usually I’m finding errors in logs and not while they occurs. I’ll add output for successful rs.status()

  2. Thanks! It definitely helps with electing new primary (and faster connection recovery). Unfortunately don’t solve problem with losing connections.

Since MongoDB version 4.2.6 is an old version, please upgrade to the latest in 4.2 series which is currently 4.2.23 to ensure you’re not seeing a fixed issue

Thanks, will do :slight_smile: