Dormeto

Docs

Router update

A router goes to a new version: its parts are replaced in order, its workloads untouched.

3 min read

The commands are on the CLI’s routers page; each version’s changes are on Releases. Each timeline replays one update.

Amazon Web ServicesAWS

Elapsed

  1. You run dormeto aws routers upgrade with the router’s name. It prints the plan, then asks.
  2. the manager’s APIThe manager’s API starts an upgrade-router operation.
  3. the managerfind router, lock router: one operation at a time on a router.
  4. the managerDmtCommandRolethe routerAs DmtCommandRole, it updates the router’s roles, table, queues, log groups and functions, in that order.
  5. your load balanceryour instancesMeanwhile, a visitor’s request reaches your instances as before: the operation changes no rule of yours.
  6. the managerthe manager’s tableregister router: the router’s new version goes in the manager’s table.
  7. the managerthe routerverify router: the controller answers with its new version.
Its seconds are an example: an operation’s time depends on the router’s parts.

Google Cloud

Elapsed

  1. You run dormeto gcp routers install again, with the new --version.
  2. The CLI tests each step’s permissions first, then plans only what differs.
  3. It prints its plan, and you confirm it.
  4. the router’s service accountIt updates the roles and the grants that the new version needs.
  5. the controllerIt deploys the controller and the waker again, on Cloud Run, from the new image.
  6. your load balanceryour VMsMeanwhile, a visitor’s request reaches your VMs as before: the install changes no URL map of yours.
  7. the controllerIt verifies that both services are ready and that the controller answers with the new version.
Its seconds are an example: a step’s time depends on Google’s.

The steps

  1. You start the update from the CLI, router by router.
  2. The CLI prints the plan and asks first; a dry run stops there.
  3. The router’s parts are replaced in order; its state, its workloads and their settings stay.
  4. Requests keep their route: nothing of your load balancer changes.
  5. The update ends on a check: the controller answers with its new version.
  6. A failed step stops the update and says why; run it again to go on.

Amazon Web ServicesAWS

  • dormeto aws routers upgrade starts the manager’s upgrade-router operation.
  • The operation acts as DmtCommandRole, in the router’s account and region.
  • It brings the router to the version the manager installs: Manager update.
  • Its EKS access entries and private clusters’ proxies follow, where it has some.

Google Cloud

  • dormeto gcp routers install --version updates it, as your gcloud account.
  • Cloud Run serves each service’s new revision once it is ready.
  • The roles and grants of the router’s service account change only where the new version needs it.
  • The router’s image comes from Dormeto’s registry: Router.

Parts and permissions

Each part acts with the role Roles names.

ComponentAWSGoogle CloudWhat it does
The updateAWS Step FunctionsThe manager’s operationdormeto gcp, your gcloud accountReplaces the router’s parts, in order.
Its identityAWS IAMDmtCommandRoleIdentity and Access ManagementYour permissionsChanges the router’s parts only.
The routerAWS LambdaLambda functions, from the manager’s releaseCloud RunCloud Run services, from Dormeto’s imageRuns the controller and the waker.
Its stateAmazon DynamoDBDynamoDBFirestoreFirestoreKept: workloads, settings and runs.

What can go wrong

MessageCauseFix
no_accessThe router’s account has no command role.Give the account its command role: Access.
Done: <steps>. Not done: <steps>. Run the same command again to continue.Google refused a step of the update.Run the same install again to finish the remaining steps.