Have you written custom balancers for sharding to balance chunks not using the balancer in MongoDB and would you please explain your use case that why you had to do it?
Have you written custom balancers for sharding to balance chunks not using the balancer
Share
There’s been a few cases I’ve managed where a custom balancing script has been temporarily useful, for example, where there’s a regional requirement for data on certain shards or if certain collections shouldn’t be balanced. There’s no real advantage in terms of speed (that’s limited by data distribution in disk and memory, mostly), in fact one reason to do custom balancing is to make it go slower.
It’s finicky to get right though – and generally not worth it long-term in my experience. There’s a balancer window you can use to do time-based balancing and, in the future, chunk tagging and the ability to mark collections as “don’t balance” will make custom scripts unnecessary for most other tasks.
https://jira.mongodb.org/browse/SERVER-2545
https://jira.mongodb.org/browse/SERVER-4621