moveRange() not working

In order to update the zone you can use updateZoneKeyRange for each one of the collection.

The steps would be:

  1. stop the balancer
  2. remove the East zone for the collection.
  3. Associate the former “East” zone to “West”
  4. Enable the balancer

Here an example:

sh.stopBalancer()
sh.updateZoneKeyRange("METRIC_RAW_DATA.OPERATIONAL_METRIC",{ containerKey: 9000000, eventId: MinKey() }, {containerKey: 10000000, eventId: MinKey() },null)
sh.updateZoneKeyRange("METRIC_RAW_DATA.OPERATIONAL_METRIC",{ containerKey: 9000000, eventId: MinKey() }, {containerKey: 10000000, eventId: MinKey() },"West")
sh.startBalancer()

Please test these steps in your test environment before.

Additional note, I notice you are using 6.0. This version will be EOL in the end of July 2025.

We strongly reccomend to upgrade to a supported version before that date, ideally you should upgrade to 8.0 that comes with several new functionalities and performance improvements.