Dormeto

Docs

Onboarding

A discovered candidate becomes a managed workload: Dormeto tags its backends and puts its waker beside your route.

3 min read

You start it from Discovery or the CLI; the settings are Workloads’. Each timeline replays one onboarding.

Amazon Web ServicesAWS

Elapsed

  1. the managerYou onboard a candidate from Discovery, or with dormeto aws workloads onboard. The manager’s operation starts.
  2. the managerthe routerfind router: the account and region’s router. The manager installs one where there is none.
  3. the managerthe routeryour load balancerpreview: the router reads your load balancer’s rules and names what it would change.
  4. the managerthe routeryour load balanceronboard: the router tags the backends and adds the waker’s target group. Its rule goes just before yours.
  5. the managerthe routerverify: the manager asks the router’s status. The route reaches your application, with no issue.
  6. the managercandidate: the candidate is Managed, its workload awake. Its idle window starts at the next check.
Its seconds are an example: a router’s install takes longer. Your requests reach your application all along.

Google Cloud

Elapsed

  1. the managerYou onboard from a connected manager’s Discovery, or with dormeto gcp workloads onboard as yourself.
  2. the managerthe routerfind router: the project and region’s router, which the CLI installed.
  3. the managerthe routeryour URL mappreview: the router’s dry run names every reason it refuses, or what it would tag.
  4. the managerthe command accountyour VMstag: the command account binds dormeto=managed to the VMs, groups and Cloud SQL companions.
  5. the managerthe routeryour URL maponboard: the router adds the waker’s backend service, and the route /_dormeto/* to your URL map.
  6. the managerthe routerverify: the manager asks the router’s status. It names your backend service, with no issue.
  7. the managercandidate: the candidate is Managed, its workload awake. Its idle window starts at the next check.
Its seconds are an example, from the manager. Your requests reach your application all along.

The steps

  1. The manager runs an operation, step by step, and the dashboard shows each step.
  2. The manager finds the router of the workload’s account or project, and region.
  3. The router previews the workload: its dry run names every reason it refuses.
  4. The router writes what the workload needs, and records it in its state.
  5. The manager asks the router’s status: the route must reach the application, with no issue.
  6. The manager marks the candidate Managed. The workload is awake; its idle window starts at the next check.

Amazon Web ServicesAWS

  • The manager installs the router where the account and region have none, as the command role.
  • The router’s onboarder tags the backends dormeto:workload and adds the waker’s target group.
  • Its rule goes just before yours, with the same conditions. Its forward sends 1 to your target group, 0 to the waker’s.
  • The router repairs what your tools remove of it: Workloads.

Google Cloud

  • The CLI installs the router; the manager onboards on the routers it finds.
  • The command account binds dormeto=managed to the VMs, groups and Cloud SQL companions. The CLI does it as you.
  • The router adds the waker’s backend service, and the route /_dormeto/* to your URL map for good.
  • A refusal after the tags removes this operation’s bindings.

Parts and permissions

The manager acts in your accounts and projects only as the command role.

ComponentAWSGoogle CloudWhat it does
The operationAWS Step FunctionsStep Functions, in the managerAWS Step FunctionsStep Functions, in the managerRuns the steps, in order.
The command roleAWS IAMDmtCommandRoleIdentity and Access ManagementThe command accountInstalls the router, or binds the tag.
The onboardingAWS LambdaLambda, as the onboarder roleCloud RunCloud Run, as dormetoRouterAdds the waker and Dormeto’s route.
The routeElastic Load BalancingYour listener rulesCloud Load BalancingYour URL mapGets the waker beside your route.
Its stateAmazon DynamoDBDynamoDBFirestoreFirestoreRecords the workload and its settings.
The managerAmazon EventBridgeIts event busAmazon EventBridgeIts event bus, with credentials from its APITakes each change of state (Architecture).

What can go wrong

  • The preview refuses a workload that cannot nap, naming each reason: Eligibility.
  • A failed onboarding is undone, and the operation says which step failed.
  • Terraform that writes these resources needs to ignore what changes: Workloads.
  • An account or project without access refuses onboarding: Access.