Skip to content

[feature request] Enable Inplace-resizing upon claiming sandboxes #68

@furykerry

Description

@furykerry

What would you like to be added:

  1. enable E2B sandbox api to accept an extra metadata, e.g.
    e2b.agents.kruise.io/cpu-scale-factor: 2
  2. sandbox manager try to scale the cpu of the allocated sandbox based on the cpu-scale-factor
  3. [optional] return the sandbox immediately once we are sure that the resizing is feasible(PodResizingInProgress condition)

Why is this needed:
To reduce overall cost of maintaining a warm-up pool, the users desire to keep a pool of sandboxes with minimum resources, and once the sandboxes is claimed, the allocated sandbox can be resized inplace to a larger size. And the sandbox can even be return to the agent user even if the sandbox is still in the process of inplace resizing.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions