Detecting scaling-in-progress from ServerStatus?

Hi,

We’re sometime having trouble when Atlas’s scaling triggers at the same time as our (too) long maintenance scripts.
We often manually disable the scaling before our planned maintenance, but it’s not perfect as sometime it takes many hours to scale.

We’d like to add a security to prevents scripts from running if the database is currently scaling. Is there a way to know this information from the client code (nodejs-mongoose in this case, but it shouldn’t matter)? Somewhere revelant inside the ServerStatus informations maybe?

Thanks!

I caught the db mid-scaling this afternoon and managed to quickly test an hypothesis :

When calling the Admin API route to check

https://cloud.mongodb.com/api/atlas/v2/groups/{groupId}/clusters/{clusterName}/status

it returns

{"changeStatus":"APPLIED"}

despite the Atlas UI displaying, at the exact same time

“We are deploying your changes: 4 of 6 servers complete (current action: waiting for 2 servers to be healthy)”

This was very promising, but a(t)las does not seems like an option :slightly_frowning_face: