程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Python full stack series 179 single host uses docker to build Mongo split cluster 2

編輯:Python

explain

Analyze the container cluster , The problem is that the storage space is too large ( And stand alone Mongo contrast ). The content involves a lot , So I wrote it step by step according to the idea of dealing with problems .

Content

For the same dataset

Status quo of cluster space :

Status of stand-alone version :

Configure the server , Neither copy nor arbitration counts , Just two pieces add up , The amount of data is 2.3G, Almost stand-alone 2.4 times .

1 Compact

About Compact You can refer to This article , Because it has happened before , So I wonder if it's because Balance The physical space caused by post opening is not released .

Mongos Can't execute Compact operation , To go to the master node of the corresponding partition

docker exec -it shardsvr10 bash

  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved