Closed ShaneHarvey closed 1 year ago
This saves ~70 seconds when starting sharded auth + TLS clusters as seen here: https://spruce.mongodb.com/task/mongo_python_driver_tests_python_version_ubuntu18_test_ssl__platform~ubuntu_18.04_auth_ssl~auth_ssl_python_version~3.11_coverage~coverage_test_latest_sharded_cluster_5e203bea8dd8cfd6d6dd9f238656976194e6c769_23_03_07_18_55_20/tests?execution=0&logtype=all&sortBy=STATUS&sortDir=ASC
First execution was without this change and took 2m 25s to start the cluster. The second execution with this change took 1m 10s.
Starting auth/tls clusters involve server restarts hence the speed up.
I've confirmed locally that this improves cluster shutdown by 14 seconds per 5.0+ server. Older servers simply ignore the timeoutSecs option.