Dormeto

Docs

Discovery

A discovery run reads your accounts and projects, read-only, and keeps the candidates it finds.

3 min read

The perimeter, the filters and the statuses are on Discovery. Each timeline replays one run.

Amazon Web ServicesAWS

Elapsed

  1. the manager’s schedulethe discovery runEvery hour, the manager’s schedule starts a discovery run. Run now starts one too.
  2. the discovery runThe run goes on only when the last one is older than the refresh period.
  3. the discovery runyour organizationIt lists the accounts of your organization in the perimeter.
  4. the discovery runDmtDiscoveryRoleyour load balancer rulesFor each account, it assumes DmtDiscoveryRole and reads its regions’ load balancer rules, read-only.
  5. the discovery runthe request metricsEach candidate’s idle share comes from the load balancer’s request metrics.
  6. the discovery runthe manager’s tableThe candidates that changed are written to the manager’s table.
  7. the discovery runThe run records its result and its lint, and releases its lock.
  8. the dashboardYou see the candidates in Discovery, by status.
Its seconds are an example: a run’s time depends on your accounts and regions.

Google Cloud

Elapsed

  1. the manager’s schedulethe discovery runEvery hour, the manager’s schedule starts a discovery run. Run now starts one too.
  2. the discovery runThe run goes on only when the last one is older than the refresh period.
  3. the discovery runWith a Google Cloud connection, it lists the projects of the connection’s scopes.
  4. the discovery runthe discovery accountyour URL mapsFor each project, it reads every region’s URL maps and backend services, as the discovery account.
  5. the discovery runthe request countsEach candidate’s idle share comes from Cloud Monitoring’s request counts: an estimate.
  6. the discovery runthe manager’s tableThe candidates that changed are written to the manager’s table.
  7. the discovery runThe run records its result and its lint, lists your projects’ routers and releases its lock.
  8. the dashboardYou see the candidates in Discovery, by status.
Its seconds are an example: a run’s time depends on your projects.

The steps

  1. The manager’s schedule starts a run every hour; Run now starts one at once.
  2. The run goes on only when due: its last run is older than the refresh period.
  3. The run plans: it lists the accounts and projects of the perimeter.
  4. The run reads each account or project in a step of its own, read-only.
  5. The run writes the candidates that changed, with their idle share.
  6. The run records its result and its lint, then releases its lock.
  7. The dashboard shows the candidates in Discovery, by status.

Amazon Web ServicesAWS

  • The accounts come from your organization, or your own account alone.
  • In each account, the run assumes DmtDiscoveryRole and reads its regions 8 at a time.
  • At most 20 accounts are read at once.
  • A rule’s change can refresh one account without a run: Discovery.

Google Cloud

  • The projects come from the connection’s scopes: an organization, folders or projects.
  • The manager reads them as its discovery account, through federation, with no key.
  • A candidate is a backend service a URL map names: Discovery.
  • A project that doesn’t answer keeps its last candidates.

Parts and permissions

The run only reads, with the role Roles names.

ComponentAWSGoogle CloudWhat it does
The scheduleAmazon EventBridge SchedulerEventBridge Scheduler, in the managerAmazon EventBridge SchedulerThe sameStarts a run, hourly.
The runAWS Step FunctionsStep Functions, in the managerAWS Step FunctionsThe samePlans, reads each account or project, finalizes.
The readerAWS IAMDmtDiscoveryRoleIdentity and Access ManagementThe discovery accountReads, never writes.
What it readsElastic Load BalancingRules, Amazon CloudWatchrequest metricsCloud Load BalancingURL maps, Cloud Monitoringrequest countsFinds candidates and their idle share.
Its resultAmazon DynamoDBThe manager’s tableAmazon DynamoDBThe sameKeeps the candidates and the runs.

What can go wrong

MessageCauseFix
no filter includes this accountNo filter of the perimeter can include the account.Add a filter that includes the account.
no Google Cloud connection: dormeto gcp connect makes oneThe manager has no Google Cloud connection.Run dormeto gcp connect from a host project.

A run that fails is tried at the next hour; Discovery lists the accounts it could not read.