Images and pools¶
Most BCDock provisioning time is spent in two places: building cached VM images and creating pool VMs. Both are amortised - one cached image serves many pools; one pool serves many environments. Knowing the model makes the timing surprises (and the cost shape) less surprising.
VM image cache¶
BCDock keeps prepared VM images per region for the supported BC versions, so environments spin up quickly. A version × country combination we don't have ready can be requested from the portal; once it is built, environments on it are just as fast.
The cache is refreshed in the background when Microsoft publishes a new BC artifact for a cached version × country - existing pools keep serving from the previous image until the new one is rolled out, so customers don't see the rebuild.
Pool model¶
A pool is an Azure VM hosting 2-9 BC containers. Pools are the load-bearing infrastructure unit:
- Always running. We never stop pools. A stopped pool means a stopped reverse proxy, which means broken URLs.
- Hosts a single combination. One pool = one BC version × country × artifact-type. Environments on the pool share the combination; you can't put a v27-au env on a v28-au pool.
- Has its own DNS. Each environment gets its own subdomain under
bcdock.io.
Why 2-9 containers¶
The lower bound (2) avoids the "whole pool to host one customer's empty env" cost shape - pools are sized so a typical concurrent workload of 2-4 active envs doesn't contend.
The upper bound (9) is empirical - beyond 9 we've seen routing and disk-IO contention show up under heavy AL compile load. Could be tuned upward with bigger pool VM sizes; we've stayed conservative pre-launch.
Pool lifecycle states¶
| State | Meaning |
|---|---|
Creating |
Pool VM provisioning, Docker installing, agents deploying |
Running |
Operational; can accept new env allocations |
Draining |
Existing envs continue to run; no new allocations. Used when phasing out a BC version. |
Failed |
Provisioning failed; kept around for forensics, not destroyed automatically |
Deleting / Deleted |
Tearing down |
Allocating a new env always uses a Running pool - the autoscaler implicitly excludes other states.
Autoscaler¶
A background service decides:
- When to create a pool - when env demand exceeds current pool capacity for a combination, or when you request a region/version that has no pool yet
- When to delete a pool - when a
Runningpool has been at 0 utilisation for a sustained window and isn't pinned - When to drain a pool - when its BC version is being phased out
Pools can be pinned to exempt them from autoscaler deletion - useful for staging environments and "I want this exact pool for the next training run" scenarios. Pinning is staff-handled via internal tooling; if you need a pool pinned for a workshop or event, reach out via support@bcdock.io.
Allocation algorithm¶
When you create an env:
- Check the image cache - is the requested BC version × country combo ready in the requested region? If not, the create is refused with a clear error, and you can request that version (see below).
- Check for pool - is there a
Runningpool in the right region with capacity for one more env? If yes, allocate. If no, a new pool is created first, which adds time. - Allocate slot - write the env-record row, ask the pool to start the container, return.
A new environment takes about 15 minutes. It is sooner when a pool with room is already running.
Pre-warmed environments¶
For workloads where the warm-pool create wait is still too slow (training cohort, demo prep), the platform supports pre-warmed environments - created ahead of time on a pool slot, sitting in a pending-assignment state. When you request a matching env, we assign the pre-warmed one to you, bypassing the create wait.
This is a silent optimisation; there's no pre-warmed status in the public API. You see a fast running state and that's it.
Why this shape matters¶
Three customer-visible consequences:
- A combination we don't have ready has to be requested first. We keep images ready for the supported BC versions. For any other version × country combination, request it from the portal or with
bcdock artifacts request: we build it and reply by email when you can create environments on it, each in about 15 minutes. Requests are open from BC 27 onward. For an older version, email support@bcdock.io. - Cross-region resume is supported. The hibernation primitive plus the multi-pool model mean an env hibernated in
australiaeastcan resume on awestus2pool. Cross-region adds latency over same-region resume; see hibernation for the per-operation timings. - Our pricing is per environment, not per VM. Several environments share each pool VM, and BCDock runs all the shared plumbing - the reverse proxy, HTTPS, DNS, monthly OS patches. Pooling lets us spread that cost across environments, so a managed environment costs less than renting and operating a dedicated Azure VM per env.
How to plan around this¶
Two practical implications for consultants:
A version we don't have ready has to be requested first. If you need, say, a version we don't keep ready in australiaeast, request it ahead of time; environments on it then take about 15 minutes each. For a known event (training class, demo prep, client kickoff), reach out to support@bcdock.io a day ahead and we'll make sure the combination is ready so the first student / first attendee doesn't wait.
Pool sharing is invisible to you. Your envs share a VM with envs from other customers - separate Docker containers, separate databases, separate credentials, isolated at every level. For a training cohort or an event with many environments running at once, tell support@bcdock.io a day ahead so we can make sure there is pool capacity for everyone.
Read more¶
- Hibernation - how the active/stored split interacts with pool capacity
- URL shape - per-env URL format and how to wire it into VS Code
launch.json - Reference: env states - the customer-facing lifecycle states