When a node is removed and rebalanced, the query service will allow existing queries and transactions to complete before shutting down.
This may result in an elongated rebalance operation. The query service diagnostic log on the node(s) being removed will contain messages indicating how many transactions and queries are still running. Any new connection attempts to nodes that are shutting down will receive error 1180 and may receive error 1181 in the brief period between the completion of the last statement or transaction and the service exiting. Such rejected requests will have HTTP status code 503 (service unavailable) set too.
This does not affect failover.