public class ContainerHeadroomEnricher
extends brooklyn.enricher.basic.AbstractEnricher
Enricher that emits hot or cold
notifications based on the container utilisation and
headroom requirements.
This enricher must be applied to the DockerInfrastructure entity, and is normally created during the
entity initialisation along with an AutoScalerPolicy. Notifications
are fed into the policy, which resizes the child Docker host cluster. Workrates for the policy are calculated
as resource utilisation percentages, based on the configured maximum number of containers per host. This is
obtained from the MaxContainersPlacementStrategy or through the
maxContainers configuration on the
infrastructure entity. Workrate thresholds are calculated based on cluster utilisation with the specific headroom
available, and the cluster will be resized as appropriate.
brooklyn.policy.basic.AbstractEntityAdjunct.AdjunctTagSupportbrooklyn.basic.AbstractBrooklynObject.BasicTagSupportbrooklyn.basic.BrooklynObject.TagSupport| Modifier and Type | Field and Description |
|---|---|
static brooklyn.config.ConfigKey<Integer> |
CONTAINER_HEADROOM |
static brooklyn.config.ConfigKey<Double> |
CONTAINER_HEADROOM_PERCENTAGE |
static brooklyn.event.AttributeSensor<Integer> |
CONTAINERS_NEEDED |
static brooklyn.event.basic.BasicNotificationSensor<Map> |
DOCKER_CONTAINER_CLUSTER_COLD |
static brooklyn.event.basic.BasicNotificationSensor<Map> |
DOCKER_CONTAINER_CLUSTER_HOT |
static brooklyn.event.basic.BasicNotificationSensor<Map> |
DOCKER_CONTAINER_CLUSTER_OK |
static brooklyn.event.AttributeSensor<Double> |
DOCKER_CONTAINER_UTILISATION |
| Constructor and Description |
|---|
ContainerHeadroomEnricher() |
| Modifier and Type | Method and Description |
|---|---|
void |
setEntity(brooklyn.entity.basic.EntityLocal entity) |
emit, getEnricherType, getRebindSupport, onChangedcheck, checkCanSubscribe, checkCanSubscribe, config, configure, destroy, doReconfigureConfig, getAdjunctType, getAllConfig, getAllSubscriptions, getConfig, getConfigMap, getDisplayName, getName, getRequiredConfig, getSubscriptionTracker, getUniqueTag, isDestroyed, isLegacyNoConstructionInit, isRunning, onTagsChanged, setConfig, setDisplayName, setName, subscribe, subscribeToChildren, subscribeToMembers, tags, toString, unsubscribe, unsubscribeconfigure, getCatalogItemId, getId, getManagementContext, getTagSupport, init, isLegacyConstruction, isRebinding, rebind, requestPersist, setCatalogItemId, setManagementContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAllConfig, getConfig, getId, getName, setConfigpublic static final brooklyn.config.ConfigKey<Integer> CONTAINER_HEADROOM
public static final brooklyn.config.ConfigKey<Double> CONTAINER_HEADROOM_PERCENTAGE
public static final brooklyn.event.AttributeSensor<Integer> CONTAINERS_NEEDED
public static final brooklyn.event.AttributeSensor<Double> DOCKER_CONTAINER_UTILISATION
public static final brooklyn.event.basic.BasicNotificationSensor<Map> DOCKER_CONTAINER_CLUSTER_HOT
public static final brooklyn.event.basic.BasicNotificationSensor<Map> DOCKER_CONTAINER_CLUSTER_COLD
public static final brooklyn.event.basic.BasicNotificationSensor<Map> DOCKER_CONTAINER_CLUSTER_OK
Copyright © 2015. All rights reserved.