Implement rebalancing of assigned cores.
Fix res_client_reply.