mongodb 3.2儲存目錄結構說明

來源:互聯網
上載者:User

標籤:

[[email protected] mongodb]# tree ./data./data|-- WiredTiger                         ||-- WiredTiger.lock                    ||-- WiredTiger.turtle                  |--引擎設定檔|-- WiredTiger.wt                      | |-- WiredTigerLAS.wt                   ||-- _mdb_catalog.wt                    |--所有集合的中繼資料資訊|-- diagnostic.data|   |-- metrics.2016-07-27T23-37-15Z-00000|   `-- metrics.interim|-- journal                            |--類似於redo log|   |-- WiredTigerLog.0000000001|   |-- WiredTigerPreplog.0000000001|   `-- WiredTigerPreplog.0000000002|-- local|   |-- collection-0--3645467719118758283.wt|   `-- index-1--3645467719118758283.wt|-- mongod.lock                       |-- sizeStorer.wt                      |--所有集合的容量資訊`-- storage.bson3 directories, 16 files[[email protected] mongodb]注_mdb_catalog.wt : 裡儲存了所有集合的中繼資料,包括集合對應的WT table名字,集合的建立選項,集合的索引資訊等,WT儲存引擎初始化時,會從_mdb_catalog.wt裡讀取所有的集合資訊,並載入元資訊到記憶體  sizeStorer.wt : 裡儲存所有集合的容量資訊,如文檔數、文檔總大小等,當插入、刪除、更新文檔時,這些資訊會先cache到記憶體,每操作1000次會刷盤一次;mongod進程crash可能導致sizeStorer.wt裡的資料與實際資訊不匹配,可通過validate()命令來重新掃描集合以訂正統計資訊

 

mongodb 3.2儲存目錄結構說明

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.