{"id":4425,"date":"2019-05-17T00:30:04","date_gmt":"2019-05-16T16:30:04","guid":{"rendered":"https:\/\/ixyzero.com\/blog\/?p=4425"},"modified":"2019-05-17T00:30:04","modified_gmt":"2019-05-16T16:30:04","slug":"%e4%b8%80%e8%87%b4%e6%80%a7%e5%93%88%e5%b8%8c%e7%ae%97%e6%b3%95%e7%ae%80%e8%a6%81%e5%ad%a6%e4%b9%a0","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/4425.html","title":{"rendered":"\u4e00\u81f4\u6027\u54c8\u5e0c\u7b97\u6cd5\u7b80\u8981\u5b66\u4e60"},"content":{"rendered":"\n<p>=Start=<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u7f18\u7531\uff1a<\/h4>\n\n\n\n<p>\u6700\u8fd1\u60f3\u7740\u9010\u6b65\u6574\u7406\u3001\u5b66\u4e60\u4e00\u4e0b\u4e4b\u524d\u542c\u8fc7\u3001\u6bd4\u8f83\u611f\u5174\u8da3\u4f46\u53c8\u6ca1\u6709\u597d\u597d\u4e86\u89e3\u8fc7\u7684\u77e5\u8bc6\u70b9\uff0c\u82e6\u7ec3\u57fa\u672c\u529f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6b63\u6587\uff1a<\/h4>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u89e3\u7b54\uff1a<\/h5>\n\n\n\n<h6 class=\"wp-block-heading\">1\u3001\u4f20\u7edf\u7684\u54c8\u5e0c\u7b97\u6cd5 &amp; \u4e00\u81f4\u6027\u54c8\u5e0c\u7b97\u6cd5<\/h6>\n\n\n\n<p>\u4f20\u7edf\u7684\u54c8\u5e0c\u7b97\u6cd5\uff1a<\/p>\n\n\n\n<p>Hash\uff0c\u4e00\u822c\u7ffb\u8bd1\u505a\u201c\u6563\u5217\u201d\uff0c\u4e5f\u6709\u76f4\u63a5\u97f3\u8bd1\u4e3a\u201c\u54c8\u5e0c\u201d\u7684\uff0c\u5c31\u662f\u628a\u4efb\u610f\u957f\u5ea6\u7684\u8f93\u5165\uff08\u53c8\u53eb\u505a\u9884\u6620\u5c04\uff0c pre-image\uff09\uff0c\u901a\u8fc7\u6563\u5217\u7b97\u6cd5\uff0c\u53d8\u6362\u6210\u56fa\u5b9a\u957f\u5ea6\u7684\u8f93\u51fa\uff0c\u8be5\u8f93\u51fa\u5c31\u662f\u6563\u5217\u503c\u3002\u8fd9\u79cd\u8f6c\u6362\u662f\u4e00\u79cd\u538b\u7f29\u6620\u5c04\uff0c\u4e5f\u5c31\u662f\uff0c\u6563\u5217\u503c\u7684\u7a7a\u95f4\u901a\u5e38\u8fdc\u5c0f\u4e8e\u8f93\u5165\u7684\u7a7a\u95f4\u3002<strong>\u4e00\u822c\u60c5\u51b5\u4e0b\u5982\u679c\u8f93\u5165\u6570\u636e\u6709\u53d8\u5316\uff0c\u5219\u8f93\u51fa\u7684\u54c8\u5e0c\/\u6563\u5217\u503c\u4e5f\u4f1a\u53d1\u751f\u53d8\u5316<\/strong>\uff08\u5982\u679c\u4e0d\u540c\u7684\u8f93\u5165\u4ea7\u751f\u4e86\u76f8\u540c\u7684\u8f93\u51fa\uff0c\u8fd9\u5c31\u662f\u53d1\u751f\u4e86\u78b0\u649e\uff0c\u5f53\u524d\u5df2\u77e5\u5b58\u5728\u78b0\u649e\u7684\u5e38\u89c1\u54c8\u5e0c\u7b97\u6cd5\u6709MD4\/MD5\uff0c\u63a8\u8350\u7528SHA-2\u7b97\u6cd5\uff09\u3002\u54c8\u5e0c\u7b97\u6cd5\u7b80\u5355\u7684\u8bf4\u5c31\u662f\u4e00\u79cd\u5c06\u4efb\u610f\u957f\u5ea6\u7684\u6d88\u606f\u538b\u7f29\u5230\u67d0\u4e00\u56fa\u5b9a\u957f\u5ea6\u7684\u6d88\u606f\u6458\u8981\uff08<strong>\u4e14\u4e0d\u540c\u6d88\u606f\u7684\u6d88\u606f\u6458\u8981\u4e00\u822c\u4e0d\u540c<\/strong>\uff09\u7684\u51fd\u6570\u3002<\/p>\n\n\n\n<p>\u4e00\u81f4\u6027\u54c8\u5e0c\u7b97\u6cd5\uff1a<\/p>\n\n\n\n<p>\u4e00\u81f4\u6027\u54c8\u5e0c\u7b97\u6cd5\u57281997\u5e74\u7531\u9ebb\u7701\u7406\u5de5\u5b66\u9662\u7684Karger\u7b49\u4eba\u5728\u89e3\u51b3\u5206\u5e03\u5f0fCache\u4e2d\u63d0\u51fa\u7684\uff0c<strong>\u8bbe\u8ba1\u76ee\u6807\u662f\u4e3a\u4e86\u89e3\u51b3\u56e0\u7279\u7f51\u4e2d\u7684\u70ed\u70b9(Hot spot)\u95ee\u9898<\/strong>\uff0c\u521d\u8877\u548cCARP\u5341\u5206\u7c7b\u4f3c\u3002<strong>\u4e00\u81f4\u6027\u54c8\u5e0c\u4fee\u6b63\u4e86CARP\u4f7f\u7528\u7684\u7b80\u5355\u54c8\u5e0c\u7b97\u6cd5\u5e26\u6765\u7684\u95ee\u9898\uff0c\u4f7f\u5f97DHT\u53ef\u4ee5\u5728P2P\u73af\u5883\u4e2d\u771f\u6b63\u5f97\u5230\u5e94\u7528\u3002<\/strong><\/p>\n\n\n\n<h6 class=\"wp-block-heading\">2\u3001\u54c8\u5e0c\u7b97\u6cd5\u7684\u8bc4\u4f30\u6307\u6807<\/h6>\n\n\n\n<ol class=\"wp-block-list\"><li>\u5e73\u8861\u6027<strong>(Balance)<\/strong><\/li><li>\u5355\u8c03\u6027<strong>(Monotonicity)<\/strong><\/li><li>\u5206\u6563\u6027<strong>(Spread)<\/strong><\/li><li>\u8d1f\u8f7d\u6027<strong>(Load)<\/strong><\/li><\/ol>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\u5e73\u8861\u6027(Balance)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>\u5e73\u8861\u6027\u662f\u6307\u54c8\u5e0c\u7684\u7ed3\u679c\u80fd\u591f\u5c3d\u53ef\u80fd\u5206\u5e03\u5230\u6240\u6709\u7684\u7f13\u51b2\u4e2d\u53bb\uff0c\u8fd9\u6837\u53ef\u4ee5\u4f7f\u5f97\u6240\u6709\u7684\u7f13\u51b2\u7a7a\u95f4\u90fd\u5f97\u5230\u5229\u7528\u3002<\/strong>\u5f88\u591a\u54c8\u5e0c\u7b97\u6cd5\u90fd\u80fd\u591f\u6ee1\u8db3\u8fd9\u4e00\u6761\u4ef6\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\u5355\u8c03\u6027(Monotonicity)<\/strong><\/li><\/ul>\n\n\n\n<p><strong>\u5355\u8c03\u6027\u662f\u6307\u5982\u679c\u5df2\u7ecf\u6709\u4e00\u4e9b\u5185\u5bb9\u901a\u8fc7\u54c8\u5e0c\u5206\u6d3e\u5230\u4e86\u76f8\u5e94\u7684\u7f13\u51b2\u4e2d\uff0c\u53c8\u6709\u65b0\u7684\u7f13\u51b2\u533a\u52a0\u5165\u5230\u7cfb\u7edf\u4e2d\uff0c\u90a3\u4e48\u54c8\u5e0c\u7684\u7ed3\u679c\u5e94\u80fd\u591f\u4fdd\u8bc1\u539f\u6709\u5df2\u5206\u914d\u7684\u5185\u5bb9\u53ef\u4ee5\u88ab\u6620\u5c04\u5230\u65b0\u7684\u7f13\u51b2\u533a\u4e2d\u53bb\uff0c\u800c\u4e0d\u4f1a\u88ab\u6620\u5c04\u5230\u65e7\u7684\u7f13\u51b2\u96c6\u5408\u4e2d\u7684\u5176\u4ed6\u7f13\u51b2\u533a\u3002<\/strong>\u7b80\u5355\u7684\u54c8\u5e0c\u7b97\u6cd5\u5f80\u5f80\u4e0d\u80fd\u6ee1\u8db3\u5355\u8c03\u6027\u7684\u8981\u6c42\uff0c\u5982\u6700\u7b80\u5355\u7684\u7ebf\u6027\u54c8\u5e0c\uff1ax = (ax + b) mod (P)\uff0c\u5728\u4e0a\u5f0f\u4e2d\uff0cP\u8868\u793a\u5168\u90e8\u7f13\u51b2\u7684\u5927\u5c0f\u3002\u4e0d\u96be\u770b\u51fa\uff0c\u5f53\u7f13\u51b2\u5927\u5c0f\u53d1\u751f\u53d8\u5316\u65f6(\u4eceP1\u5230P2)\uff0c\u539f\u6765\u6240\u6709\u7684\u54c8\u5e0c\u7ed3\u679c\u5747\u4f1a\u53d1\u751f\u53d8\u5316\uff0c\u4ece\u800c\u4e0d\u6ee1\u8db3\u5355\u8c03\u6027\u7684\u8981\u6c42\u3002<strong>\u54c8\u5e0c\u7ed3\u679c\u7684\u53d8\u5316\u610f\u5473\u7740\u5f53\u7f13\u51b2\u7a7a\u95f4\u53d1\u751f\u53d8\u5316\u65f6\uff0c\u6240\u6709\u7684\u6620\u5c04\u5173\u7cfb\u9700\u8981\u5728\u7cfb\u7edf\u5185\u5168\u90e8\u66f4\u65b0\u3002<\/strong>\u800c\u5728P2P\u7cfb\u7edf\u5185\uff0c\u7f13\u51b2\u7684\u53d8\u5316\u7b49\u4ef7\u4e8ePeer\u52a0\u5165\u6216\u9000\u51fa\u7cfb\u7edf\uff0c\u8fd9\u4e00\u60c5\u51b5\u5728P2P\u7cfb\u7edf\u4e2d\u4f1a\u9891\u7e41\u53d1\u751f\uff0c\u56e0\u6b64\u4f1a\u5e26\u6765\u6781\u5927\u8ba1\u7b97\u548c\u4f20\u8f93\u8d1f\u8377\u3002\u5355\u8c03\u6027\u5c31\u662f\u8981\u6c42\u54c8\u5e0c\u7b97\u6cd5\u80fd\u591f\u5e94\u5bf9\u8fd9\u79cd\u60c5\u51b5\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\u5206\u6563\u6027(Spread)<\/strong><\/li><\/ul>\n\n\n\n<p>\u5728\u5206\u5e03\u5f0f\u73af\u5883\u4e2d\uff0c\u7ec8\u7aef\u6709\u53ef\u80fd\u770b\u4e0d\u5230\u6240\u6709\u7684\u7f13\u51b2\uff0c\u800c\u662f\u53ea\u80fd\u770b\u5230\u5176\u4e2d\u7684\u4e00\u90e8\u5206\u3002\u5f53\u7ec8\u7aef\u5e0c\u671b\u901a\u8fc7\u54c8\u5e0c\u8fc7\u7a0b\u5c06\u5185\u5bb9\u6620\u5c04\u5230\u7f13\u51b2\u4e0a\u65f6\uff0c\u7531\u4e8e\u4e0d\u540c\u7ec8\u7aef\u6240\u89c1\u7684\u7f13\u51b2\u8303\u56f4\u6709\u53ef\u80fd\u4e0d\u540c\uff0c\u4ece\u800c\u5bfc\u81f4\u54c8\u5e0c\u7684\u7ed3\u679c\u4e0d\u4e00\u81f4\uff0c\u6700\u7ec8\u7684\u7ed3\u679c\u662f\u76f8\u540c\u7684\u5185\u5bb9\u88ab\u4e0d\u540c\u7684\u7ec8\u7aef\u6620\u5c04\u5230\u4e0d\u540c\u7684\u7f13\u51b2\u533a\u4e2d\u3002\u8fd9\u79cd\u60c5\u51b5\u663e\u7136\u662f\u5e94\u8be5\u907f\u514d\u7684\uff0c\u56e0\u4e3a\u5b83\u5bfc\u81f4\u76f8\u540c\u5185\u5bb9\u88ab\u5b58\u50a8\u5230\u4e0d\u540c\u7f13\u51b2\u4e2d\u53bb\uff0c\u964d\u4f4e\u4e86\u7cfb\u7edf\u5b58\u50a8\u7684\u6548\u7387\u3002\u5206\u6563\u6027\u7684\u5b9a\u4e49\u5c31\u662f\u4e0a\u8ff0\u60c5\u51b5\u53d1\u751f\u7684\u4e25\u91cd\u7a0b\u5ea6\u3002<strong>\u597d\u7684\u54c8\u5e0c\u7b97\u6cd5\u5e94\u80fd\u591f\u5c3d\u91cf\u907f\u514d\u4e0d\u4e00\u81f4\u7684\u60c5\u51b5\u53d1\u751f\uff0c\u4e5f\u5c31\u662f\u5c3d\u91cf\u964d\u4f4e\u5206\u6563\u6027\u3002<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\u8d1f\u8f7d(Load)<\/strong><\/li><\/ul>\n\n\n\n<p>\u8d1f\u8f7d\u95ee\u9898\u5b9e\u9645\u4e0a\u662f\u4ece\u53e6\u4e00\u4e2a\u89d2\u5ea6\u770b\u5f85\u5206\u6563\u6027\u95ee\u9898\u3002\u65e2\u7136\u4e0d\u540c\u7684\u7ec8\u7aef\u53ef\u80fd\u5c06\u76f8\u540c\u7684\u5185\u5bb9\u6620\u5c04\u5230\u4e0d\u540c\u7684\u7f13\u51b2\u533a\u4e2d\uff0c\u90a3\u4e48\u5bf9\u4e8e\u4e00\u4e2a\u7279\u5b9a\u7684\u7f13\u51b2\u533a\u800c\u8a00\uff0c\u4e5f\u53ef\u80fd\u88ab\u4e0d\u540c\u7684\u7528\u6237\u6620\u5c04\u4e3a\u4e0d\u540c\u7684\u5185\u5bb9\u3002<strong>\u4e0e\u5206\u6563\u6027\u4e00\u6837\uff0c\u8fd9\u79cd\u60c5\u51b5\u4e5f\u662f\u5e94\u5f53\u907f\u514d\u7684\uff0c\u56e0\u6b64\u597d\u7684\u54c8\u5e0c\u7b97\u6cd5\u5e94\u80fd\u591f\u5c3d\u91cf\u964d\u4f4e\u7f13\u51b2\u7684\u8d1f\u8377\u3002<\/strong><\/p>\n\n\n\n<h6 class=\"wp-block-heading\">3\u3001\u5b9e\u9645\u573a\u666f\u4e3e\u4f8b<\/h6>\n\n\n\n<p>\u6211\u4eec\u5728\u4f7f\u7528\u67d0\u4e2a\u670d\u52a1\uff08\u6bd4\u5982\uff1aRedis\u3001Memcached\uff09\u7684\u65f6\u5019\uff0c\u4e3a\u4e86\u4fdd\u8bc1\u8be5\u670d\u52a1\u7684\u9ad8\u53ef\u7528\uff0c\u63d0\u9ad8\u8be5\u670d\u52a1\u7684\u541e\u5410\u6027\u80fd\uff0c\u4e00\u822c\u4f1a\u642d\u5efa\u4e00\u4e2a\u8be5\u670d\u52a1\u7684\u96c6\u7fa4\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e00\u4e2aRedis\u96c6\u7fa4\u4e3a\u4f8b\uff0c\u540e\u7aef\u53ef\u80fd\u7531N\u53f0\u673a\u5668\uff08\u6682\u65f6\u4e0d\u8003\u8651\u5bf9\u5e94\u7684\u4ece\u5e93\uff0c\u8ba4\u4e3a\u6240\u6709\u7684\u673a\u5668\u90fd\u662f\u4e3b\u5e93\uff09\u7ec4\u6210\uff0c\u4e1a\u52a1\u7684\u5185\u5bb9\u5206\u522b\u5b58\u653e\u5728\u8fd9N\u53f0\u673a\u5668\u4e0a\u3002\u5047\u8bbe\u6b64\u65f6\u6211\u4eec\u6709\u4e00\u4e2a\u67e5\u8be2\u7684\u9700\u6c42\uff0c\u6839\u636ekey\u7684\u540d\u79f0\u67e5\u8be2\u5177\u4f53\u7684value\u5185\u5bb9\u3002\u56e0\u4e3a\u5185\u5bb9\u662f\u5b58\u653e\u5728\u673a\u5668\u4e0a\u7684\uff0c\u6240\u4ee5\u6211\u4eec\u9700\u8981\u5148\u77e5\u9053\u5b58\u653e\u5185\u5bb9\u7684\u673a\u5668\u540d\u79f0\uff0c\u624d\u80fd\u4ece\u8be5\u673a\u5668\u4e0a\u53d6\u5230\u5177\u4f53\u7684\u5185\u5bb9\u3002\u5728\u9009\u62e9\u5177\u4f53\u5b58\u653e\/\u83b7\u53d6\u5185\u5bb9\u7684\u673a\u5668\u65f6\uff0c\u4f1a\u6709\u51e0\u4e2a\u9009\u62e9\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u4e00\u3001\u65e0\u7279\u5b9a\u89c4\u5219\u2014\u2014\u5373\uff0c\u5728\u5b58\u7684\u65f6\u5019\u968f\u673a\u9009\u53d6\u4e00\u53f0\u673a\u5668\u8fdb\u884c\u5b58\u653e\uff08\u6bd4\u8f83\u7b80\u5355\u548c\u968f\u610f\uff09\uff0c\u5728\u53d6\u7684\u65f6\u5019\u5c31\u9700\u8981\u904d\u5386\u6240\u6709\u7684\u673a\u5668\u4ee5\u5c1d\u8bd5\u53d6\u51fa\u7279\u5b9a\u5185\u5bb9\u3002<\/li><\/ul>\n\n\n\n<p><strong>\u9009\u62e9\u4e00\u7684\u65b9\u6848\u5728\u5b58\u7684\u65f6\u5019\u6ca1\u4ec0\u4e48\u95ee\u9898\uff0c\u4f46\u662f\u53d6\u7684\u65f6\u5019\u5c31\u9ebb\u70e6\u4e86\uff0c\u6210\u672c\u592a\u9ad8\uff0c\u65e0\u6cd5\u8fdb\u884c\u5b9e\u9645\u5e94\u7528\u3002<\/strong>\u6240\u4ee5\uff0c\u6211\u4eec\u9700\u8981\u6709\u4e00\u5b9a\u7684\u89c4\u5219\u6765\u7ea6\u675f\u6211\u4eec\u7684\u5b58\/\u53d6\u65b9\u5f0f\uff0c\u6bd4\u8f83\u5bb9\u6613\u60f3\u5230\u7684\u4e00\u79cd\u65b9\u5f0f\u5c31\u662fHash\u53d6\u6a21\u2014\u2014\u56e0\u4e3aHash\u9488\u5bf9\u56fa\u5b9a\u7684\u8f93\u5165\u4f1a\u6709\u56fa\u5b9a\u7684\u8f93\u51fa\uff08\u4e00\u81f4\u6027\u6bd4\u8f83\u597d\uff09\uff0c\u4e14\u7b80\u5355\u5feb\u901f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u4e8c\u3001\u5e38\u89c4Hash\u2014\u2014keyA\u7ecf\u8fc7Hash\u4e4b\u540e\u4ea7\u751f\u7684\u662f\u56fa\u5b9a\u7684hashA\uff0chashA\u7ecf\u8fc7\u7b80\u5355\u7684\u6a21N\u4e4b\u540e\u4f1a\u5f97\u5230\u4e00\u4e2a\u56fa\u5b9a\u7684\u503c\uff0c\u8fd9\u91cc\u5047\u8bbe\u4e3a2\uff0c\u6240\u4ee5keyA\u7684\u5185\u5bb9\u5728\u5b58\u7684\u65f6\u5019\u9009\u62e92\u53f7\u673a\u5668\uff1b\u4e4b\u540e\u5728\u53d6\u7684\u65f6\u5019\u62ffkeyA\u8fdb\u884c\u76f8\u540c\u7684Hash\u53d6\u6a21\u4e4b\u540e\u5f97\u5230\u7684\u4e5f\u662f2\uff0c\u76f4\u63a5\u53bb2\u53f7\u673a\u5668\u53d6\u5185\u5bb9\u5373\u53ef\uff0c\u7b80\u5355\u5feb\u901f\u3002<\/li><\/ul>\n\n\n\n<p><strong>\u9009\u62e9\u4e8c\u7684\u65b9\u6848\u4e00\u822c\u60c5\u51b5\u4e0b\u4e5f\u80fd\u5f88\u597d\u7684\u5de5\u4f5c\uff0c\u4f46\u662f\u5982\u679c\u9047\u5230\u9700\u8981\u52a0\u3001\u51cf\u673a\u5668\u7684\u60c5\u51b5\u5c31\u4e0d\u7075\u4e86\u3002<\/strong>\u5047\u8bbe\u73b0\u5728\u6211\u4eec\u7684\u670d\u52a1\u540e\u7aef\u6709N\u53f0\u673a\u5668\uff0c\u5982\u679c\u4e1a\u52a1\u589e\u957f\u8f83\u5feb\uff0cN\u53f0\u673a\u5668\u9a6c\u4e0a\u4e0d\u591f\u7528\u4e86\uff0c\u9700\u8981\u52a0\u673a\u5668\uff0c\u6bd4\u5982\u5148\u52a01\u53f0\u673a\u5668\uff0c\u90a3\u540e\u7aef\u7684\u673a\u5668\u5c31\u53d8\u6210\u4e86N+1\u53f0\u3002keyA\u7684\u5185\u5bb9\u4e4b\u524d\u662f\u5b58\u5728\u7b2c Hash(keyA)%N=2 \u53f0\u673a\u5668\u4e0a\u7684\uff0c\u73b0\u5728\u52a0\u4e86\u4e00\u53f0\u673a\u5668\u4e86\uff0c\u53d6\u7684\u65f6\u5019\u8ba1\u7b97\u51fa\u9700\u8981\u4ece\u7b2c Hash(keyA)%(N+1) \u53f0\u673a\u5668\u4e0a\u53d6\u6570\u636e\uff0c\u5bf9\u4e8e\u5e38\u89c4\u7684Hash\u7b97\u6cd5\uff0cHash(keyA)\u662f\u59cb\u7ec8\u76f8\u540c\u7684\uff0c\u4f46\u662f\u5206\u522b\u6a21N\u548c\u6a21(N+1)\u7684\u7ed3\u679c\u5c31\u4e0d\u4e00\u5b9a\u76f8\u540c\u4e86\uff08\u5982\u679cHash(keyA)&gt;N+1\u7684\u8bdd\u4e24\u8005\u7ed3\u679c\u5927\u6982\u7387\u4e0d\u76f8\u7b49\uff09\uff0c\u8fd9\u91cc\u5047\u8bbe Hash(keyA)%(N+1)=3 \uff0c\u6240\u4ee5\u53d6\u7684\u65f6\u5019\u8981\u4ece\u7b2c3\u53f0\u673a\u5668\u4e0a\u9762\u53d6\uff0c\u4f46\u662f\u7b2c3\u53f0\u673a\u5668\u4e0a\u9762\u53c8\u6ca1\u6709keyA\u7684\u5185\u5bb9\uff0c\u5373\u7f13\u5b58\u4e2d\u67e5\u4e0d\u5230\uff0c\u56e0\u6b64\u8981\u53bb\u66f4\u540e\u9762\u7684MySQL\u4e2d\u8fdb\u884c\u67e5\u8be2\u3002\u4e00\u6b21\u4e24\u6b21\u5012\u8fd8\u597d\uff0c\u4f46\u5982\u679c\u539f\u5148\u57282\u53f7\u673a\u5668\u4e2d\u5b58\u4e86\u5927\u91cf\u7684key\uff0c\u5b83\u4eec\u540e\u7eed\u90fd\u65e0\u6cd5\u5728\u7f13\u5b58\u4e2d\u67e5\u5230\uff0c\u90fd\u4f1a\u8dd1\u53bb\u66f4\u540e\u9762\u7684MySQL\u4e2d\u67e5\u8be2\u2014\u2014\u4ea7\u751f\u7f13\u5b58\u7a7f\u900f\u73b0\u8c61\uff0c\u53ef\u80fd\u4f1a\u5f15\u8d77MySQL\u670d\u52a1\u7684\u8bf7\u6c42\u91cf\u98da\u5347\uff0c\u67b6\u6784\u7684\u7a33\u5b9a\u6027\u53d7\u5230\u5f71\u54cd\u3002\u800c\u73b0\u5b9e\u60c5\u51b5\u4e2d\u52a0\u3001\u51cf\u673a\u5668\u53c8\u662f\u6bd4\u8f83\u5e38\u89c1\u7684\u60c5\u51b5\uff0c\u56e0\u6b64\uff0c\u5e38\u89c4Hash\u7684\u529e\u6cd5\u5728\u8fd9\u91cc\u884c\u4e0d\u901a\uff0c\u5c31\u6b64\u5f15\u5165\u4e86\u4e00\u81f4\u6027Hash\u7684\u65b9\u5f0f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u4e09\u3001\u4e00\u81f4\u6027Hash\u2014\u2014<strong>\u4e00\u81f4\u6027Hash\u7b97\u6cd5\u4e5f\u662f\u4f7f\u7528\u53d6\u6a21\u7684\u65b9\u6cd5\uff0c\u53ea\u662f\uff0c\u521a\u624d\u63cf\u8ff0\u7684\u53d6\u6a21\u6cd5\u662f\u5bf9\u673a\u5668\u7684\u6570\u91cf\u8fdb\u884c\u53d6\u6a21\uff0c\u800c\u4e00\u81f4\u6027Hash\u7b97\u6cd5\u662f\u5bf92^32\u53d6\u6a21<\/strong>\uff0c\u4ec0\u4e48\u610f\u601d\u5462\uff1f<strong>\u7b80\u5355\u6765\u8bf4\uff0c\u4e00\u81f4\u6027Hash\u7b97\u6cd5\u5c06\u6574\u4e2a\u54c8\u5e0c\u503c\u7a7a\u95f4\u7ec4\u7ec7\u6210\u4e00\u4e2a\u865a\u62df\u7684\u5706\u73af<\/strong>\uff0c\u5982\u5047\u8bbe\u67d0\u54c8\u5e0c\u51fd\u6570H\u7684\u503c\u7a7a\u95f4\u4e3a0-2^32-1\uff08\u5373\u54c8\u5e0c\u503c\u662f\u4e00\u4e2a32\u4f4d\u65e0\u7b26\u53f7\u6574\u5f62\uff09\uff0c\u6574\u4e2a\u54c8\u5e0c\u73af\u5982\u4e0b\uff1a<\/li><li><img loading=\"lazy\" decoding=\"async\" width=\"330\" height=\"344\" class=\"wp-image-4428\" src=\"https:\/\/ixyzero.com\/blog\/wp-content\/uploads\/2019\/05\/consistent-hash-1.jpg\" alt=\"\" style=\"width: 330px;\" srcset=\"https:\/\/ixyzero.com\/wp-content\/uploads\/2019\/05\/consistent-hash-1.jpg 449w, https:\/\/ixyzero.com\/wp-content\/uploads\/2019\/05\/consistent-hash-1-288x300.jpg 288w\" sizes=\"auto, (max-width: 330px) 100vw, 330px\" \/><\/li><li>\u6574\u4e2a\u7a7a\u95f4\u6309\u987a\u65f6\u9488\u65b9\u5411\u7ec4\u7ec7\uff0c\u5706\u73af\u7684\u6b63\u4e0a\u65b9\u7684\u70b9\u4ee3\u88680\uff0c0\u70b9\u53f3\u4fa7\u7684\u7b2c\u4e00\u4e2a\u70b9\u4ee3\u88681\uff0c\u4ee5\u6b64\u7c7b\u63a8\uff0c2\u30013\u30014\u30015\u30016\u2026\u2026\u76f4\u52302^32-1\uff0c\u4e5f\u5c31\u662f\u8bf40\u70b9\u5de6\u4fa7\u7684\u7b2c\u4e00\u4e2a\u70b9\u4ee3\u88682^32-1\uff0c 0\u548c2^32-1\u5728\u96f6\u70b9\u4e2d\u65b9\u5411\u91cd\u5408\uff0c\u6211\u4eec\u628a\u8fd9\u4e2a\u75312^32\u4e2a\u70b9\u7ec4\u6210\u7684\u5706\u73af\u79f0\u4e3aHash\u73af\u3002\u4e0b\u4e00\u6b65\u5c06\u5404\u4e2a\u673a\u5668\u4f7f\u7528Hash\u8fdb\u884c\u4e00\u4e2a\u54c8\u5e0c\uff0c\u5177\u4f53\u53ef\u4ee5\u9009\u62e9\u673a\u5668\u7684IP\u6216\u4e3b\u673a\u540d\u4f5c\u4e3a\u5173\u952e\u5b57\u8fdb\u884c\u54c8\u5e0c\uff0c\u8fd9\u6837\u6bcf\u53f0\u673a\u5668\u5c31\u80fd\u786e\u5b9a\u5176\u5728\u54c8\u5e0c\u73af\u4e0a\u7684\u4f4d\u7f6e\uff0c\u8fd9\u91cc\u5047\u8bbe\u5c06\u4e0a\u6587\u4e2d\u56db\u53f0\u673a\u5668\u4f7f\u7528IP\u5730\u5740\u54c8\u5e0c\u540e\u5728\u73af\u7a7a\u95f4\u7684\u4f4d\u7f6e\u5982\u4e0b\uff1a<\/li><li><img loading=\"lazy\" decoding=\"async\" width=\"330\" height=\"336\" class=\"wp-image-4429\" src=\"https:\/\/ixyzero.com\/blog\/wp-content\/uploads\/2019\/05\/consistent-hash-2.jpg\" alt=\"\" style=\"width: 330px;\" srcset=\"https:\/\/ixyzero.com\/wp-content\/uploads\/2019\/05\/consistent-hash-2.jpg 714w, https:\/\/ixyzero.com\/wp-content\/uploads\/2019\/05\/consistent-hash-2-295x300.jpg 295w\" sizes=\"auto, (max-width: 330px) 100vw, 330px\" \/><\/li><li>\u63a5\u4e0b\u6765\u4f7f\u7528\u5982\u4e0b\u7b97\u6cd5\u5b9a\u4f4d\u6570\u636e\u8bbf\u95ee\u5230\u76f8\u5e94\u673a\u5668\uff1a\u5c06\u6570\u636ekey\u4f7f\u7528\u76f8\u540c\u7684\u51fd\u6570Hash\u8ba1\u7b97\u51fa\u54c8\u5e0c\u503c\uff0c\u5e76\u786e\u5b9a\u6b64\u6570\u636e\u5728\u73af\u4e0a\u7684\u4f4d\u7f6e\uff0c\u4ece\u6b64\u4f4d\u7f6e\u6cbf\u73af\u987a\u65f6\u9488\u201c\u884c\u8d70\u201d\uff0c\u7b2c\u4e00\u53f0\u9047\u5230\u7684\u673a\u5668\u5c31\u662f\u5176\u5e94\u8be5\u5b9a\u4f4d\u5230\u7684\u673a\u5668\uff01\u4f8b\u5982\u6211\u4eec\u6709Object A\u3001Object B\u3001Object C\u3001Object D\u56db\u4e2a\u6570\u636e\u5bf9\u8c61\uff0c\u7ecf\u8fc7\u54c8\u5e0c\u8ba1\u7b97\u540e\uff0c\u5728\u73af\u7a7a\u95f4\u4e0a\u7684\u4f4d\u7f6e\u5982\u4e0b\uff1a<\/li><li><img loading=\"lazy\" decoding=\"async\" width=\"330\" height=\"337\" class=\"wp-image-4430\" src=\"https:\/\/ixyzero.com\/blog\/wp-content\/uploads\/2019\/05\/consistent-hash-3.jpg\" alt=\"\" style=\"width: 330px;\" srcset=\"https:\/\/ixyzero.com\/wp-content\/uploads\/2019\/05\/consistent-hash-3.jpg 704w, https:\/\/ixyzero.com\/wp-content\/uploads\/2019\/05\/consistent-hash-3-294x300.jpg 294w\" sizes=\"auto, (max-width: 330px) 100vw, 330px\" \/><\/li><li>\u6839\u636e\u4e00\u81f4\u6027Hash\u7b97\u6cd5\uff0c\u6570\u636eA\u4f1a\u88ab\u5b9a\u4e3a\u5230Node A\u4e0a\uff0cB\u88ab\u5b9a\u4e3a\u5230Node B\u4e0a\uff0cC\u88ab\u5b9a\u4e3a\u5230Node C\u4e0a\uff0cD\u88ab\u5b9a\u4e3a\u5230Node D\u4e0a\u3002<\/li><\/ul>\n\n\n\n<p>\u73b0\u5047\u8bbeNode C\u4e0d\u5e78\u5b95\u673a\uff0c\u53ef\u4ee5\u770b\u5230\u6b64\u65f6\u5bf9\u8c61A\u3001B\u3001D\u4e0d\u4f1a\u53d7\u5230\u5f71\u54cd\uff0c\u53ea\u6709C\u5bf9\u8c61\u88ab\u91cd\u5b9a\u4f4d\u5230Node D\u3002\u4e00\u822c\u7684\uff0c\u5728\u4e00\u81f4\u6027Hash\u7b97\u6cd5\u4e2d\uff0c\u5982\u679c\u4e00\u53f0\u673a\u5668\u4e0d\u53ef\u7528\uff0c\u5219\u53d7\u5f71\u54cd\u7684\u6570\u636e\u4ec5\u4ec5\u662f\u6b64\u673a\u5668\u5230\u5176\u73af\u7a7a\u95f4\u4e2d\u524d\u4e00\u53f0\u673a\u5668\uff08\u5373\u6cbf\u7740\u9006\u65f6\u9488\u65b9\u5411\u884c\u8d70\u9047\u5230\u7684\u7b2c\u4e00\u53f0\u673a\u5668\uff09\u4e4b\u95f4\u6570\u636e\uff0c\u5176\u5b83\u4e0d\u4f1a\u53d7\u5230\u5f71\u54cd\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n\n\n\n<p style=\"text-align:center\"><img loading=\"lazy\" decoding=\"async\" width=\"330\" height=\"341\" class=\"wp-image-4434\" src=\"https:\/\/ixyzero.com\/blog\/wp-content\/uploads\/2019\/05\/consistent-hash-delete.jpg\" alt=\"\" style=\"width: 330px;\" srcset=\"https:\/\/ixyzero.com\/wp-content\/uploads\/2019\/05\/consistent-hash-delete.jpg 701w, https:\/\/ixyzero.com\/wp-content\/uploads\/2019\/05\/consistent-hash-delete-290x300.jpg 290w\" sizes=\"auto, (max-width: 330px) 100vw, 330px\" \/><\/p>\n\n\n\n<p>\u4e0b\u9762\u8003\u8651\u53e6\u5916\u4e00\u79cd\u60c5\u51b5\uff0c\u5982\u679c\u5728\u7cfb\u7edf\u4e2d\u589e\u52a0\u4e00\u53f0\u673a\u5668Node X\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n\n\n\n<p style=\"text-align:center\"><img loading=\"lazy\" decoding=\"async\" width=\"330\" height=\"342\" class=\"wp-image-4433\" src=\"https:\/\/ixyzero.com\/blog\/wp-content\/uploads\/2019\/05\/consistent-hash-add.jpg\" alt=\"\" style=\"width: 330px;\" srcset=\"https:\/\/ixyzero.com\/wp-content\/uploads\/2019\/05\/consistent-hash-add.jpg 696w, https:\/\/ixyzero.com\/wp-content\/uploads\/2019\/05\/consistent-hash-add-289x300.jpg 289w\" sizes=\"auto, (max-width: 330px) 100vw, 330px\" \/><\/p>\n\n\n\n<p>\u6b64\u65f6\u5bf9\u8c61Object A\u3001B\u3001D\u4e0d\u53d7\u5f71\u54cd\uff0c\u53ea\u6709\u5bf9\u8c61C\u9700\u8981\u91cd\u5b9a\u4f4d\u5230\u65b0\u7684Node X \uff01\u4e00\u822c\u7684\uff0c\u5728\u4e00\u81f4\u6027Hash\u7b97\u6cd5\u4e2d\uff0c\u5982\u679c\u589e\u52a0\u4e00\u53f0\u673a\u5668\uff0c\u5219\u53d7\u5f71\u54cd\u7684\u6570\u636e\u4ec5\u4ec5\u662f\u65b0\u673a\u5668\u5230\u5176\u73af\u7a7a\u95f4\u4e2d\u524d\u4e00\u53f0\u673a\u5668\uff08\u5373\u6cbf\u7740\u9006\u65f6\u9488\u65b9\u5411\u884c\u8d70\u9047\u5230\u7684\u7b2c\u4e00\u53f0\u673a\u5668\uff09\u4e4b\u95f4\u6570\u636e\uff0c\u5176\u5b83\u6570\u636e\u4e5f\u4e0d\u4f1a\u53d7\u5230\u5f71\u54cd\u3002<\/p>\n\n\n\n<p>\u7efc\u4e0a\u6240\u8ff0\uff0c<strong>\u4e00\u81f4\u6027Hash\u7b97\u6cd5\u5bf9\u4e8e\u8282\u70b9\u7684\u589e\u51cf\u90fd\u53ea\u9700\u91cd\u5b9a\u4f4d\u73af\u7a7a\u95f4\u4e2d\u7684\u4e00\u5c0f\u90e8\u5206\u6570\u636e<\/strong>\uff0c\u5177\u6709\u8f83\u597d\u7684\u5bb9\u9519\u6027\u548c\u53ef\u6269\u5c55\u6027\u3002<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">4\u3001\u4e00\u81f4\u6027Hash\u53ef\u80fd\u5b58\u5728\u7684\u51e0\u4e2a\u95ee\u9898\u53ca\u5176\u5e94\u5bf9\u65b9\u5f0f<\/h6>\n\n\n\n<p>\u6570\u636e\u503e\u659c\u95ee\u9898 -&gt; \u865a\u62df\u8282\u70b9\u673a\u5236<\/p>\n\n\n\n<p>\u4e00\u81f4\u6027Hash\u7b97\u6cd5\u5728\u670d\u52a1\u8282\u70b9\u592a\u5c11\u65f6\uff0c\u5bb9\u6613\u56e0\u4e3a\u8282\u70b9\u5206\u90e8\u4e0d\u5747\u5300\u800c\u9020\u6210\u6570\u636e\u503e\u659c\uff08\u88ab\u7f13\u5b58\u7684\u5bf9\u8c61\u5927\u90e8\u5206\u96c6\u4e2d\u7f13\u5b58\u5728\u67d0\u4e00\u53f0\u673a\u5668\u4e0a\uff09\u95ee\u9898\uff0c\u4f8b\u5982\u7cfb\u7edf\u4e2d\u53ea\u6709\u4e24\u53f0\u673a\u5668\uff0c\u5176\u73af\u5206\u5e03\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p style=\"text-align:center\"><img loading=\"lazy\" decoding=\"async\" width=\"330\" height=\"352\" class=\"wp-image-4431\" src=\"https:\/\/ixyzero.com\/blog\/wp-content\/uploads\/2019\/05\/consistent-hash-4.jpg\" alt=\"\" style=\"width: 330px;\" srcset=\"https:\/\/ixyzero.com\/wp-content\/uploads\/2019\/05\/consistent-hash-4.jpg 444w, https:\/\/ixyzero.com\/wp-content\/uploads\/2019\/05\/consistent-hash-4-282x300.jpg 282w\" sizes=\"auto, (max-width: 330px) 100vw, 330px\" \/><\/p>\n\n\n\n<p>\u6b64\u65f6\u5fc5\u7136\u9020\u6210\u5927\u91cf\u6570\u636e\u96c6\u4e2d\u5230Node A\u4e0a\uff0c\u800c\u53ea\u6709\u6781\u5c11\u91cf\u4f1a\u5b9a\u4f4d\u5230Node B\u4e0a\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u79cd\u6570\u636e\u503e\u659c\u95ee\u9898\uff0c\u4e00\u81f4\u6027Hash\u7b97\u6cd5\u5f15\u5165\u4e86\u865a\u62df\u8282\u70b9\u673a\u5236\uff0c\u5373\u5bf9\u6bcf\u4e00\u4e2a\u670d\u52a1\u8282\u70b9\u8ba1\u7b97\u591a\u4e2a\u54c8\u5e0c\uff0c\u6bcf\u4e2a\u8ba1\u7b97\u7ed3\u679c\u4f4d\u7f6e\u90fd\u653e\u7f6e\u4e00\u4e2a\u6b64\u670d\u52a1\u8282\u70b9\uff0c\u79f0\u4e3a\u865a\u62df\u8282\u70b9\u3002\u5177\u4f53\u505a\u6cd5\u53ef\u4ee5\u5728\u673a\u5668IP\u6216\u4e3b\u673a\u540d\u7684\u540e\u9762\u589e\u52a0\u7f16\u53f7\u6765\u5b9e\u73b0\u3002<\/p>\n\n\n\n<p>\u4f8b\u5982\u4e0a\u9762\u7684\u60c5\u51b5\uff0c\u53ef\u4ee5\u4e3a\u6bcf\u53f0\u673a\u5668\u8ba1\u7b97\u4e09\u4e2a\u865a\u62df\u8282\u70b9\uff0c\u4e8e\u662f\u53ef\u4ee5\u5206\u522b\u8ba1\u7b97 \u201cNode A#1\u201d\u3001\u201cNode A#2\u201d\u3001\u201cNode A#3\u201d\u3001\u201cNode B#1\u201d\u3001\u201cNode B#2\u201d\u3001\u201cNode B#3\u201d\u7684\u54c8\u5e0c\u503c\uff0c\u4e8e\u662f\u5f62\u6210\u516d\u4e2a\u865a\u62df\u8282\u70b9\uff1a<\/p>\n\n\n\n<p style=\"text-align:center\"><img loading=\"lazy\" decoding=\"async\" width=\"330\" height=\"335\" class=\"wp-image-4432\" src=\"https:\/\/ixyzero.com\/blog\/wp-content\/uploads\/2019\/05\/consistent-hash-5.jpg\" alt=\"\" style=\"width: 330px;\" srcset=\"https:\/\/ixyzero.com\/wp-content\/uploads\/2019\/05\/consistent-hash-5.jpg 720w, https:\/\/ixyzero.com\/wp-content\/uploads\/2019\/05\/consistent-hash-5-295x300.jpg 295w\" sizes=\"auto, (max-width: 330px) 100vw, 330px\" \/><\/p>\n\n\n\n<p>\u540c\u65f6\u6570\u636e\u5b9a\u4f4d\u7b97\u6cd5\u4e0d\u53d8\uff0c\u53ea\u662f\u591a\u4e86\u4e00\u6b65\u865a\u62df\u8282\u70b9\u5230\u5b9e\u9645\u8282\u70b9\u7684\u6620\u5c04\uff0c\u4f8b\u5982\u5b9a\u4f4d\u5230\u201cNode A#1\u201d\u3001\u201cNode A#2\u201d\u3001\u201cNode A#3\u201d\u4e09\u4e2a\u865a\u62df\u8282\u70b9\u7684\u6570\u636e\u5747\u5b9a\u4f4d\u5230Node A\u4e0a\u3002\u8fd9\u6837\u5c31\u89e3\u51b3\u4e86\u670d\u52a1\u8282\u70b9\u5c11\u65f6\u6570\u636e\u503e\u659c\u7684\u95ee\u9898\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u901a\u5e38\u5c06\u865a\u62df\u8282\u70b9\u6570\u8bbe\u7f6e\u4e3a32\u751a\u81f3\u66f4\u5927\uff0c\u56e0\u6b64\u5373\u4f7f\u5f88\u5c11\u7684\u670d\u52a1\u8282\u70b9\u4e5f\u80fd\u505a\u5230\u76f8\u5bf9\u5747\u5300\u7684\u6570\u636e\u5206\u5e03\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u53c2\u8003\u94fe\u63a5\uff1a<\/h5>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.cs.princeton.edu\/courses\/archive\/fall09\/cos518\/papers\/chash.pdf\">Consistent Hashing and Random Trees:Distributed Caching Protocols for Relieving Hot Spots on the World Wide Web<\/a>#<strong>\u539f\u7248\u8bba\u6587<\/strong><\/li><li><a href=\"http:\/\/www.cs.columbia.edu\/~asherman\/papers\/cachePaper.pdf\">Web Caching with Consistent Hashing<\/a><\/li><li><a href=\"https:\/\/en.wikipedia.org\/wiki\/Consistent_hashing\">https:\/\/en.wikipedia.org\/wiki\/Consistent_hashing<\/a><\/li><li>\u9762\u8bd5\u5fc5\u5907\uff1a\u4ec0\u4e48\u662f\u4e00\u81f4\u6027Hash\u7b97\u6cd5\uff1f #<strong>\u80fd\u8ba9\u6211\u770b\u61c2\u7684\u4e00\u7bc7\u6587\u7ae0<\/strong><br><a href=\"https:\/\/zhuanlan.zhihu.com\/p\/34985026\">https:\/\/zhuanlan.zhihu.com\/p\/34985026<\/a><\/li><li>\u4e94\u5206\u949f\u770b\u61c2\u4e00\u81f4\u6027\u54c8\u5e0c\u7b97\u6cd5<br><a href=\"https:\/\/juejin.im\/post\/5ae1476ef265da0b8d419ef2\">https:\/\/juejin.im\/post\/5ae1476ef265da0b8d419ef2<\/a><\/li><li>\u6bcf\u5929\u8fdb\u6b65\u4e00\u70b9\u70b9\u2014\u2014\u4e94\u5206\u949f\u7406\u89e3\u4e00\u81f4\u6027\u54c8\u5e0c\u7b97\u6cd5(consistent hashing)<br><a href=\"https:\/\/blog.csdn.net\/cywosp\/article\/details\/23397179\">https:\/\/blog.csdn.net\/cywosp\/article\/details\/23397179<\/a><\/li><li>\u4e00\u81f4\u6027hash\u7b97\u6cd5\u7b80\u4ecb<br><a href=\"http:\/\/blog.huanghao.me\/?p=14\">http:\/\/blog.huanghao.me\/?p=14<\/a><\/li><li><a href=\"https:\/\/zh.wikipedia.org\/zh-hans\/%E4%B8%80%E8%87%B4%E5%93%88%E5%B8%8C\">\u4e00\u81f4\u54c8\u5e0c-Wikipedia<\/a><\/li><li><a href=\"https:\/\/www.zsythink.net\/archives\/1182\">\u767d\u8bdd\u89e3\u6790\uff1a\u4e00\u81f4\u6027\u54c8\u5e0c\u7b97\u6cd5consistent hashing<\/a><\/li><li><a href=\"https:\/\/yikun.github.io\/2016\/06\/09\/%E4%B8%80%E8%87%B4%E6%80%A7%E5%93%88%E5%B8%8C%E7%AE%97%E6%B3%95%E7%9A%84%E7%90%86%E8%A7%A3%E4%B8%8E%E5%AE%9E%E8%B7%B5\/\">\u4e00\u81f4\u6027\u54c8\u5e0c\u7b97\u6cd5\u7684\u7406\u89e3\u4e0e\u5b9e\u8df5<\/a><br><a href=\"https:\/\/github.com\/Yikun\/hashes\">https:\/\/github.com\/Yikun\/hashes<\/a><\/li><li>\u4e00\u81f4\u6027\u54c8\u5e0c\uff08Consistent Hashing\uff09\u539f\u7406<br><a href=\"http:\/\/afghl.github.io\/2016\/07\/04\/consistent-hashing.html\">http:\/\/afghl.github.io\/2016\/07\/04\/consistent-hashing.html<\/a><\/li><li><a href=\"https:\/\/www.cnkirito.moe\/consistent-hash-lb\/\">\u4e00\u81f4\u6027\u54c8\u5e0c\u8d1f\u8f7d\u5747\u8861\u7b97\u6cd5\u7684\u63a2\u8ba8<\/a><br><a href=\"https:\/\/github.com\/lexburner\/consistent-hash-algorithm\">https:\/\/github.com\/lexburner\/consistent-hash-algorithm<\/a><\/li><li>\u6f2b\u753b\u7b97\u6cd5\uff1a\u4ec0\u4e48\u662f\u4e00\u81f4\u6027\u54c8\u5e0c\uff1f<br><a href=\"https:\/\/www.jianshu.com\/p\/570dc8913c20\">https:\/\/www.jianshu.com\/p\/570dc8913c20<\/a><\/li><li><a href=\"https:\/\/wizardforcel.gitbooks.io\/the-art-of-programming-by-july\/content\/a.3.html\">\u4e00\u81f4\u6027\u54c8\u5e0c\u7b97\u6cd5<\/a><\/li><li>\u5bf9\u4e00\u81f4\u6027Hash\u7b97\u6cd5\uff0cJava\u4ee3\u7801\u5b9e\u73b0\u7684\u6df1\u5165\u7814\u7a76<br><a href=\"https:\/\/www.cnblogs.com\/xrq730\/p\/5186728.html\">https:\/\/www.cnblogs.com\/xrq730\/p\/5186728.html<\/a><\/li><li>\u4e00\u81f4\u6027\u54c8\u5e0c\u7b97\u6cd5\u53ca\u5176\u5728\u5206\u5e03\u5f0f\u7cfb\u7edf\u4e2d\u7684\u5e94\u7528<br><a href=\"http:\/\/blog.codinglabs.org\/articles\/consistent-hashing.html\">http:\/\/blog.codinglabs.org\/articles\/consistent-hashing.html<\/a><\/li><li><a href=\"https:\/\/kefeng.wang\/2018\/08\/10\/consistent-hashing\/\">\u4e00\u81f4\u6027\u54c8\u5e0c\u7b97\u6cd5\u7684\u539f\u7406\u4e0e\u5b9e\u73b0<\/a>#<strong>\u5e26\u7b97\u6cd5\u5b9e\u73b0\u548c\u5bf9\u6bd4\uff0c\u65b9\u4fbf\u8fdb\u4e00\u6b65\u7406\u89e3<\/strong><\/li><li><a href=\"https:\/\/www.infoq.cn\/article\/dynamo-riak-random-slicing\">\u70b9\u8bc4\u53ef\u8c03\u6574\u5927\u5c0f\u54c8\u5e0c\u8868\uff1aRiak Core \u548c\u968f\u673a\u5207\u7247\u6280\u672f<\/a><\/li><li><a href=\"https:\/\/github.com\/muyinchen\/woker\/blob\/master\/%E9%9D%A2%E8%AF%95\/%E4%B8%80%E8%87%B4%E6%80%A7Hash%E7%AE%97%E6%B3%95%E7%9A%84%E5%AE%9E%E7%8E%B0.md\">\u4e00\u81f4\u6027Hash\u7b97\u6cd5\u7684\u5b9e\u73b0<\/a><\/li><li>\u4e00\u81f4\u6027\u54c8\u5e0c #<strong>\u6709\u591a\u79cd\u5b9e\u73b0\u7b97\u6cd5\u7684\u6574\u7406\u548c\u5bf9\u6bd4<\/strong><br><a href=\"https:\/\/blog.laisky.com\/p\/consistent-hashing\/\">https:\/\/blog.laisky.com\/p\/consistent-hashing\/<\/a><\/li><\/ul>\n\n\n\n<p>=END=<\/p>\n","protected":false},"excerpt":{"rendered":"<p>=Start= \u7f18\u7531\uff1a \u6700\u8fd1\u60f3\u7740\u9010\u6b65\u6574\u7406\u3001\u5b66\u4e60\u4e00\u4e0b\u4e4b\u524d\u542c\u8fc7\u3001\u6bd4\u8f83\u611f\u5174\u8da3\u4f46\u53c8\u6ca1\u6709\u597d\u597d\u4e86\u89e3\u8fc7\u7684\u77e5\u8bc6\u70b9\uff0c\u82e6\u7ec3\u57fa\u672c\u529f\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,7],"tags":[1390,1389],"class_list":["post-4425","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-programing","tag-1390","tag-1389"],"views":3688,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/4425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=4425"}],"version-history":[{"count":3,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/4425\/revisions"}],"predecessor-version":[{"id":4437,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/4425\/revisions\/4437"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=4425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=4425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=4425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}