Example 1: You can stop all instances and wait for sycn/migration to complete, and start all instances.
Example 2: (which is much better IMO) deploy the new version, but keep the older versions running. Sync/migrate one-by-one and start the new version when ready.