dd8cb1c9ad
New heat templates for Openshift-Origin deployment using scalability functionality. Templates are based on the Openshift-Origin template (https://github.com/openstack/heat-templates/tree/master/openshift-origin/F19). The aim is to add scalability functionality to this template. Metric use for the scalability are cpu_util and nbgears. This second metric is a custom metric implemented by a bash script calling by cron to get from the broker node the number of gears used and the number of node connected, to determine when a new node is needed. The data is send to the Ceilometer V2 API and used in the heat template. To avoid compatibility issues due to changes in this project or in Puppet modules it depends, versions parameters are provided in hot templates. I implemented 5 templates : aws format : - openshift (1 node and 1 broker) hot format : - openshift (1 node and 1 broker) - openshift-scalable-cpu (scalable openshift environment using cpu_util metric) - openshift-scalable-nbgears (scalable openshift environment using nbgears custom metric) - openshift-scalable-cpu-nbgears (scalable openshift environment using cpu_util metric and nbgears custom metric) Change-Id: Idfdf158ff6176c5ef6902e27a6e764e23171cf4c Implements: blueprint heat-openshift-templates
29 lines
1.5 KiB
ReStructuredText
29 lines
1.5 KiB
ReStructuredText
==========================
|
|
OpenShift Origin Templates
|
|
==========================
|
|
|
|
This directory contains files for deploying OpenShift Origin to an OpenStack environment via Heat.
|
|
|
|
The templates has been tested with the OpenStack Icehouse 2014.1 release.
|
|
|
|
It includes the following folders:
|
|
|
|
* `hot-template` - heat templates in HOT format for launching OpenShift Origin
|
|
* `aws-template` - heat templates in AWS format for launching OpenShift Origin
|
|
* `elements` - diskimage-builder elements to build images
|
|
|
|
To build with diskimage-builder, do the following in the parent directory of heat-templates::
|
|
|
|
git clone https://github.com/openstack/diskimage-builder.git
|
|
apt-get install -y qemu-utils kpartx
|
|
mkdir $HOME/tmp
|
|
export DIB_RELEASE=19
|
|
export ELEMENTS_PATH=heat-templates/openshift-origin/F19/elements
|
|
export TMP_DIR=$HOME/tmp
|
|
export DIB_IMAGE_SIZE=5
|
|
diskimage-builder/bin/disk-image-create --no-tmpfs -a amd64 vm fedora openshift-origin-broker -o F19-x86_64-openshift-origin-broker
|
|
glance image-create --name F19-x86_64-openshift-origin-broker --is-public true --disk-format qcow2 --container-format bare < F19-x86_64-openshift-origin-broker.qcow2
|
|
export DIB_IMAGE_SIZE=20
|
|
diskimage-builder/bin/disk-image-create --no-tmpfs -a amd64 vm fedora openshift-origin-node -o F19-x86_64-openshift-origin-node
|
|
glance image-create --name F19-x86_64-openshift-origin-node --is-public true --disk-format qcow2 --container-format bare < F19-x86_64-openshift-origin-node.qcow2
|