Flex down instances that are either in 'active' state or in 'pending' state.
- First try to flex down instances that are in 'active' state.
- If there are more instances to be flex down, then pick instances that are in 'pending' state.
- If there are instances that are 'active', but the NMs haven't registered back with RM yet, then spare those instances.