In order to update the zone you can use updateZoneKeyRange for each one of the collection.
The steps would be:
- stop the balancer
- remove the East zone for the collection.
- Associate the former “East” zone to “West”
- 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.