Class Group
An autoscaling group is monitored by Rackspace CloudMonitoring. When Monitoring triggers an alarm for high utilization within the autoscaling group, a webhook is triggered. The webhook stimulates the autoscale service which consults a policy in accordance with the webhook. The policy determines how many additional cloud servers should be added or removed in accordance with the alarm.
There are three components to Autoscale:
- The Scaling Group Configuration ($this->groupConfiguration)
- The Scaling Group's Launch Configuration ($this->launchConfiguration)
- The Scaling Group's Policies ($this->scalingPolicies)
- OpenCloud\Common\Base
-
OpenCloud\Common\Resource\BaseResource
-
OpenCloud\Common\Resource\PersistentResource
-
OpenCloud\Common\PersistentObject
-
OpenCloud\Autoscale\Resource\AbstractResource
-
OpenCloud\Autoscale\Resource\Group
Link: https://github.com/rackerlabs/otter/blob/master/doc/getting_started.rst
Link: http://docs.autoscale.apiary.io/
Located at OpenCloud/Autoscale/Resource/Group.php
Methods summary
public
Guzzle\Http\Message\Response
|
|
public
object|boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
Collection
|
#
getScalingPolicies( $override = false )
Get the scaling policies associated with this autoscale group. |
public
|
#
getScalingPolicy( object|integer $id = null )
Get a particular scaling policy for this autoscale group. |
public
|
Methods inherited from OpenCloud\Autoscale\Resource\AbstractResource
Methods inherited from OpenCloud\Common\Resource\PersistentResource
checkExtension()
,
create()
,
createUrl()
,
delete()
,
id()
,
name()
,
refresh()
,
refreshFromLocationUrl()
,
region()
,
status()
,
waitFor()
Methods inherited from OpenCloud\Common\Resource\BaseResource
__construct()
,
findLink()
,
getClient()
,
getMetadata()
,
getParent()
,
getService()
,
getUrl()
,
jsonCollectionElement()
,
jsonCollectionName()
,
jsonName()
,
parseResponse()
,
resourceName()
,
setMetadata()
,
setParent()
,
setService()
,
url()
Methods inherited from OpenCloud\Common\Base
__call()
,
checkJsonError()
,
generateUuid()
,
getInstance()
,
getLogger()
,
hasLogger()
,
makeResourceIteratorOptions()
,
populate()
,
setLogger()
,
stripNamespace()
,
toCamel()
,
toUnderscores()
Constants summary
Constants inherited from OpenCloud\Common\Base
Properties summary
public
array
|
$createKeys
These are used to set the object used for JSON encode. |
#
array(
'groupConfiguration',
'launchConfiguration',
'scalingPolicies'
)
|
public
array
|
$associatedResources
These resources are associated with this one. When this resource object is populated, if a key is found matching one of these array keys, it is set as an instantiated resource object (rather than an arbitrary string or stdClass object). |
#
array(
'groupConfiguration' => 'GroupConfiguration',
'launchConfiguration' => 'LaunchConfiguration',
)
|
public
array
|
$associatedCollections
Same as an associated resource, but it's instantiated as a Collection. |
#
array(
'scalingPolicies' => 'ScalingPolicy'
)
|