how-to
Move an environment to another location
An environment can run in another zone. It keeps its name, its resources and its short addresses. Glenr checks the move first, keeps the old copy for 7 days by default (0 to 30) so you can move back, and then erases it. This page covers an environment with no database; Glenr staff run a move of an environment that has one.
Open the card
Open the environment, then Settings. The card Move to another location reads Run this environment in another location. It keeps its name, its resources and its short addresses. A move needs the Engineer role in the cell or above. A Viewer sees You have Viewer access to this cell. instead of the settings page.
Choose where to move it
Choose a location under Move to. The list shows the locations your plan runs on, except the one the environment is in. Glenr Cloud runs in Helsinki, Finland and Warsaw, Poland. Glenr Go runs in Helsinki, Finland only, so the card of a Glenr Go environment has nowhere to go and reads No other location is available to this organisation.
Keep the old copy for (days) is a whole number from 0 to 30; empty means 7. The old location keeps a stopped copy for that long and then erases it. You can move back until then. With 0 days the old copy is erased as soon as the move completes and there is no move back, and the card asks you to type the environment's name to confirm.
Each change to the form reruns the checks. The Move button stays disabled until they pass, and every refusal is shown with its sentence.
Read what the checks refuse
| Check | The card says |
|---|---|
| The environment is empty or not ready | {env} has nothing in it to move. Or it is not in a ready state: wait for it, or retry it first. |
| Images | … run images that no build of {env} produced, so they cannot be carried to another zone. Redeploy them from a build first. |
| The target | {env} already runs in {place}. Choose a different zone. A target that is not active is refused until it is active. |
| Capabilities | {place} does not offer …, which {env}'s resources need. The Warsaw zone does not run the workload profile S1; see Supported Score fields. |
| The cell is pinned to a zone | This cell is pinned to {zone}. Change the cell's zone to {zone} first; a move does not change the pin. |
| Custom domains | Each custom domain needs 2 certificates, 1 on the fallback route. The certificate authority allows 5 per name in 170 hours, and the refusal names the certificates counted and when to retry. |
| Short addresses | {place} cannot serve the short names of … yet, so they would stop answering. Choose another zone. |
| Another move or a retained copy | {env} is moving now. One move runs per organisation; wait for it to reach retention. Or {env} still keeps a retained copy on {zone} until {date}. Move back, or use "Erase retained copy now", before a new move. |
Follow the move
Choose Move. The card shows Step N of 8 and a line for the state. The numbers can skip a step.
| Step | Meaning |
|---|---|
| 1 | Checking that the move can run. |
| 2 | Pairing the old zone with the new one. |
| 3 | Copying this environment to the new zone. The old zone still serves it. |
| 4 | Testing the new zone before the switch. The old zone still serves it. |
| 6 | The new zone serves this environment, or the card names the hosts it waits for DNS on. |
| 7 | The new zone serves this environment. The old zone holds a stopped copy until the date shown. |
| 8 | The old copy was erased and the card gives the date. |
The environment keeps its id, its namespace and its short names. One DNS record per address points it at the new zone, and clients can still reach the old zone for up to 300 seconds after the switch. An address that is specific to the old zone stops answering. The old copy is not billed.
While the move runs, a change is refused with {env} is moving to {place} ({state}). You cannot … it until the move ends; cancel the move to do it now. A deploy, a secret change or a scale is refused in steps 4 to 6 and restarts the copy in step 3. From step 6 the refusal says the move can no longer be cancelled and names retention as the time you can retry. A push is deferred in steps 4 to 6. A delete is refused in steps 1 to 6.
Cancel, move back or erase the old copy
| Action | When | What it does |
|---|---|---|
| Cancel the move | Steps 1 to 4 | The old zone keeps serving and the new copy is deleted. |
| Move back | Step 7, while the old copy is kept | Runs the move in the other direction, with its own checks. The card shows Move back to, then the name of the old location, with the button Move back. |
| Erase retained copy now | Step 7, about 6 minutes after the switch | Erases the stopped copy at once. Move back is no longer possible. You type the environment's name to confirm. |
From step 6 a move cannot be cancelled; move back once it reaches step 7. The old copy is also erased when its days run out.
