Batchlet Configuration Details
Top-level configuration schema
Key |
Description |
Type |
Default |
Required |
Nullable |
|---|---|---|---|---|---|
|
List containing the command and its arguments. |
list |
Yes |
No |
|
|
Configuration options for the Dask cluster. If |
object |
|
No |
Yes |
|
Configuration options for monitoring. If |
object |
|
No |
Yes |
|
Whether to generate performance/monitoring reports even if the |
boolean |
|
No |
No |
dask_params schema
Key |
Description |
Type |
Default |
Required |
Nullable |
|---|---|---|---|---|---|
|
The cli option of the command which takes dask scheduler ip as input. If not given, batchlet does not
spin up a dask cluster, and runs the |
string |
|
No |
Yes |
|
Number of nodes to use to spin up the dask cluster. Only relevant for |
integer |
|
No |
Yes |
|
Number of Dask workers per node. |
integer |
|
No |
Yes |
|
Number of threads per Dask worker. |
integer |
|
No |
Yes |
|
Memory allocated per dask worker. |
string |
|
No |
Yes |
|
Dask “Worker Resources” assigned per
worker. Accepts either a dictionary or a string. If string, multiple resources can be passed as comma
seperated key-value pairs. Example values: |
string or dict |
|
No |
Yes |
|
Scratch directory assigned to workers. |
string |
|
No |
Yes |
|
Whether to use the entry node for scheduling workers. Only relevant for |
boolean |
|
No |
No |
|
Set logging level for scheduler and worker. Should be an integer value representing standard logging
level in python |
integer |
20 |
No |
No |
|
Name of the cluster. This also becomes the prefix for the names of the dask workers started by this cluster. cluster. |
string |
|
No |
No |
|
Enable Dask performance tracking and store the report at the specified path, if it is valid. |
string |
|
No |
Yes |
monitor schema
Key |
Description |
Type |
Default |
Required |
Nullable |
|---|---|---|---|---|---|
|
Configuration for starting hardware resource monitoring using benchmon. |
dict |
{} |
No |
Yes |
|
Configuration for starting log monitoring using batchlet plugins. |
dict |
{} |
No |
Yes |
resources schema
Key |
Description |
Type |
Default |
Required |
Nullable |
|---|---|---|---|---|---|
|
The working directory for benchmon processess. |
str |
./benchmon-work-dir |
No |
No |
|
Benchmon-start cli-options. This should be a mapping between option string to value string. |
dict |
{} |
No |
Yes |
|
Benchmon-stop cli-options. This should be a mapping between option string to value string. |
dict |
{} |
No |
Yes |
logs schema
Key |
Description |
Type |
Default |
Required |
Nullable |
|---|---|---|---|---|---|
|
List of filter plugins with their configuration |
list of dictionary |
|
Yes |
No |
|
List of consumer plugins with their configuration |
list of dictionary |
|
Yes |
No |
Each filter or consumer plugin may contain following keys:
Key |
Description |
Type |
Default |
Required |
Nullable |
|---|---|---|---|---|---|
|
The plugin class. An instance of this class will be created by log monitor. |
string |
Yes |
No |
|
|
Dictionary of arguments to pass to the plugin (specific to the plugin). |
dictionary |
No |
No |
|
|
Optional path to the plugin module file from which the plugin class will be imported by log monitor |
string |
No |
No |