Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How do you setup autoscaling based on memory?

On Github link text we have an example of how to auto-scale based on cpu utilization. How would you do auto-scaling based on memory utilization?

How do you setup autoscaling based on memory?

On Github link text we have an example of how to auto-scale based on cpu utilization. How would you do auto-scaling based on memory utilization?utilization? Nova compute is configured via link text i.e.

# nova-compute configuration for ceilometer
instance_usage_audit=True
instance_usage_audit_period=hour
notify_on_state_change=vm_and_task_state
notification_driver=nova.openstack.common.notifier.rpc_notifier

However I only have the memory meter i.e.

# ceilometer meter-list -q resource_id=52251682-3663-4533-9276-ca5e4d61d7d3
    +--------------------------+------------+-----------+
    | Name                     | Type       | Unit      |
    +--------------------------+------------+-----------+
    | cpu                      | cumulative | ns        |
    | cpu_util                 | gauge      | %         |
    | disk.ephemeral.size      | gauge      | GB        |
    | disk.read.bytes          | cumulative | B         |
    | disk.read.bytes.rate     | gauge      | B/s       |
    | disk.read.requests       | cumulative | request   |
    | disk.read.requests.rate  | gauge      | request/s |
    | disk.root.size           | gauge      | GB        |
    | disk.write.bytes         | cumulative | B         |
    | disk.write.bytes.rate    | gauge      | B/s       |
    | disk.write.requests      | cumulative | request   |
    | disk.write.requests.rate | gauge      | request/s |
    | instance                 | gauge      | instance  |
    | instance:linux.small     | gauge      | instance  |
    | memory                   | gauge      | MB        |
    | vcpus                    | gauge      | vcpu      |
    +--------------------------+------------+-----------+

What else do I need to do to make so that there is memory usage as a meter?

How do you setup autoscaling based on memory?

On Github link textHOT examples we have an example of how to auto-scale based on cpu utilization. How would you do auto-scaling based on memory utilization? Nova compute is configured via link textCeilometer install documentation i.e.

# nova-compute configuration for ceilometer
instance_usage_audit=True
instance_usage_audit_period=hour
notify_on_state_change=vm_and_task_state
notification_driver=nova.openstack.common.notifier.rpc_notifier

However I only have the memory meter i.e.

# ceilometer meter-list -q resource_id=52251682-3663-4533-9276-ca5e4d61d7d3
    +--------------------------+------------+-----------+
    | Name                     | Type       | Unit      |
    +--------------------------+------------+-----------+
    | cpu                      | cumulative | ns        |
    | cpu_util                 | gauge      | %         |
    | disk.ephemeral.size      | gauge      | GB        |
    | disk.read.bytes          | cumulative | B         |
    | disk.read.bytes.rate     | gauge      | B/s       |
    | disk.read.requests       | cumulative | request   |
    | disk.read.requests.rate  | gauge      | request/s |
    | disk.root.size           | gauge      | GB        |
    | disk.write.bytes         | cumulative | B         |
    | disk.write.bytes.rate    | gauge      | B/s       |
    | disk.write.requests      | cumulative | request   |
    | disk.write.requests.rate | gauge      | request/s |
    | instance                 | gauge      | instance  |
    | instance:linux.small     | gauge      | instance  |
    | memory                   | gauge      | MB        |
    | vcpus                    | gauge      | vcpu      |
    +--------------------------+------------+-----------+

What else do I need to do to make so that there is memory usage as a meter?

How do you setup autoscaling based on memory?

On Github HOT examples we have an example of how to auto-scale based on cpu utilization. How would you do auto-scaling based on memory utilization? Nova compute is configured via Ceilometer install documentation i.e.

# nova-compute configuration for ceilometer
instance_usage_audit=True
instance_usage_audit_period=hour
notify_on_state_change=vm_and_task_state
notification_driver=nova.openstack.common.notifier.rpc_notifier

However I only have the memory meter i.e.

# ceilometer meter-list -q resource_id=52251682-3663-4533-9276-ca5e4d61d7d3
    +--------------------------+------------+-----------+
    | Name                     | Type       | Unit      |
    +--------------------------+------------+-----------+
    | cpu                      | cumulative | ns        |
    | cpu_util                 | gauge      | %         |
    | disk.ephemeral.size      | gauge      | GB        |
    | disk.read.bytes          | cumulative | B         |
    | disk.read.bytes.rate     | gauge      | B/s       |
    | disk.read.requests       | cumulative | request   |
    | disk.read.requests.rate  | gauge      | request/s |
    | disk.root.size           | gauge      | GB        |
    | disk.write.bytes         | cumulative | B         |
    | disk.write.bytes.rate    | gauge      | B/s       |
    | disk.write.requests      | cumulative | request   |
    | disk.write.requests.rate | gauge      | request/s |
    | instance                 | gauge      | instance  |
    | instance:linux.small     | gauge      | instance  |
    | memory                   | gauge      | MB        |
    | vcpus                    | gauge      | vcpu      |
    +--------------------------+------------+-----------+

# ceilometer statistics -m memory --period 60 -q resource_id=52251682-3663-4533-9276-ca5e4d61d7d3
    +--------+--------+--------+--------+---------+-------+----------+
    | Period | Max    | Min    | Avg    | Sum     | Count | Duration |
    +--------+--------+--------+--------+---------+-------+----------+
    | 60     | 2048.0 | 2048.0 | 2048.0 | 18432.0 | 9     | 8.408    |
    | 60     | 2048.0 | 2048.0 | 2048.0 | 4096.0  | 2     | 0.016    |
    | 60     | 2048.0 | 2048.0 | 2048.0 | 2048.0  | 1     | 0.0      |
    | 60     | 2048.0 | 2048.0 | 2048.0 | 2048.0  | 1     | 0.0      |
    +--------+--------+--------+--------+---------+-------+----------+

What else do I need to do to make so that there is memory usage as a meter?