See where a project runs
- The Projects list has a Region column with each project’s flag and region id.
- A project’s Scaling tab has a Region section at the bottom. It shows the region’s flag, name and id, and the domain its apps are served on, for example
apps on *.apps.eu.example.com.
Choose a region for a new project
When you create a project in the panel with New project, the form has a Region field. It lists the regions that take new projects, with the default one picked. Pick another one if you like. A project thatatoll deploy creates goes to the default region. The CLI has no option for the region. To run it somewhere else, move it after the first deployment.
Hosts in a region
Each region serves its Ktor apps on its own domain. A project in a region whose apps domain isapps.eu.example.com gets:
my-app--<module>.apps.eu.example.comfor every Ktor module;my-app.apps.eu.example.comfor the primary module.
my-app-web.atoll.app, in every region. Outside the home region, the deployment log says where each Ktor module goes:
Move a project
Moving a project rolls out its live production deployment again in the new region. The old region keeps serving until the new rollout is live. Then the platform removes the project’s apps from the old region.1
Check that nothing blocks the move
A project can’t move while:
- it has custom domains, since they point at its current region. Remove them first, and add them again after the move.
- it is connected to data stores, since they run in its current region. Disconnect them first.
- a deployment of it is running. Wait for it to finish, or cancel it.
2
Pick the new region
Open the project’s Scaling tab. In the Region section, pick a region under Move to and click Move….
3
Confirm
The dialog says what happens. Click Move project.
- If the project has a live production deployment, the platform starts a new production deployment of the same version in the new region. It reuses the built images when it can, and builds them again when it can’t. The new deployment shows up on the Deployments tab like any other.
- While it rolls out, the Region section says “Moving here”, and the apps in the old region keep serving.
- Once it is live, the platform removes the project’s apps from the old region, previews included. A preview runs in the new region the next time it deploys.
- If the project has nothing live, the move only records the new region. The next deployment goes there.
Move a project with the API
Move a project with the API
There is no CLI command for regions. With a personal access token:The move answers the project’s new region and, if the project had anything live, the deployment that rolls it out there. A blocked move answers HTTP 409 with the reason.
Regions and other settings
- Scaling settings stay the same when a project moves.
- Custom domains of a project’s Ktor servers point at its region. The panel shows the DNS records to create for it.
- Operators add regions and choose the default one. See Running the platform on Kubernetes.