{"id":182087,"date":"2020-10-30T23:49:16","date_gmt":"2020-10-30T15:49:16","guid":{"rendered":"http:\/\/4563.org\/?p=182087"},"modified":"2020-10-30T23:49:16","modified_gmt":"2020-10-30T15:49:16","slug":"mongodb-%e9%9b%86%e7%be%a4%e6%a8%a1%e5%bc%8f-%e9%a1%b9%e7%9b%ae%e7%ac%ac%e4%b8%80%e6%ac%a1%e6%8e%a5%e5%85%a5-mongodb%ef%bc%8c%e6%b1%82%e9%9b%86%e7%be%a4%e6%a8%a1%e5%bc%8f%e9%80%89%e6%8b%a9","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=182087","title":{"rendered":"[MongoDB \u96c6\u7fa4\u6a21\u5f0f] \u9879\u76ee\u7b2c\u4e00\u6b21\u63a5\u5165 MongoDB\uff0c\u6c42\u96c6\u7fa4\u6a21\u5f0f\u9009\u62e9"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  [MongoDB \u96c6\u7fa4\u6a21\u5f0f] \u9879\u76ee\u7b2c\u4e00\u6b21\u63a5\u5165 MongoDB\uff0c\u6c42\u96c6\u7fa4\u6a21\u5f0f\u9009\u62e9               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : haosamax <\/span>  <span><i><\/i> 1<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u9700\u6c42\uff1a\u5b58\u50a8 xml \u62a5\u6587\uff0c\u521d\u671f\u53ea\u505a\u7b80\u5355\u7684\u63d2\u5165\uff0c\u67e5\u8be2\uff0c\u6570\u636e\u91cf\u6bd4\u8f83\u5927\uff0c\u5185\u7f51\u90e8\u7f72\u3002 \u76ee\u524d\u4e86\u89e3\u7684\u6a21\u5f0f\u6709\u4e24\u79cd\uff1a1 \u3001Replication set;2 \u3001sharding \u3002\u60f3\u95ee\u4e0b\u6709\u5b9e\u9645\u751f\u4ea7\u7ecf\u9a8c\u7684\u5927\u4f6c\u662f\u600e\u4e48\u6743\u8861\u9009\u62e9\u7684\u3002\u611f\u8c22\uff01\uff01\uff01<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>15<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3958140\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dilu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             2 \u8e29\u8fc7\u5751\uff0c\u5199\u5165\u6027\u80fd\u5927\u5e45\u5ea6\u4e0b\u964d\uff0c\u4ece\u6bcf\u79d2 5w+\u964d\u5230 k \u7ea7\u522b\uff0c\u4e5f\u53ef\u80fd\u662f\u6211\u4eec\u73a9\u4e0d\u8f6c\u5427<\/p>\n<p>\u4e5f\u4e0d\u662f dalao\uff0c\u53ea\u80fd\u8bf4\u4e0d\u7ba1\u7528\u5565\uff0c\u5148\u538b\u6d4b\u4e00\u4e0b\u770b\u770b\u80fd\u5426\u8fbe\u5230\u4f60\u7684\u6027\u80fd\u8981\u6c42                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3958141\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : haosamax <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @dilu \u5199\u5165\u6027\u80fd\u600e\u4e48\u65ad\u5d16\u5f0f\u4e0b\u964d\u4e86\uff0c\u662f\u6570\u636e\u91cf\u592a\u591a\u4e86\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3958142\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dilu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @haosamax \u5206\u7247\u4e4b\u540e\uff0cMongoDB \u5bf9\u7f51\u7edc\u7684\u4f9d\u8d56\u8f83\u9ad8\uff0c\u6211\u4eec\u538b\u6d4b\u673a\u5668\u4e0d\u5728\u540c\u4e00\u4e2a\u673a\u623f\u53ea\u80fd\u8d70\u516c\u7f51\uff0c\u4f30\u8ba1\u8fd9\u662f\u4e2a\u4e3b\u8981\u539f\u56e0\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3958143\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : limboMu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u9996\u5148\u8981\u5bf9\u4f60\u7684\u9700\u6c42\u6709\u4e2a\u8ba4\u8bc6\uff0c\u63d2\u5165\u9891\u7387\u662f\u591a\u5c11\uff0c\u67e5\u8be2\u9891\u7387\u662f\u591a\u5c11\u3002\u5982\u679c\u662f\u63d2\u5165\u901f\u7387\u6bd4\u8f83\u6162\uff0c\u67e5\u8be2\u6bd4\u8f83\u591a\uff0c\u53ef\u4ee5\u7528 1.\u7528 2 \u7684\u573a\u666f\u662f\u6570\u636e\u91cf\u7279\u522b\u5de8\u5927\uff0c\u5355\u673a\u7684\u67e5\u8be2\u6548\u7387\u8ddf\u4e0d\u4e0a\u6216\u8005\u4f60\u7684\u63d2\u5165\u9891\u7387\u6bd4\u8f83\u5feb\u6216\u8005\u5355\u673a\u7684\u63d2\u5165\u6548\u7387\u8ddf\u4e0d\u4e0a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3958144\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : haosamax <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @dilu <br \/>@limboMu <br \/>\u611f\u8c22\u4e24\u4f4d\uff01\u4e4b\u524d\u8fd9\u4e2a\u62a5\u6587\u662f\u5b58\u5728\u6570\u636e\u5e93\u7684 blob \u7c7b\u578b\u7684\u5b57\u6bb5\u91cc\uff0c\u5360\u8d44\u6e90\u592a\u591a\u4e86\uff0c\u4e0a\u8fb9\u8bf4\u79fb\u5230 MongoDB \u91cc\uff0c\u63d2\u5165\u3001\u67e5\u8be2\u9891\u7387\u90fd\u4e0d\u7b97\u9ad8\u3002\u8fd8\u6709 1 \u597d\u50cf\u4e0d\u592a\u597d\u6269\u5c55                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3958145\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Inside <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             replica set \u53ef\u4ee5\u5355\u72ec\u7528\uff0c\u4f46\u6bcf\u4e2a\u8282\u70b9\u4ecd\u7136\u8981\u5904\u7406\u5b8c\u6574\u7684\u6570\u636e\u96c6\uff0c\u5e94\u5bf9\u4e0d\u4e86\u6570\u636e\u96c6\u8d85\u8fc7\u5355\u8282\u70b9\u80fd\u529b\u7684\u60c5\u51b5\uff0c\u4e0d\u7b97\u7a81\u7834\u4e86\u5355\u8282\u70b9\u74f6\u9888\u3002<\/p>\n<p>sharding \u89e3\u51b3\u4e86\u6570\u636e\u96c6\u8fc7\u5927\u7684\u95ee\u9898\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3958146\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : libook <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             ReplicaSet \u7684\u76ee\u6807\u4e3b\u8981\u662f\u5bb9\u707e\u3002<br \/>\u5206\u7247\u7684\u76ee\u6807\u4e3b\u8981\u662f\u5206\u5e03\u5f0f\u5b58\u50a8\u548c\u8ba1\u7b97\u3002<\/p>\n<p>\u4e24\u8005\u4e0d\u662f\u4e8c\u9009\u4e00\u7684\u5173\u7cfb\u3002<\/p>\n<p>\u6309\u7167\u4f60\u7684\u9700\u6c42\u6765\u770b\uff0c\u4e3b\u8981\u662f\u8981\u5206\u7247\uff0c\u4f46\u5982\u679c\u6709\u53ef\u9760\u6027\u8981\u6c42\uff0cReplicaSet \u4e5f\u662f\u514d\u4e0d\u4e86\u7684\u3002<\/p>\n<p>\u5206\u7247\u7684\u5751\u5f88\u591a\uff0c\u9700\u8981\u8f83\u9ad8\u7684\u719f\u7ec3\u7a0b\u5ea6\u624d\u80fd\u4fdd\u8bc1\u5408\u7406\u5e94\u7528\uff0c\u867d\u597d\u591a\u505a\u5b9e\u9a8c\u3002<\/p>\n<p>\u53e6\u5916\u4e0d\u7ba1\u600e\u4e48\u8bf4\uff0cMongoDB \u90fd\u662f\u5b9e\u65f6\u4e1a\u52a1\u7528\u7684\u6570\u636e\u5e93\uff0c\u770b\u4f60\u7684\u9700\u6c42\u662f\u5426\u9002\u5408\uff1b\u5982\u679c\u9700\u6c42\u66f4\u50cf\u65e5\u5fd7\u50a8\u5b58\u548c\u5206\u6790\uff0c\u53ef\u4ee5\u8003\u8651\u5982 ELK \u4e4b\u7c7b\u7684\u6846\u67b6\uff1b\u5982\u679c\u91cf\u6781\u5927\uff0c\u4e14\u6709\u6e05\u6d17\u3001\u4ed3\u5e93\u548c\u66f4\u590d\u6742\u7684\u7edf\u5206\u9700\u6c42\uff0c\u53ef\u80fd\u8981\u8003\u8651\u4e00\u4e9b\u4e3b\u6d41\u7684\u5927\u6570\u636e\u6280\u672f\u6808\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3958147\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : haosamax <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Inside \u662f\u7684\u3002\u4f30\u8ba1\u540e\u9762\u4f1a\u632a\u8d70\u4e00\u90e8\u5206\u5386\u53f2\u6570\u636e\uff0csharding \u641e\u8d77\u6765\u6709\u70b9\u9ebb\u70e6                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3958148\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Mithril <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u642d\u8f66\u95ee\u4e0b\uff0c\u4f60\u4eec\u7528 MongoDB \u7684\u6709\u6ca1\u6709\u8003\u8651\u8fc7 License \u95ee\u9898\u3002\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3958149\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : haosamax <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @libook \u60a8\u8bf4\u7684\u5bf9\u3002\u76ee\u524d\u4e1a\u52a1\uff1a\u5b58\u50a8\u5f02\u6b65\u62a5\u6587\uff0c\u540e\u9762\u5b9a\u65f6\u4efb\u52a1\u67e5\u62a5\u6587\u8c03\u63a5\u53e3\uff0c\u540e\u671f\u91cf\u5927\u4e86\uff0c\u53ef\u80fd\u4f1a\u6e05\u7406\u5386\u53f2\u6570\u636e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3958150\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : laminux29 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Mithril <\/p>\n<p>MongoDB \u81ea\u5df1\u5c31\u662f\u4e2a\u6d41\u6c13\uff0c\u65e9\u671f 10gen \u4e3a\u4e86\u62c9\u6295\u8d44\uff0c\u6545\u610f\u628a\u670d\u52a1\u7aef\u5199\u7b56\u7565\u9ed8\u8ba4\u503c\u8bbe\u7f6e\u4e3a\u5148\u54cd\u5e94\u843d\u5730\u6210\u529f\u518d\u8fdb\u884c\u843d\u5730 + \u843d\u5730\u5931\u8d25\u5c31\u4e22\u5f03\u6570\u636e\uff0c\u6765\u63d0\u9ad8\u8dd1\u5206\u5438\u5f15\u6295\u8d44\u3002<\/p>\n<p>\u6240\u4ee5\u5728\u56fd\u5185\u7528\uff0c\u4e0d\u7528\u7ba1\u5b83 License\uff0c\u9664\u975e\u505a\u56fd\u9645\u5316\uff0c\u90a3\u5c31\u8981\u8003\u8651\u4e00\u4e0b\u4e86\u3002\u6211\u731c\u6d4b\u540e\u671f 10gen \u53ef\u80fd\u4f1a\u8d70 Oracle \u8fd9\u79cd 1 \u4e2a\u7801\u519c+10 \u4e2a\u6cd5\u52a1\u7684\u914d\u7f6e\u6765\u635e\u94b1\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3958151\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : haosamax <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @laminux29 \u6da8\u77e5\u8bc6\u4e86\uff0c\u8fd8\u6709\u8fd9\u5b97\u64cd\u4f5c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3958152\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : libook <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Mithril <br \/>\u53ef\u4ee5\u5177\u4f53\u63cf\u8ff0\u4e00\u4e0b\u62c5\u5fc3 License \u7684\u54ea\u4e9b\u95ee\u9898\u3002<\/p>\n<p>https:\/\/www.v2ex.com\/t\/630841<br \/>SSPL \u8ddf\u4f7f\u7528\u8005\u6ca1\u6709\u5565\u5173\u7cfb\uff0c\u662f\u9488\u5bf9\u4f38\u624b\u515a\u4e91\u5382\u5546\u7684\uff0c\u6bd4\u5982\u4e91\u5382\u5546\u65e9\u5e74\u62ff MongoDB \u7684\u4ee3\u7801\u8fdb\u884c\u5927\u91cf\u4fee\u6539\u548c\u4f18\u5316\uff0c\u505a\u6210\u81ea\u5df1\u7684\u670d\u52a1\u8d5a\u94b1\uff0c\u6e90\u7801\u53c8\u4e0d\u56de\u9988\u7ed9 MongoDB \u793e\u533a\uff0c\u8fd9\u79cd\u884c\u4e3a\u5bf9\u5f00\u6e90\u793e\u533a\u7684\u53d1\u5c55\u6709\u5f88\u4e0d\u597d\u7684\u5f71\u54cd\u3002<br \/>\u76ee\u524d\u5982\u679c\u4f60\u4e0d\u662f\u5c06 MongoDB \u672c\u8eab\u4f5c\u4e3a\u670d\u52a1\u8fdb\u884c\u51fa\u552e\u7684\u8bdd\uff0c\u662f\u4e0d\u53d7 SSPL \u7684\u5f71\u54cd\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3958153\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : libook <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @haosamax \u770b\u4f60\u7684\u63cf\u8ff0\uff0c\u66f4\u50cf\u662f\u6d88\u606f\u961f\u5217\u3002<\/p>\n<p>\u5982\u679c\u4f60\u662f\u5e0c\u671b\u628a\u4efb\u52a1\u5f02\u6b65\u5316\uff1b\u5373\u53d7\u5230\u8bf7\u6c42\u4e0d\u9a6c\u4e0a\u5904\u7406\uff0c\u4e0b\u6e38\u96c6\u7fa4\u5f02\u6b65\u5904\u7406\u8bf7\u6c42\uff1b\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u4e00\u4e9b\u6d88\u606f\u961f\u5217\u65b9\u6848\u3002\u6d88\u606f\u961f\u5217\u53ef\u4ee5\u4f5c\u4e3a\u4e00\u4e2a\u7f13\u51b2\u533a\uff0c\u5bf9\u4e1a\u52a1\u96c6\u7fa4\u7684\u8d1f\u8f7d\u8fdb\u884c\u524a\u5cf0\u586b\u8c37\uff0c\u4e0d\u4f1a\u65f6\u800c 200%\u8d1f\u8f7d\u3001\u65f6\u800c 50%\u8d1f\u8f7d\uff0c\u800c\u662f\u5300\u901f 100%\u8d1f\u8f7d\u8fd0\u884c\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3958154\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : up101 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             RS \u548c sharding \u7ed3\u5408\u6765\u505a\u7684\u8bdd\uff0c\u600e\u4e48\u8bbe\u8ba1\u96c6\u7fa4\u67b6\u6784\u6bd4\u8f83\u5408\u9002\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>[MongoDB \u96c6\u7fa4\u6a21\u5f0f] \u9879\u76ee&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\/182087"}],"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=182087"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/182087\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=182087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=182087"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=182087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}