ON-PREM CHOREO CLOUD BOTH

What you will learn

  • Name the services that Choreo Cloud adds around Agent Manager, and the on-prem counterpart of each
  • Say when a new organisation gets its AI gateway by itself, and when it does not
  • Say how a call from AMS reaches OpenChoreo on Choreo Cloud, and what platform-api adds on the way
  • Say what happens to usage and to a suspended organisation, and where
  • Find the lesson that goes deeper on each new part

Before you start

On this page

Lesson L0.2.1 gave you a table of the differences between on-prem and , and lesson L12.0.1 showed how the cloud itself is built. This is step two: Agent Manager on that cloud. You will see what is new around it, what happens when a customer signs up, how a call travels, and which of these things depend on the environment.

A map of what is new

Choreo Cloud wraps the open source Agent Manager service in a small Choreo Labs-only program, the . It imports the service as a library and plugs in cloud parts. Around it sit services that an on-prem install does not have. Most run on cloud-cp as OpenChoreo components.

New partIts jobOn-prem counterpartGoes deeper
Signs people in to the Choreo Cloud consoles and issues tokens that carry the organisation. A private ThunderID build.The platform ThunderIDL12.2.1
Gives each organisation and environment its own ThunderID, built and managed by a control plane.The ThunderID of each environment, which you install with a scriptL12.2.4, L12.2.5
Receives calls from Agent Manager, works out the organisation and forwards them to OpenChoreo.None. AMS calls OpenChoreo directlyL12.2.1, L12.2.2
and the The software of every AI gateway, and the gateways on cloud-cp that carry service to service calls.The same gateway software, installed by a chartL12.2.1
Runs a , a checklist of setup steps.None. The add-environment script does the workL12.2.3
Builds Agent Manager’s parts for an organisation, including the AI gateway, and registers the gateway with AMS.The gateway bootstrap jobL12.2.3
identity-platform-provisionerBuilds the identity data plane of an organisation environment.The environment ThunderID install scriptL12.2.4
secret-manager-apiKeeps gateway tokens and keys in the secret store.The secrets path of lesson L4.3.4L12.2.2
Billing service, metering job, NATSHold plans, report usage and carry events.Nonelater in this lesson
Pins a telemetry query to the caller’s own organisation.None. The Agent Manager observer asks OpenChoreo’s observer directlyL12.2.2

A new organisation starts

Flow

SaaS onboarding, from sign-up to a running AI gateway

F18a 12 steps CHOREO CLOUD

A new organization is created in the Platform IdP, which publishes an event. The first time someone opens Agent Manager, billing activates the subscription and announces it, the provisioner asks the orchestrator to run the agent-manager recipe, and the provisioner builds the environment's AI gateway.

This is the path on the four environments where the orchestrated gateway is switched on: dev, stage-v2, prod-v2 and prod-v2-eu.

  1. The organisation is created

    When someone signs up, the Platform IdP tells platform-api that a new organisation exists. Platform-api sets up the organisation’s own space, with a name worked out from the organisation’s id. The same id gives the same name each time. On these environments platform-api can hand this work to the orchestrator.

  2. The first visit starts the subscription

    When someone opens Agent Manager for the first time, billing activates the subscription for Agent Manager and announces it on the message bus.

  3. The provisioner picks up the notice

    The provisioner listens for Agent Manager’s notices only. It asks the orchestrator to run the agent-manager recipe. The order carries a unique key, so a repeat does not start the work twice.

  4. The gateway is built and connects back

    The provisioner tells AMS where the identity platform is and which gateway exists, then has OpenChoreo deploy the gateway on the data plane. When the gateway is built, it phones home to AMS and keeps the connection open. The gateway opens that connection, not AMS.

So “it happens by itself the first time an organisation opens Agent Manager” is true here, and only here.

On stage and prod it is different

On stage and prod, the first generation, there is no provisioner in the pinned manifests, so nothing waits for a first visit. Instead, when platform-api provisions an organisation or an environment, its own gateway hook applies the gateway objects. It registers the gateway in Agent Manager, mints its token and keeps it in a secret, and also pushes the identity settings. The call that registers the gateway and mints its token has a 10 second timeout. When the orchestrated flag is on, platform-api stands down and does none of this.

Flow

SaaS gateway creation on stage and prod: the older platform-api hook

F37 5 steps CHOREO CLOUD

On the first generation environments the Agent Manager gateway is not made by the orchestrator. The platform-api hook applies the gateway objects, registers the gateway in Agent Manager and mints its token.

Questiondev, stage-v2, prod-v2, prod-v2-eustage, prod
Who makes the Agent Manager gateway?The orchestrator and the provisionerThe platform-api gateway hook
Is first sign-in provisioning on?YesNo, there is no provisioner
Does the orchestrator create environments?YesNo

