-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add docs for Scheduled and PeriodicEffectorPolicy #213
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,6 +100,39 @@ The ConnectionFailureDetector is an HA policy for monitoring an http connection, | |
|
||
### Optimization Policies | ||
|
||
#### PeriodicEffector Policy | ||
|
||
- org.apache.brooklyn.policy.action.PeriodicEffectorPolicy | ||
|
||
The `PeriodicEffectorPolicy` calls an effector with a set of arguments at a specified time and date. The following example | ||
calls a `resize` effector to resize a cluster up to 10 members at 8am and then down to 1 member at 6pm. | ||
|
||
- type: org.apache.brooklyn.policy.action.PeriodicEffectorPolicy | ||
brooklyn.config: | ||
effector: resize | ||
args: | ||
desiredSize: 10 | ||
period: 1 day | ||
time: 08:00:00 | ||
- type: org.apache.brooklyn.policy.action.PeriodicEffectorPolicy | ||
brooklyn.config: | ||
effector: resize | ||
args: | ||
desiredSize: 1 | ||
period: 1 day | ||
time: 18:00:00 | ||
|
||
#### ScheduledEffector Policy | ||
|
||
- org.apache.brooklyn.policy.action.ScheduledEffectorPolicy | ||
|
||
The `ScheduledEffectorPolicy` calls an effector after a specified interval has expired. The interval can be triggered from a sensor, `SERVICE_UP` by default. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. change to:
|
||
The following example calls a `backup` effector every night at midnight. | ||
|
||
- type: org.apache.brooklyn.policy.action.ScheduledEffectorPolicy | ||
brooklyn.config: | ||
effector: backup | ||
time: 00:00:00 | ||
|
||
#### FollowTheSun Policy | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add this text: