Skip to content

Investigate on-disk size of tables #1831

Open

Description

@danielmewes

@wojons has a cluster with the following interesting phenomenon:

A table with 1 shard, 2 replicas. ~2M documents. 2 secondary indexes.
On disk, the table takes 6.8 GB on the secondary, but 17 GB on the primary. Both primary and secondary had previously backfilled the complete table from a third node, and there have been no writes to the table since.

So somehow the same table takes a lot more space on the primary. We should investigate how that can happen.

@wojons mentioned some (OOM) crashes during the backfilling process, wonder if that might be related.

Activity

  1. wojons commented on Jan 8, 2014

    @wojons
    Contributor

    @danielmewes 17gb on primary and 6.8gb on secondray and indexes work on both nodes.

  2. danielmewes commented on Jan 8, 2014

    @danielmewes
    MemberAuthor

    Oh that way, right. I confused primary and secondary. Updated the original post.

  3. jdoliner commented on Jan 8, 2014

    @jdoliner
    Contributor

    Out of curiosity how do you know secondary indexes work on both nodes.

    On Tuesday, January 7, 2014, Daniel Mewes wrote:

    Oh that way, right. I confused primary and secondary. Updated the original
    post.

    —
    Reply to this email directly or view it on GitHubhttps://github.com//issues/1831#issuecomment-31804784
    .

  4. wojons commented on Jan 8, 2014

    @wojons
    Contributor

    @jdoliner,

    @danielmewes killed the master and then ran quries on the secondray

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions