anchor.diff:  <7> The percentage of the requested CPU that each pod should ideally be using
   ====
   
  -== Create a Horizontal Pod Autoscaler
  +Save your definition to a file, such as *_scaler.yaml_*, then use the CLI to
  +create the object:
   
  -To create a horizontal pod autoscaler:
  -
  +====
   ----
   $ oc create -f scaler.yaml
   ----
  +====
   
  -== View a Horizontal Pod Autocaler
  +[[viewing-a-hpa]]
  +== Viewing a Horizontal Pod Autocaler
   
   To view the status of a horizontal pod autoscaler:
   
  +====
   ----
   $ oc get hpa
   NAME              REFERENCE                                 TARGET    CURRENT   MINPODS        MAXPODS   AGE
   frontend-scaler   DeploymentConfig/default/frontend/scale   80%       79%       1              10        8d
  +
   $ oc describe hpa frontend-scaler
   Name:                           frontend-scaler
   Namespace:                      default
  
positive.code: Min pods:                       1
  Max pods:                       10
  ----
  
  ====
  
  
negative.code: |Percentage of the link:../dev_guide/compute_resources.html#cpu-requests[requested CPU]
  |===
  
  [[hpa-autoscaling]]
  == Autoscaling
  
  After a horizontal pod autoscaler is created, it begins attempting to query
  Heapster for metrics on the pods. It may take one to two minutes before Heapster
  obtains the initial metrics.
  
  After metrics are available in Heapster, the horizontal pod autoscaler computes
  the ratio of the current metric utilization with the desired metric utilization,
  and scales up or down accordingly. The scaling will occur at a regular interval,
  but it may take one to two minutes before metrics make their way into Heapster.
  
  For replication controllers, this scaling corresponds directly to the replicas
  of the replication controller. For deployment configurations, this will scale
  the latest deployment, or, if no deployment is present, the replication
  controller template in the deployment configuration. Note that scaling will
  occur if the latest deployment is marked as `Complete`.
  
  [[creating-a-hpa]]
  == Creating a Horizontal Pod Autoscaler
  
  To create a horizontal pod autoscaler, first define it in a file. For example:
  
  .Horizontal Pod Autoscaler Object Definition
  ====
  [source,yaml,options="nowrap"]
  ----
  