Configure agents
You can change the default agents configuration by mounting a config file into
docker:
network: <name-of-agents-network>
dataloreHost: <host-of-datalore-server>
instances:
- <instance1-definition>
- <instance2-definition>
...
- <instanceN-definition>
By default, <name-of-agents-network>
is datalore-agents-network, and <host-of-datalore-server
is datalore.
Each instance definition has the following fields:
Mandatory fields | |
---|---|
| Specifies the unique id for the instance. |
| Specifies whether the instance is default. Make sure exactly one instance has this parameter set to |
| Specifies the instance name shown in the UI. |
| URI of the agent docker image, changed only to specify a custom agent image |
Optional fields | |
| Specifies when the image will be pulled. Acceptable values are: NEVER, ALWAYS, IF_ABSENT (default). |
| Specifies how much of the available CPU resources a container can use. For example, if the host machine has two CPUs and you set |
| Specifies the maximum amount of memory the container can use.
|
| Defines environment variables on the agent. Each Example:
In the example, the |
| Specifies the number of pre-warmed (pooled) agents. This is the minimum number of agents Datalore will keep started and yet unassigned to any computation. When a notebook is opened, Datalore assigns one of the pooled agents to that notebook and starts another agent to refill the pool. It might be useful to set |
| |
| Specifies the short instance name.
|
| Specifies the number of CPUs to display. |
| Specifies the agent RAM description. |
| Specifies the number of GPUs to display. |
| Specifies the GPU memory description. |
| Specifies specific properties of this agent to display in the UI. Only properties containing the "RAM", "CPU", or "GPU" substrings will be displayed in the agent selection window. |