{"id":427385,"date":"2021-04-16T10:54:06","date_gmt":"2021-04-16T02:54:06","guid":{"rendered":"http:\/\/4563.org\/?p=427385"},"modified":"2021-04-16T10:54:06","modified_gmt":"2021-04-16T02:54:06","slug":"%e6%8e%a8%e5%b9%bf%e4%b8%80%e4%b8%aa%e8%87%aa%e5%b7%b1%e5%86%99%e7%9a%84-grpc-go-load-balancing-%e7%9a%84%e5%ae%9e%e7%8e%b0%e4%b8%8e%e5%8f%8a%e6%94%b9%e9%80%a0%e6%88%90%e8%87%aa%e5%ae%9a%e4%b9%89-lb","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=427385","title":{"rendered":"\u63a8\u5e7f\u4e00\u4e2a\u81ea\u5df1\u5199\u7684 grpc-go load balancing \u7684\u5b9e\u73b0\u4e0e\u53ca\u6539\u9020\u6210\u81ea\u5b9a\u4e49 lb \u7684 github repo"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u63a8\u5e7f\u4e00\u4e2a\u81ea\u5df1\u5199\u7684 grpc-go load balancing \u7684\u5b9e\u73b0\u4e0e\u53ca\u6539\u9020\u6210\u81ea\u5b9a\u4e49 lb \u7684 github repo               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xkeyideal <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>grpc-go load balancing \u7684\u5b98\u65b9\u5b9e\u73b0\u76ee\u524d\u4ec5\u652f\u6301 rr\uff0cwrr \u7684\u5b9e\u73b0\u597d\u50cf\u662f\u4e2a\u534a\u6b8b\u54c1\u3002<\/p>\n<p>\u9274\u4e8e\u9879\u76ee\u7684\u9700\u8981\uff0c\u501f\u9274\u4e86 google \u4e0a\u7684\u4e00\u4e9b\u6587\u7ae0\u3001grpc-go \u7684\u6e90\u7801\u4ee5\u53ca etcd v3.5 \u7684 clientv3 \u4ee3\u7801\u7f16\u5199\u4e86\u6b64 repo \u7684\u4ee3\u7801\uff0c\u5730\u5740\uff1a https:\/\/github.com\/xkeyideal\/grpcbalance<\/p>\n<p>lb \u7684\u5b9e\u73b0\u5176\u5b9e\u53ea\u9700\u8981\u7406\u89e3 resolver \u4e0e balancer \u7684 interface \u5373\u53ef\u968f\u5fc3\u7684\u6539\u9020\u6210\u81ea\u5df1\u9879\u76ee\u9700\u8981\u7684\u5b9e\u73b0\u65b9\u6848\u3002<\/p>\n<p>\u672c\u5b9e\u73b0\u65b9\u6848\u662f\u57fa\u4e8e grpc v1.36.0 \u5b9e\u73b0\u7684\uff0c\u770b\u4e86\u4e00\u4e0b\u6700\u65b0\u7684 v1.37.0 \u4e0e v1.38.0 \u63a5\u53e3\u90fd\u662f\u517c\u5bb9\u7684\u3002<\/p>\n<p>\u4f7f\u7528\u65b9\u6cd5\uff1a<\/p>\n<ol>\n<li>\u5e38\u89c4\u7684 lb \u65b9\u6848\u53ef\u76f4\u63a5\u5f15\u7528\u8be5 repo\uff0c\u7279\u6b8a\u8981\u6c42\u7684 lb \u4e0d\u5efa\u8bae\u76f4\u63a5\u5f15\u7528\u8be5 repo\uff0c\u53ef\u9605\u8bfb\u4ee3\u7801\u4e86\u89e3\u539f\u7406\u540e\u6839\u636e\u9700\u6c42\u4fee\u6539\uff1b<\/li>\n<li>\u672c\u4ee3\u7801\u6ca1\u6709\u5b9e\u73b0 endpoints \u52a8\u6001\u53d8\u5316\u7684\u90e8\u5206\u4ee3\u7801\uff0c\u4f46 resovler \u91cc\u63d0\u4f9b\u4e86 SetEndpoint \u65b9\u6cd5<\/li>\n<\/ol>\n<p>\u5e0c\u671b\u80fd\u5e2e\u52a9\u6709\u9700\u8981\u7684\u4eba\uff0cenjoy it<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>3<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5736397\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nacosboy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u597d\u559c\u6b22 README \u91cc\u7684\u63d2\u56fe\uff0c\u8bf7\u95ee\u7528\u4ec0\u4e48 app \u753b\u7684\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5736398\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : xkeyideal <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @nacosboy \u4ece\u522b\u4eba\u6587\u7ae0\u91cc\u6458\u5f55\u7684\uff0creadme \u91cc\u5df2\u7ecf\u8bf4\u660e\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5736399\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vloony <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u652f\u6301\u4e0b\u5927\u4f6c \u54c8\u54c8\u54c8\u54c8\u54c8                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u63a8\u5e7f\u4e00\u4e2a\u81ea\u5df1\u5199\u7684 grpc-go &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/427385"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=427385"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/427385\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=427385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=427385"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=427385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}