0

I've done a migration from one replicaset to another. The OS and mongo version is the same 4.4.8 (maybe initial creation of prod03 was 4.0 or 4.2 with updates to 4.4.x).

Now I see substantial growth of index size in prod04. Number of objects is of course the same, but indexes take 8GB instead of 4GB (it's just an example below, total size of databases is 2TB, so the difference is rather big. Is it OK?

prod03:PRIMARY> db.stats()
{
        "db" : "opendata",
        "collections" : 13,
        "views" : 0,
        "objects" : 162730697,
        "avgObjSize" : 27.681305082838797,
        "dataSize" : 4504598070,
        "storageSize" : 2153705472,
        "indexes" : 23,
        "indexSize" : 4077555712,
        "totalSize" : 6231261184,
        "scaleFactor" : 1,
        "fsUsedSize" : 1647388274688,
        "fsTotalSize" : 1919164481536,
        "ok" : 1,
        "$clusterTime" : {
                "clusterTime" : Timestamp(1631525066, 1),
                "signature" : {
                        "hash" : BinData(0,"IYNpaFRarH6iT6nQ0kuzTf5uUTM="),
                        "keyId" : NumberLong("6954304405940207617")
                }
        },
        "operationTime" : Timestamp(1631525066, 1)
}

prod04:PRIMARY> db.stats()
{
        "db" : "opendata",
        "collections" : 13,
        "views" : 0,
        "objects" : 162730697,
        "avgObjSize" : 27.681305082838797,
        "dataSize" : 4504598070,
        "storageSize" : 2549465088,
        "indexes" : 23,
        "indexSize" : 7879938048,
        "totalSize" : 10429403136,
        "scaleFactor" : 1,
        "fsUsedSize" : 1806816964608,
        "fsTotalSize" : 1919164489728,
        "ok" : 1,
        "$clusterTime" : {
                "clusterTime" : Timestamp(1631524807, 1),
                "signature" : {
                        "hash" : BinData(0,"GJ6SlCuHZtg2yuboi8zaVP9fY88="),
                        "keyId" : NumberLong("7005131538547343365")
                }
        },
        "operationTime" : Timestamp(1631524807, 1)
}

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.