Using Cluster Loader
You are viewing documentation for a release that is no longer supported. The latest supported version of version 3 is [3.11]. For the most recent version 4, see
Cluster Loader is a tool that deploys large numbers of various objects to a cluster, which creates user-defined cluster objects. Build, configure, and run Cluster Loader to measure performance metrics of your OKD deployment at various cluster states.
Cluster Loader is included in the atomic-openshift-tests package. To install it, run:
After installation, the test executable extended.test is located in /usr/libexec/atomic-openshift/extended.test.
Set the variable to the location of the administrator
kubeconfig
:$ export KUBECONFIG=${KUBECONFIG-$HOME/.kube/config}
Create multiple namespaces (projects), which contain multiple templates or pods.
Locate the configuration files for Cluster Loader in the config/ subdirectory. The pod files and template files referenced in these configuration examples are found in the content/ subdirectory.
Field | Description |
---|---|
| An integer. One definition of the count of how many projects to create. |
| A string. One definition of the base name for the project. The count of identical namespaces will be appended to |
| A string. One definition of what tuning set you want to apply to the objects, which you deploy inside this namespace. |
| |
| A list of key-value pairs. The key is the ConfigMap name and the value is a path to a file from which you create the ConfigMap. |
| A list of key-value pairs. The key is the secret name and the value is a path to a file from which you create the secret. |
| A sub-object with one or many definition(s) of pods to deploy. |
| A sub-object with one or many definition(s) of templates to deploy. |
Field | Description |
---|---|
| A string. The name of the tuning set which will match the name specified when defining a tuning in a project. |
| A sub-object identifying the |
A sub-object identifying the |
Field | Description |
---|---|
| An integer. How many objects to create before pausing object creation. |
| An integer. How many seconds to pause after creating the number of objects defined in |
| An integer. How many seconds to wait before failure if the object creation is not successful. |
| An integer. How many milliseconds (ms) to wait between creation requests. |
Example Cluster Loader Configuration File
Cluster Loader’s configuration file is a basic YAML file:
1 | Optional setting for end-to-end tests. Set to local to avoid extra log messages. |
2 | The tuning sets allow rate limiting and stepping, the ability to create several batches of pods while pausing in between sets. Cluster Loader monitors completion of the previous step before continuing. |
3 | Stepping will pause for M seconds after each N objects are created. |
4 | Rate limiting will wait M milliseconds between the creation of objects. |
{
"name": "IDENTIFIER",
"description": "Number to append to the name of resources",
}
If you deploy pods, adding the parameter is unnecessary.