gitpod.v1.PrebuildService
CreateWarmPool
Creates a warm pool for a project and environment class.
A warm pool maintains pre-created environment instances from a prebuild snapshot so that new environments can start near-instantly.
Only one warm pool is allowed per <project, environment_class> pair. The environment class must have prebuilds enabled on the project.
The pool's snapshot is managed automatically: when a new prebuild completes for the same project and environment class, the pool's snapshot is updated and the runner rotates instances.
Examples
-
Create warm pool:
Creates a warm pool with 2 instances for a project and environment class.
projectId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047" environmentClassId: "d2c94c27-3b76-4a42-b88c-95a85e392c68" desiredSize: 2
post/gitpod.v1.PrebuildService/CreateWarmPool
Request body
Response
Success