The tool creates multiple namespaces (projects), which contain multiple templates or Pods.
Cluster Loader’s configuration file is a basic YAML file:
provider: local (1)
ClusterLoader:
cleanup: true
projects:
- num: 1
basename: clusterloader-cakephp-mysql
tuning: default
ifexists: reuse
templates:
- num: 1
file: cakephp-mysql.json
- num: 1
basename: clusterloader-dancer-mysql
tuning: default
ifexists: reuse
templates:
- num: 1
file: dancer-mysql.json
- num: 1
basename: clusterloader-django-postgresql
tuning: default
ifexists: reuse
templates:
- num: 1
file: django-postgresql.json
- num: 1
basename: clusterloader-nodejs-mongodb
tuning: default
ifexists: reuse
templates:
- num: 1
file: quickstarts/nodejs-mongodb.json
- num: 1
basename: clusterloader-rails-postgresql
tuning: default
templates:
- num: 1
file: rails-postgresql.json
tuningsets: (2)
- name: default
pods:
stepping: (3)
stepsize: 5
pause: 0 s
rate_limit: (4)
delay: 0 ms
-
Optional setting for end-to-end tests. Set to
local
to avoid extra log messages. -
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.
-
Stepping will pause for
M
seconds after eachN
objects are created. -
Rate limiting will wait
M
milliseconds between the creation of objects.
This example assumes that references to any external template files or podspec files are also mounted into the container.
Important
|
If you are running Cluster Loader on Microsoft Azure, then you must set the
|
Field | Description |
---|---|
|
Set to |
|
A sub-object with one or many definition(s). Under |
|
A sub-object with one definition per configuration. |
|
An optional sub-object with one definition per configuration. Adds synchronization possibilities during object creation. |
projects
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 string containing either |
|
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. |
pods
and templates
Field | Description |
---|---|
|
An integer. The number of Pods or templates to deploy. |
|
A string. The docker image URL to a repository where it can be pulled. |
|
A string. One definition of the base name for the template (or pod) that you want to create. |
|
A string. The path to a local file, which is either a PodSpec or template to be created. |
|
Key-value pairs. Under |
tuningsets
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 |
tuningsets
pods
or tuningsets
templates
Field | Description |
---|---|
|
A sub-object. A stepping configuration used if you want to create an object in a step creation pattern. |
|
A sub-object. A rate-limiting tuning set configuration to limit the object creation rate. |
tuningsets
pods
or tuningsets
templates
, stepping
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. |
sync
Field | Description |
---|---|
|
A sub-object with |
|
A boolean. Wait for Pods with labels matching |
|
A boolean. Wait for Pods with labels matching |
|
A list of selectors to match Pods in |
|
A string. The synchronization timeout period to wait for Pods in |