It looks to me that mongod’s in the statefulset pods are not properly shut down.
I can see during the startup this error “Detected unclean shutdown”. Since there are a lot of collections/files to be scanned the startup takes like > 1h.
I was wondering if the shutdown can be performed gracefully like (resp. why is this not built in ?)
lifecycle: preStop: exec: command: - /bin/bash - -c - <gracefully shutdown mongodb>