Mongodb
Lowy Shin edited this page Jul 14, 2020
·
9 revisions
-
Limitance
- Sort Operations : 32MB / order
- Aggregation pipeline memory : 100MB
- Members of a Replica Set : 50 members
- Voting Members of a Replica Set : 7 members
- Auto-Created Oplog : 50GB
- Sharding Existing Collection Data Size : see link table of below
- Maximum Number of Documents in a Capped Collection : 2^32 documents
- The maximum BSON document size is 16 megabytes.
- No more than 100 levels of nesting for BSON documents.
- Shard Key Size : 512bytes
- Number of Indexed Fields in a Compound Index : 32 fields
- Index Key Limit : 1024 bytes
- Index per collection : 64 indexes.
- Write Command Batch Limit Size = 100,000 writes (V3.6)
- Session idle timeout : 30 Min
- The maximum length of the collection namespace, which includes the database name, the dot (.) separator, and the collection name (i.e. .), is 120 bytes.
- 4095 code point each line by Cli
-
Recommend Memory
- 50% of (RAM - 1 GB), or 256 MB.
- https://docs.mongodb.com/manual/administration/production-notes/#prod-notes-ram
-
RAID
- For optimal performance in terms of the storage layer, use disks backed by RAID-10. RAID-5 and RAID-6 do not typically provide sufficient performance to support a MongoDB deployment.
- https://docs.mongodb.com/manual/administration/production-notes/#raid
-
Using WiredTiger Storage Engine(V3 ~)
- Reduced lock range (DB Lock -> Row Lock)
- Can limit cachesizeGB. (MMAP is fully used memory until dead process)
- Auto defragment physical data(Auto compaction fragment block)
- Separate index and data store.
- Ref(ja) - https://qiita.com/oshou/items/03f8dfcedbd63e2a8353
-
OS Configuration
- Set THP(Transparent Huge Page) OFF
-
Tips
- know-how by experience(ja) : https://www.infoq.com/jp/articles/Starting-With-MongoDB/
-
performance check
- Official best practice
- Mongodb insert performance test
- best performance at 100 / 100 (session / goroutine) on AWS t2.2xlarge
- Auto generate mongo-QL aggregate editor : https://studio3t.com/
- KB wiki is multi-lingual writing. If you want translate to your language, use google translate!
- Go to giip service Page : http://giipweb.littleworld.net
- Documentation : https://github.com/LowyShin/giip/wiki
- Sample automation scripts : https://github.com/LowyShin/giip/tree/gh-pages/giipscripts
See more : https://github.com/LowyShin/giip/wiki
- Token exchanges : https://tokenjar.io/GIIP
- Token exchanges manual : https://www.slideshare.net/LowyShin/giipentokenjario-giip-token-trade-manual-20190416-141149519
- GIIP Token Etherscan : https://etherscan.io/token/0x33be026eff080859eb9dfff6029232b094732c52
If you want get GIIP, contact us any time!
- LowyWorkEnv : https://github.com/LowyShin/Lowyworkenv/wiki
- CLoud RDBMS比較
- MachineLearning
- SQL Server
- ORACLE
- MySQL
- mariadh
- Redis with MySQL
- Mongodb
- Apache-Drill
- A5MK2-MultiDBMSTool
- BI
- Referrals
- Juliaの自動微分パッケージ Zygote の紹介
- color code table
- Canva - free Online Design tool
- vscode
- git(github)
- GoogleSheet
- UiPath(RPA)
- WinAutomation(official)
- Excel
- VNC
- VPN
- Note Tool
- Blog
- google news alert
- Online PDF to JPG
- LoadTest " putty
- Shell/bash
- crontab
- PowerShell
- Windows(DOS) batch
- Wscript/wsf
- AWS
- Azure
- File Sync(rsync, scp...)
- KnownPort(wikipedia)
- CentOS(Linux)
- Windows10
- Android