Lesson L12.2.3 follows both paths step by step.

On-prem, you set up the gateway yourself with a script. On Choreo Cloud, Choreo Labs’ services do it, by one of these two paths.

A call travels through platform-api

On-prem, AMS calls OpenChoreo as its own service account. On Choreo Cloud, AMS does not call an OpenChoreo API directly. It calls the internal gateway, which routes to platform-api, and platform-api calls OpenChoreo.

  1. AMS calls platform-api with the caller's own token

    The request carries the user’s token. Background jobs can use a service token instead, which platform-api limits to certain request types.

  2. Platform-api finds the organisation's space

    It reads the organisation from the token and turns it into a namespace name. The caller does not get to name the space.

  3. Platform-api runs its hooks

    One hook checks the request against the organisation’s plan. If you are over your quota you get a “payment required” answer, and if billing cannot be reached the request is stopped to be safe.

  4. Platform-api swaps the token and forwards

    It swaps your token for its own system token and sends the request into the organisation’s space in OpenChoreo. The system token stays inside platform-api.

On-prem there is one OpenChoreo namespace for everyone. Here there is one for each organisation.

Usage and suspension

When metering is switched on, a job counts once an hour what each organisation used: build time, evaluation time, the memory and CPU its agents reserved and trace spans. It reads these from Prometheus and posts them to billing. Each number carries a label for its hour, so sending the same hour twice is counted once. The job’s manifest defaults to zero replicas, so it does nothing until a variable switches it on.

When an organisation is suspended, for example for an unpaid plan, the platform announces it on the message bus. Whether Agent Manager reacts depends on the environment. The consumer that switches agents off is turned on only on dev, among the six branches read. There, Agent Manager switches the organisation’s agents off by changing each deployment’s state to undeployed. When the organisation is reactivated, it switches back only the ones that this suspension turned off. On the other five environments it is not switched on (stage and prod do not have the setting at all), so Agent Manager itself does not do this.

Where it runs and how change arrives

Choreo Labs’ own services run on cloud-cp. Customer work runs on four other clusters. Lesson L12.0.1 has the map.

New commits reach the dev environment automatically. Promotion to a later environment changes which commit that environment follows, and nothing is rebuilt. For stage and production environments nothing is changed directly: a (change request) is created and handed to the SRE team, who make the change. Two environments serve customers: prod-v2 for the USA and prod-v2-eu for the EU.

If you want to knowRead
What Agent Manager depends on, and the two platform-apisL12.2.1
Who talks to whom, and how each line is securedL12.2.2
How an environment and its gateway are createdL12.2.3
How the identity data plane is createdL12.2.4
How Agent Manager calls the Identity PlatformL12.2.5

Your turn

Open Try it. In the diagram, click platform-api and then the other Choreo Cloud services around it, and read what each one does. Then play flow F18a and find the step where the gateway connects to AMS. Who opened that connection? Play flow F37 and find the step that the orchestrated path does not have. Finish with the matcher. When you want to see how a fix reaches customers, step through the hotfix walkthrough.

Recap

  • Choreo Cloud runs the same core service as on-prem, with extra services around it: Platform IdP, Identity Platform, platform-api, orchestrator, provisioners, billing, metering and cloud-obs-proxy.
  • A new organisation gets its gateway by itself, from the first visit to Agent Manager, only on dev, stage-v2, prod-v2 and prod-v2-eu. On stage and prod, platform-api’s own hook makes the gateway.
  • AMS reaches OpenChoreo through the internal gateway and platform-api, which finds the organisation, checks quotas and swaps the token.
  • Suspension handling and metering depend on the environment’s settings. Dev changes agents on suspension, and metering needs a switch.
  • Dev takes new commits automatically. For stage and production, a CR is handed to the SRE team, who make the change.

Try it

The diagram

What to do: look at the highlighted boxes, then click one. "Reset view" shows the whole diagram.

Loading the diagram...

The diagram

What to do: click any box to see what it is and who it talks to.

Loading the diagram...

Follow one request

What to do: press Play, or use Next, to walk through the request step by step.

Loading the diagram...

Follow one request

What to do: press Play, or use Next, to walk through the request step by step.

Loading the diagram...

The cluster map

What to do: pick an environment, then press a cluster to see what runs on it.

Loading the cluster map...

Match them up

What to do: pick an item on the left, then its partner on the right.

Loading the matching game...

Wrap up

Recap

Tick each one when you could explain it to a colleague.

Finished?

Quick check

Loading the quick check...

Spotted something wrong or unclear in this lesson? Report an inaccuracy (opens GitHub in a new tab)