Repository navigation
docs(web-app): pools on the Runners tab, making one, choosing one - #80
Merged
Merged
Conversation
Pool cards with what each needs now and the runners they enrolled, labels and placement in the form and an edit dialog, and choosing a pool by name in a project's settings (hyperstructure/fctl, the pools' web part of #615).
The new pool dialog's three steps, its live summary and preview, and the setup it shows once the pool is made for machines of your own, AWS, Google Cloud, Azure and Kubernetes (hyperstructure/fctl, making a pool for #615).
This comment has been minimized.
This comment has been minimized.
kalaspuff
pushed a commit
to hyperstructure/fctl
that referenced
this pull request
Nov 24, 2026
…#644) ## Summary This is the pools' web part of #615: an admin sees each pool's state at a glance, and a project chooses a pool by its name. - **Pools on the Runners tab.** The enrollment tokens section becomes "Pools". Each pool is a card with its labels as chips and what it needs now, read every 15 seconds from the demand endpoint. A sentence says what it's doing ("Growing: 1 runner is starting for 3 sessions that wait.", or in amber "At its limit of 20 runners: 3 sessions wait for room."), followed by its facts ("6 of 8 runners busy · 11 of 32 sessions · 3 sessions waiting · longest 2m"), its placement and what its token does. The runners it enrolled are listed under it, and leave the list above. - **Making and changing pools.** "New pool" asks for labels and a placement. Until someone chooses, the placement follows the offline removal, as the server's default does, and the live summary says what each choice means. A pool's ⋯ menu has Edit…, which changes its name, labels, placement and limit as it runs. - **A project's Settings → Runners.** "Its sessions run on" offers Any runner, each pool by name with what its runners give ("AWS large: 2 runners with 4 CPUs and 7.9 GiB · aws, large"), or labels you choose. Under it, how long sessions wait for those runners before any runner takes them. Labels that no runner or pool has say so in amber, and name who adds runners. Maintainers who aren't workspace admins still see pools by name, read from the workspace's runners. The design docs in hyperstructure/design describe both. I verified it with unit tests for the pool wording, the cards, the form and the settings page, and in `cargo xtask dev`: a pool "AWS large" with two runners, filled by ten long sessions of a project that asks for its labels, with two left waiting ("Waiting for AWS large: its runners are busy"), in both themes and at a phone's width. It is stacked on #643 and goes in after it. "Making a pool" step by step, with what each cloud needs, comes in a follow-up that builds on #639's Terraform module. Refs #615 - #643 - hyperstructure/design#80 ## Screenshots At e72d7ad, from `cargo xtask dev`: the Runners tab's pools, with "AWS large" full and two sessions waiting. Light, dark, and dark at a phone's width:    The new pool form, with labels and placement:  A project's Settings → Runners, with its choices open, then dark:   ## Worth confirming - **Decision:** the Runners tab calls enrollment tokens pools: the heading is "Pools", the button is "New pool", and the token is how a pool's machines enroll. The CLI keeps `fctl runners enrollment-tokens` beside `fctl runners pools`. - **Decision:** the pool's state sentence says what the numbers show ("it wants 3 runners, and has 2 online"), not "Scaling up", because fctl can't tell whether anything scales the pool. It says "Growing" only while runners are starting. - **Decision:** the issue's 24-hour chart of busy slots and waiting sessions isn't here. It needs a time series the control plane doesn't keep yet, which is what Insights (#621) is to provide. "Idle: 2 runners retire in 14 minutes" is left out for the same reason: hosts don't report when they'd retire. - **Decision:** a pool without labels is listed in a project's choices but can't be chosen, and says why ("no labels to choose it by: its admins give it some"). [fctl session](https://app.fctl.sh/s/ses_01M84BNFZPNEXTHDT8WGN1Q6JY) <!-- FCTL_REVIEW_SUMMARY --> --- > [!NOTE] > **Medium risk.** It changes the Runners tab and a project's runner settings, which admins and maintainers use to decide where sessions run. A wrong pool choice leaves sessions waiting for runners that never take them. > > **What it does.** The Runners tab now calls enrollment tokens pools. Each pool is a card with its labels, a live sentence on what it needs (read every 15 seconds from the demand endpoint), and the runners it enrolled. Admins can make and edit pools. A project's Settings → Runners lets a maintainer choose Any runner, a pool by name, or labels of their own, and warns when no runner or pool has the labels. > > **Personal pools offered to projects.** `poolChoices` doesn't skip pools that belong to a person, so an admin can pick one for a whole project and everyone else's sessions then wait for runners that never take them. > > <sub>[fctl review](https://app.fctl.sh/s/ses_01M868VXA3GVCHSA7NCNAYYC5T)'s first look at [`6e34128`](6e34128) · 16 files, +1480 −200 · [Review agent settings](https://app.fctl.sh/p/fctl?tab=reviews)</sub> <!-- /FCTL_REVIEW_SUMMARY --> Co-authored-by: fctl-sh[bot] <343971779+fctl-sh[bot]@users.noreply.github.com>
kalaspuff
pushed a commit
to hyperstructure/fctl
that referenced
this pull request
Nov 24, 2026
## Summary Making a pool now follows the Runners tab's step-by-step setup, as #615's design asks. New pool asks in three steps: name it; its labels and machines (labels, placement, sessions each machine runs, runners at once, offline removal, approval, expiry); and where it runs (your own machines, AWS, Google Cloud, Azure or Kubernetes). A live summary says what the pool will do, and a preview shows its card once its first runner is online. Choosing a cloud removes runners once offline and packs sessions, as autoscaled machines want. Once the pool is made, the dialog shows the token once, then the steps for where its machines run, with every value of this instance and this pool filled in: - **Your own machines:** install fctl, then enroll with the token at the chosen capacity. - **AWS:** the token in a file, fctl's Terraform module (named after the pool, with the instance, its version, the capacity and a `max_size` a few below the pool's limit; the VPC and subnets left to fill in), then `terraform apply`. - **Google Cloud:** build the image with Packer, fill in the example's `terraform.tfvars` (the token stays out of it), then apply with the token in `TF_VAR_enrollment_token`. - **Azure:** make the image's resource group, gallery and image definition, named after the pool, then build the image into that gallery with Packer (the template now takes `azure_gallery`). Then fill in `terraform.tfvars` from the same shell (the subscription, the location, the image's ID, and a resource group of the scale set's own) and apply with the token in `TF_VAR_enrollment_token`. - **Kubernetes:** the token in a secret, the host as a Deployment (linking to the role and the preStop hook in Self-hosting), and a TriggerAuthentication with a ScaledObject whose metrics-api trigger reads the pool's demand. I verified it with unit tests that check each place's steps hold the instance, the token and the pool's values (and `YOUR_FCTL_VERSION`, with where to find it, while the app hasn't heard the instance's version), a component test of the steps from the form to the AWS setup, and in `cargo xtask dev` in both themes and at a phone's width. The Azure commands follow the guide's step 7, but nothing ran in a real cloud account. It is stacked on #644. The AWS, Google Cloud and Azure steps use `deploy/cloud` and its Terraform, which #639 added. Refs #615 - #644 - #639 - hyperstructure/design#80 ## Screenshots At d62c20b, from `cargo xtask dev`. New pool, with AWS chosen, then what it shows once made, light: | The steps | Once made | |---|---| |  |  | Kubernetes in the dark theme, and Google Cloud at a phone's width: | Kubernetes | Google Cloud, 390 px | |---|---| |  |  | ## Worth confirming - **Decision:** "Sessions each machine runs" is in the form though it isn't the token's: it only shapes the commands and Terraform it gives to copy (`--capacity`, `capacity`). - **Decision:** the AWS module's source isn't pinned to the instance's version, because a release before #639 has no module; the step says to pin it with `?ref=`. - **Decision:** Kubernetes gets the secret and KEDA's objects in full but the host's Deployment only in words with a link, since running the host's sandboxes in a cluster is the Kubernetes driver's work (#617). - **Decision:** choosing a cloud switches "When they go offline" from Keep them to Remove after 5 minutes, and with it the placement to packed, until someone changes them. [fctl session](https://app.fctl.sh/s/ses_01M84BNFZPNEXTHDT8WGN1Q6JY) <!-- FCTL_REVIEW_SUMMARY --> --- > [!NOTE] > **Low risk.** It adds a step-by-step new-pool dialog and generated setup text to the web app, and a template variable for the Azure image build; nothing here touches stored data or permissions. > > **What it does.** Making a pool in the Runners tab now goes in three steps (name, labels and machines, where it runs), with a live summary and a preview of the pool's card. Once the pool is made, the dialog shows the token once and then the steps for the chosen place (own machines, AWS, Google Cloud, Azure or Kubernetes), with the instance's values and the pool's settings filled in. Azure's steps make the image's gallery first, and the Packer template takes it as a new `azure_gallery` variable. > > **Packer template.** `deploy/cloud/fctl-runner.pkr.hcl` gets an `azure_gallery` variable that defaults to the old `acme_runners`, so the guide keeps working; the guide's copy of the template changes with it. > > <sub>[fctl review](https://app.fctl.sh/s/ses_01M869JFYMV5K3XNY5YZN1325F)'s first look at [`d92acb9`](d92acb9) · 12 files, +831 −156 · [Review agent settings](https://app.fctl.sh/p/fctl?tab=reviews)</sub> <!-- /FCTL_REVIEW_SUMMARY --> --------- Co-authored-by: fctl-sh[bot] <343971779+fctl-sh[bot]@users.noreply.github.com>
…e-web-app # Conflicts: # docs/web-app/explaining.md
…page do A revoked or expired pool's card has no menu, and one with no runners says its token enrolls no more. Choosing a cloud replaces only Keep them, and the placement follows only until someone chooses one. The Runners page's row on a phone, its labels field, its pools' words for those who don't manage them, and that members' own pools aren't offered (fctl#648). The setup steps' capacity, and Azure's gallery (fctl#645).
This comment has been minimized.
This comment has been minimized.
…fctl#648 changes The New pool form offers seven ways to remove offline runners, not five; the Runners tab's section names lib/pools.ts, lib/pool-setup.ts and PoolCard; Access tokens' summary is like a new pool's. The setup steps' capacity, the Kubernetes step's words and the amber line's wait say that they are as hyperstructure/fctl#648 makes them.
Contributor
Author
|
The two findings in the review's text are fixed in e856c6b:
|
8 of 9 tasks
kalaspuff
approved these changes
Nov 24, 2026
Contributor
Author
|
hyperstructure/fctl#648 merged (5ab7c26). The pages' "since hyperstructure/fctl#648" lines describe fctl's main now, so nothing here waits for it any more. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The design docs now describe the pools' web part of hyperstructure/fctl#615, which hyperstructure/fctl#644 and hyperstructure/fctl#645 build. On the Runners tab, enrollment tokens become pools, each a card that shows what it's doing as a sentence and its numbers as facts, with its runners under it. A pool is made step by step (name it, its labels and machines, where it runs), with a live summary and a preview of its card, and once made the dialog shows what to copy where its machines run: its own machines, AWS, Google Cloud, Azure or Kubernetes. An edit dialog changes a pool as it runs. A project's settings get a Runners page, where it chooses a pool by its name and how long its sessions wait for it.
The pages describe the web app as fctl's main has it, with hyperstructure/fctl#648: members' own pools aren't offered to projects, the amber line waits for the pools to load, the setup steps always pass the capacity on, and Azure's steps make the image's gallery first.
Docs only: nothing in the package changes, so it needs no release.
fctl session
Note
Low risk. Documentation only, in two files under docs/web-app. Some wording describes behavior that comes with the still-open hyperstructure/fctl#648, so it reads wrong if this merges first.
What it does. Documents pools on a workspace's Runners tab: pool cards and their states, making a pool in a dialog with a choice of where it runs (own machines, AWS, Google Cloud, Azure, Kubernetes) and the steps each gives to copy. It also documents how projects choose a pool by name on their Runners settings page, and fixes the Access tokens wording that compared itself to the removed enrollment-token form.
Depends on fctl#648. A few lines say they describe behavior "since hyperstructure/fctl#648", which is still open, so that pull request should merge before this one.
fctl review's first look at
e856c6b· 2 files, +108 −35 · Review agent settings