public class ContainerHeadroomEnricher
extends org.apache.brooklyn.core.enricher.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.
org.apache.brooklyn.core.objs.AbstractEntityAdjunct.AdjunctTagSupport, org.apache.brooklyn.core.objs.AbstractEntityAdjunct.BasicSubscriptionSupportorg.apache.brooklyn.core.objs.AbstractBrooklynObject.BasicTagSupportorg.apache.brooklyn.api.objs.BrooklynObject.RelationSupport<T extends org.apache.brooklyn.api.objs.BrooklynObject>, org.apache.brooklyn.api.objs.BrooklynObject.SubscriptionSupport, org.apache.brooklyn.api.objs.BrooklynObject.TagSupportorg.apache.brooklyn.api.objs.Configurable.ConfigurationSupportorg.apache.brooklyn.core.objs.BrooklynObjectInternal.ConfigurationSupportInternal, org.apache.brooklyn.core.objs.BrooklynObjectInternal.RelationSupportInternal<T extends org.apache.brooklyn.api.objs.BrooklynObject>, org.apache.brooklyn.core.objs.BrooklynObjectInternal.SubscriptionSupportInternal| Modifier and Type | Field and Description |
|---|---|
static org.apache.brooklyn.config.ConfigKey<Boolean> |
CLUSTER_TOO_COLD_ENABLED |
static org.apache.brooklyn.config.ConfigKey<Integer> |
CONTAINER_HEADROOM |
static org.apache.brooklyn.config.ConfigKey<Double> |
CONTAINER_HEADROOM_PERCENTAGE |
static org.apache.brooklyn.api.sensor.AttributeSensor<Integer> |
CONTAINERS_NEEDED |
static org.apache.brooklyn.core.sensor.BasicNotificationSensor<Map> |
DOCKER_CONTAINER_CLUSTER_COLD |
static org.apache.brooklyn.core.sensor.BasicNotificationSensor<Map> |
DOCKER_CONTAINER_CLUSTER_HOT |
static org.apache.brooklyn.core.sensor.BasicNotificationSensor<Map> |
DOCKER_CONTAINER_CLUSTER_OK |
static org.apache.brooklyn.api.sensor.AttributeSensor<Double> |
DOCKER_CONTAINER_UTILISATION |
| Constructor and Description |
|---|
ContainerHeadroomEnricher() |
| Modifier and Type | Method and Description |
|---|---|
void |
setEntity(org.apache.brooklyn.api.entity.EntityLocal entity) |
emit, getEnricherType, getRebindSupport, onChanged, relationscheck, checkCanSubscribe, checkCanSubscribe, config, configure, destroy, doReconfigureConfig, getAdjunctType, getAllSubscriptions, getConfig, getConfigMap, getDisplayName, getRequiredConfig, getSubscriptionTracker, getUniqueTag, isDestroyed, isLegacyNoConstructionInit, isRunning, onTagsChanged, setConfig, setDisplayName, subscribe, subscribeToChildren, subscribeToMembers, subscriptions, tags, toString, unsubscribe, unsubscribeconfigure, getCatalogItemId, getId, getManagementContext, init, isLegacyConstruction, isRebinding, rebind, requestPersist, setCatalogItemId, setManagementContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetUniqueTag, isDestroyed, isRunninggetCatalogItemId, getDisplayName, subscriptions, tagspublic static final org.apache.brooklyn.config.ConfigKey<Integer> CONTAINER_HEADROOM
public static final org.apache.brooklyn.config.ConfigKey<Double> CONTAINER_HEADROOM_PERCENTAGE
public static final org.apache.brooklyn.config.ConfigKey<Boolean> CLUSTER_TOO_COLD_ENABLED
public static final org.apache.brooklyn.api.sensor.AttributeSensor<Integer> CONTAINERS_NEEDED
public static final org.apache.brooklyn.api.sensor.AttributeSensor<Double> DOCKER_CONTAINER_UTILISATION
public static final org.apache.brooklyn.core.sensor.BasicNotificationSensor<Map> DOCKER_CONTAINER_CLUSTER_HOT
public static final org.apache.brooklyn.core.sensor.BasicNotificationSensor<Map> DOCKER_CONTAINER_CLUSTER_COLD
public static final org.apache.brooklyn.core.sensor.BasicNotificationSensor<Map> DOCKER_CONTAINER_CLUSTER_OK
Copyright © 2012–2016 The Apache Software Foundation. All rights reserved.