Separate resilient connection functionality from sharding.