Add support of consistent hashing algorithm

It's simple and fast, using crc32 to determine which connection to use.
seems like this operation can be outside of the lock