Derek Chen-Becker
2012-10-08 17:03:57 UTC
I've looked at https://jira.mongodb.org/browse/SERVER-2487 and we're in a
similar situation. Part of our sharding key is a timestamp which works fine
for use because the rest of the key makes write balance out across the
cluster. However, we're at a point now where we need to archive off older
data, and our shards are starting to get out of balance in terms of disk
usage because while chunks counts are balanced, some of those chunks are
empty and will never again hold data. I understand why it would be
difficult to automate this, but I'm wondering if there's any harm in
removing chunks manually.
Essentially, can I stop balancing on the cluster, delete some of the empty
chunks from the config DB, then restart balancing? Would I need to restart
mongos on the servers as well? Is this a fantastically dangerous thing to
attempt?
Thanks,
Derek
similar situation. Part of our sharding key is a timestamp which works fine
for use because the rest of the key makes write balance out across the
cluster. However, we're at a point now where we need to archive off older
data, and our shards are starting to get out of balance in terms of disk
usage because while chunks counts are balanced, some of those chunks are
empty and will never again hold data. I understand why it would be
difficult to automate this, but I'm wondering if there's any harm in
removing chunks manually.
Essentially, can I stop balancing on the cluster, delete some of the empty
chunks from the config DB, then restart balancing? Would I need to restart
mongos on the servers as well? Is this a fantastically dangerous thing to
attempt?
Thanks,
Derek
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongodb-user-/***@public.gmane.org
To unsubscribe from this group, send email to
mongodb-user+unsubscribe-/***@public.gmane.org
See also the IRC channel -- freenode.net#mongodb
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongodb-user-/***@public.gmane.org
To unsubscribe from this group, send email to
mongodb-user+unsubscribe-/***@public.gmane.org
See also the IRC channel -- freenode.net#mongodb