Skip to main content

Cosmo Scale

Cosmo scale supports scaling the actors in your constellation to handle concurrent requests. It accepts the host ID on which the actor is running and the reference of the actor to scale as required arguments. It also accepts a --max-concurrent value that specifies the maximum number of instances this actor can run concurrently. By default, the value is an unbounded level of concurrency. A value of zero is equivalent to stopping the actor.

Usage

cosmo scale actor <your-host-id> wasmcloud.azurecr.io/echo:0.3.7
cosmo scale actor <your-host-id> wasmcloud.azurecr.io/echo:0.3.7 --max-concurrent=20

Options

--output (Alias -o) Specify output format (text or json) [default: text]

--max-concurrent (Alias -c) Maximum number of instances this actor can run concurrently. Omitting this value means there is no maximum

--annotations (Alias -a) Optional set of annotations used to describe the nature of this actor scale command. For example, autonomous agents may wish to “tag” scale requests as part of a given deployment