Skip to main content
RAX-AUTOSCALER


Uses the rackspace APIs to allow for scaling based on aggregate metrics
across a cluster.
Can be used and installed on the auto-scale group members or on a
dedicated management instance.

- GitHub repository
- PyPI package

[Stories in Ready] [Documentation Status] [Travis CI status]
[Coverage Status]


Installation

pip install rax-autoscaler

Configuration

Read the Docs

What's New

V0.4 is here with a brand new plugin raxmon-autoscale, check it out in
the documentation above. Along for the ride are a host of improvements,
and fixes. Read the commit log if you have any questions and please
create an issue if you see any regressions.

Upgrading from 0.2

V0.3 is a major change from 0.2 and as such there are many breaking
changes in the configuration file.
Here is what you need to fix to upgrade successfully.

The monitoring information is now a plugin and needs to be moved to the
plugin section. The only monitoring plugin available in 0.2 was raxmon
so you should specify the raxmon plugin and just move the check_type,
check_config, metric_name, thresholds down.

Old Config

"autoscale_groups": {
"group0": {
"group_id": "group id",
"scale_up_policy": "scale up policy id",
"scale_down_policy": "scale down policy id",
"check_type": "agent.load_average",
"check_config": {},
"metric_name": "1m",
"scale_up_threshold": 0.6,
"scale_down_threshold": 0.4,
"webhooks": {
"scale_up": {
"pre": [
"url",
"url"
],
"post": [
"url"
]
},
"scale_down": {
"pre": [
"url",
"url"
],
"post": [
"url"
]
}
}
}
}

New Config

"autoscale_groups": {
"group0": {
"group_id": "704a2260-f4b9-46a9-be83-dbfb19919ee0",
"scale_up_policy": "74588ebe-7ca7-4950-9b86-e622a11295b6",
"scale_down_policy": "b22f4fce-132f-40af-b8c6-0e22704b1241",
"webhooks": {
"scale_up": {
"pre": [
"url",
"url"
],
"post": [
"url"
]
},
"scale_down": {
"pre": [
"url",
"url"
],
"post": [
"url"
]
}
},
"plugins":{
"raxmon":{
"scale_up_threshold": 0.6,
"scale_down_threshold": 0.4,
"check_type": "agent.load_average",
"load_balancers": [17443]
}
}
}
}


Contributing

- Fork rax-autoscaler repository, and clone it on your laptop
- Create _your feature_ branch from _devel_ branch:
git checkout -b my-new-feature origin/devel
- Commit, comment, push to your fork on GitHub, and create new _Pull
Request_

Requirements

You might want to install pip packages in your Python virtualenv:

pip install -r requirements-dev.txt


License

Copyright 2014 Rackspace US, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Metadata

Release files for rax-autoscaler 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rax-autoscaler 0.4.1
File Size Uploaded
rax-autoscaler-0.4.1.tar.gz 26.8 kB Details

Release files / rax-autoscaler-0.4.1.tar.gz

Download URL rax-autoscaler-0.4.1.tar.gz
Size 26.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2f773871b779742efcadc6e7cc2285c04a52b6f84c91764fc241fe74d9f2325b
BLAKE2b-256 checksum
How to use checksums
51dcf4b4e7ecfcb5b149e65ea3ca8fc7c313e8a453160f6b7a3f99eafaa78b44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4.1 This release

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.29

1 release file

0.2.28

1 release file

0.2.27

1 release file

0.2.25

1 release file

0.2.24

1 release file

0.2.23

1 release file

0.2.22

1 release file

0.2.21

1 release file

0.2.20

1 release file

0.2.17

1 release file

0.2.16

1 release file

0.2.15

1 release file

0.2.14

1 release file

0.2.13

1 release file

0.2.10

1 release file

0.2.9

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.2.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page