The batch policy is designed to automatically group a large number of operations into smaller batches so that the service interruption can be better managed and there won’t be flood of service requests sending to any other services that will form a DOS (denial-of-service) attack.
Currently, this policy is applicable to clusters of all profile types and it is enforced when cluster is updated. The development team is still looking for an elegant solution that can regulate the resource creation requests.
Below is a typical spec for a batch policy:
type: senlin.policy.batch
version: 1.0
properties:
min_in_service: 8
max_batch_size: 3
pause_time: 30
The min_in_service
property specifies the minimum number of nodes to be
kept in ACTIVE status. This is mainly for cluster update use cases. The
other property max_batch_size
specifies the number of nodes to be updated
in each batch. This property is mainly used to ensure that batch requests
are still within the processing capability of a backend service.
Between each batch of service requests, you can specify an interval in the
unit of seconds using the pause_time
property. This can be used to ensure
that updated nodes are fully active to provide services, for example.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.