You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Under serverless situation, we may pre-allocate a batch of container which were ready to serve, waiting online. In order to reduce the cost of system resource, we stop these containers, and start them when they are required to serve.
I propose using pause container to balance the resource cost and application start-up time.
How it could be?
extend the CRI v1alpha2 interface, allow to pause/unpause a container through CRI.
serviceRuntimeService {
...// PauseContainer pauses the container.rpcPauseContainer(PauseContainerRequest) returns (PauseContainerResponse) {}
// UnpauseContainer unpauses the container.rpcUnpauseContainer(UnpauseContainerRequest) returns (UnpauseContainerResponse) {}
...
}
messagePauseContainerRequest {
// ID of the container to pause.stringcontainer_id=1;
}
messagePauseContainerResponse {}
messageUnpauseContainerRequest {
// ID of the container to unpause.stringcontainer_id=1;
}
messageUnpauseContainerResponse {}
Other related information
CRI client interface (generated by protoc)
type RuntimeServiceClient interface {
...
// PauseContainer pauses a container
PauseContainer(ctx context.Context, in *PauseContainerRequest, opts ...grpc.CallOption) (*PauseContainerResponse, error)
// UnpauseContainer unpauses a container to running
UnpauseContainer(ctx context.Context, in *UnpauseContainerRequest, opts ...grpc.CallOption) (*UnpauseContainerResponse, error)
...
}
The text was updated successfully, but these errors were encountered:
Why you need it?
Under serverless situation, we may pre-allocate a batch of container which were ready to serve, waiting online. In order to reduce the cost of system resource, we stop these containers, and start them when they are required to serve.
I propose using pause container to balance the resource cost and application start-up time.
How it could be?
extend the CRI v1alpha2 interface, allow to pause/unpause a container through CRI.
Other related information
CRI client interface (generated by protoc)
The text was updated successfully, but these errors were encountered: