During the startup mongod seems always go through some recovery (?) even if the cluster has benn gracefully shut down with pause=true.
At some point during startup …
…
{“t”:{“$date”:“2021-07-15T11:07:03.058+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“initandlisten”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1626347223:58084][1:0x7fa3f8703040], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 15 through 18”}}
{“t”:{“$date”:“2021-07-15T11:07:03.058+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“initandlisten”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1626347223:58568][1:0x7fa3f8703040], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 16 through 18”}}
{“t”:{“$date”:“2021-07-15T11:07:03.060+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“initandlisten”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1626347223:60113][1:0x7fa3f8703040], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 17 through 18”}}
{“t”:{“$date”:“2021-07-15T11:07:03.181+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“initandlisten”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1626347223:181324][1:0x7fa3f8703040], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 18 through 18”}}
{“t”:{“$date”:“2021-07-15T11:07:09.899+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“initandlisten”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1626347229:899390][1:0x7fa3f8703040], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Main recovery loop: starting at 15/256 to 18/256”}}
{“t”:{“$date”:“2021-07-15T11:07:09.901+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“initandlisten”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1626347229:901474][1:0x7fa3f8703040], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 15 through 18”}}
{“t”:{“$date”:“2021-07-15T11:07:10.095+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“initandlisten”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1626347230:95964][1:0x7fa3f8703040], file:sizeStorer.wt, txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 16 through 18”}}
{“t”:{“$date”:“2021-07-15T11:07:10.098+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“initandlisten”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1626347230:97969][1:0x7fa3f8703040], file:sizeStorer.wt, txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 17 through 18”}}
{“t”:{“$date”:“2021-07-15T11:07:10.183+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“initandlisten”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1626347230:183817][1:0x7fa3f8703040], file:sizeStorer.wt, txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 18 through 18”}}
{“t”:{“$date”:“2021-07-15T11:07:10.253+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“initandlisten”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1626347230:253942][1:0x7fa3f8703040], file:sizeStorer.wt, txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global recovery timestamp: (1626342751, 1)”}}
{“t”:{“$date”:“2021-07-15T11:07:10.254+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“initandlisten”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1626347230:254031][1:0x7fa3f8703040], file:sizeStorer.wt, txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global oldest timestamp: (1626342751, 1)”}}
mongodb seems to load >>all<< the data in to memory - is this the Memory Engine loading all the data ? And how can one prevent this ?
{“t”:{“$date”:“2021-07-15T11:20:53.485+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“initandlisten”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1626348053:485577][1:0x7fa3f8703040], file:index-91936-5786503028257476284.wt, WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] Checkpoint has been running for 92 seconds and wrote: 5000 pages (2 MB)”}}
{“t”:{“$date”:“2021-07-15T11:20:57.476+00:00”},“s”:“I”, “c”:“STORAGE”, “id”:22430, “ctx”:“initandlisten”,“msg”:“WiredTiger message”,“attr”:{“message”:“[1626348057:476567][1:0x7fa3f8703040], file:index-83900-5786503028257476284.wt, WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] Checkpoint has been running for 96 seconds and wrote: 10000 pages (4 MB)”}}
…
Thanks
John