Questions tagged [wiredtiger]

A key/value database engine which is also part of mongo 3.0

wiredtiger logo

WiredTiger provides an ordered mapping from string keys to string values, columns support, transactions, async and bulk operations, custom collators, extractors and data sources.

See WiredTiger website

170 questions
2
votes
0 answers

MongoDB cannot start WiredTiger

Afer an automatic update on GKE, recreation of a pod with MongoDB image fails. Stack trace follows: 2019-09-23T09:13:30.430+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit…
gatteo
  • 1,382
  • 2
  • 10
  • 17
2
votes
0 answers

How can I create a capped collection by storageSize instead of dataSize?

Running MongoDB 4.0.4 on Debian GNU/Linux 9 (stretch), with a collection capped in size to 2.9TB with unlimited number of documents with the WiredTiger engine. { ... "size" : NumberLong(3113851252530), // <= ~2.9T "count" : 238059628, …
Percutio
  • 979
  • 7
  • 8
2
votes
1 answer

MongoDB WiredTiger error: WiredTiger.turtle: handle-open: open: operation not permitted

MongoDB was working beautifully for me for several months until I had an unexpected shutdown a week or two ago. Since then, I've been getting the error in the title that snowballs into an invalid argument, then a library panic, then some fatal…
2
votes
1 answer

Using Mongo Cache as a replacement for redis

Currently, i am writing data into redis which is reduced to mongo every 2 minutes. I am wondering if i can use Mongo Cache instead of redis here. This will save the cost of 2 dbs in production.Also,the mongodb page says : The WiredTiger cache…
Himanshu Gupta
  • 305
  • 3
  • 12
2
votes
3 answers

Error while Recovering a WiredTiger collection from a corrupt MongoDB installation

We have implemented MongoDB master-slave replication and database got deleted. We restored deleted files from Mongo data directory using extundelete command. Undelete Blog…
Sandip Pingle
  • 647
  • 2
  • 14
  • 37
2
votes
1 answer

Deleted a Mongodb data folder by accident on ext4, how to best recover data?

What's the best/fastest/safest way to recover deleted files from ext4 ? Specs: The disk is 1TB SSHD (hibrid HDD + SSD), also the partition is encrypted with LUKS Encryption (version 1) Mongodb is using WiredTiger as a storage engine. Also if I…
Stefan Rogin
  • 1,499
  • 3
  • 25
  • 41
2
votes
0 answers

Copy database to another server in mongodb

I am using Robomongo in my local machine. Robomongo is using wired tiger storage engine to store my dbs. Now when I want to copy my database to a remote machine I am using : db.copyDatabase("localDBName","remoteDBName","localMachineAddress") The…
Amriteya
  • 1,118
  • 15
  • 37
2
votes
1 answer

How to Upgrade Mongo DB engine mmapv1 to Wired trigger?

I am having mongodb 3.0.7 with mmapv1 engine. Now I want to upgrade to Wired trigger. My operating system (OS) is Windows server R2 2012. can any one provide me the detailed steps for upgrading Mongo DB Engine? Thanks in advance :-)
2
votes
0 answers

Mongodb findAndModify inconsistent and usually slow

I'm running a findAndModify query on a collection of about 2.4MM records, all of the fields in the query are indexed however the command runs very inconsistently, the log shows this takes anywhere from < 0.1 to 5 seconds to execute. Over the last 4…
Tom Vaugn
  • 21
  • 2
2
votes
0 answers

Internal data storage in MongoDB with WiredTiger

I've read that MongoDB, with its new Storage Engine WiredTiger, now stores the data in BTrees and i wanna know what they meant by that. Is it any of the following? I've seen a webinar where they talked about pages of the data files and they arranged…
peporro
  • 83
  • 7
2
votes
1 answer

How do I have Mongo 3.0 / WiredTiger load my whole database into RAM?

I have a static database (that will never even receive a write) of around 5 GB, while my server RAM is 30 GB. I'm focusing on returning complicated aggregations to the user as fast as possible, so I don't see a reason why I shouldn't have (a) the…
collisionTwo
  • 899
  • 2
  • 12
  • 18
2
votes
0 answers

MongoDB Performance with Upsert

We are trying to make a "real time" statistics part for our application, and we want to use MongoDB. So, to do this, I basically imagine a DB named storage. In this db, I create a statistics collection. And I store my data like this : { "_id" :…
1
vote
1 answer

Show storage engine config in mongosh

I've created a collection (in Java) with storage engine options where the block compressor should be zstd. How can I verify that .storageEngineOptions() worked as expected? Is it possible through mongosh?
Jonas Byström
  • 25,316
  • 23
  • 100
  • 147
1
vote
0 answers

How does MongoDB WiredTiger store files

MongoDB WiredTiger offers LSMT for storage. Great, so in memory it maintains a balanced search tree which is flushed to disk depending on configuration (time or size). But q is, how is the data stored on disk? LSMT in Cassandra/HBase are stored as…
Apurva Singh
  • 4,534
  • 4
  • 33
  • 42
1
vote
0 answers

MongoDB repair issue

Repair command sudo mongod --dbpath /var/lib/mongodb --repair {"t":{"$date":"2022-03-20T18:05:11.071+00:00"},"s":"W", "c":"STORAGE", "id":22350, "ctx":"initandlisten","msg":"Data file is missing. Attempting to drop and re-create the…