forked from cloudfoundry/app-autoscaler-release
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from cshunger/spurcing
no more spiffing
- Loading branch information
Showing
15 changed files
with
1,101 additions
and
1,043 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,5 @@ src/github.com/codegangsta/cli | |
/pkg/ | ||
|
||
bosh-lite/deployments/* | ||
app-autoscaler-extension.zip | ||
bosh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.PHONY: extension | ||
extension:: | ||
./scripts/update | ||
zip -r app-autoscaler-extension.zip config manifests jobs packages scripts src templates extension-manifest.yml LICENSE NOTICE README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"instance_min_count": 1, | ||
"instance_max_count": 5, | ||
"scaling_rules": [{ | ||
"metric_type": "memoryutil", | ||
"stat_window_secs": 300, | ||
"breach_duration_secs": 600, | ||
"threshold": 30, | ||
"operator": "<", | ||
"cool_down_secs": 300, | ||
"adjustment": "-1" | ||
}, { | ||
"metric_type": "memoryutil", | ||
"stat_window_secs": 300, | ||
"breach_duration_secs": 600, | ||
"threshold": 55, | ||
"operator": ">=", | ||
"cool_down_secs": 300, | ||
"adjustment": "+1" | ||
}], | ||
"schedules": { | ||
"timezone": "America/Los_Angeles", | ||
"recurring_schedule": [{ | ||
"start_time": "01:00", | ||
"end_time": "23:00", | ||
"days_of_week": [ | ||
1, | ||
2, | ||
3, | ||
4, | ||
5, | ||
6, | ||
7 | ||
], | ||
"instance_min_count": 1, | ||
"instance_max_count": 5, | ||
"initial_min_instance_count": 5 | ||
}], | ||
"specific_date": [{ | ||
"start_date_time": "2016-06-02T10:00", | ||
"end_date_time": "2018-06-15T13:59", | ||
"instance_min_count": 1, | ||
"instance_max_count": 4, | ||
"initial_min_instance_count": 1 | ||
}] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
extension: | ||
name: app-autoscaler-cm-deploy | ||
version: 1.0 | ||
type: bosh-release | ||
uiconfig: | ||
- name: ext_parameters | ||
title: "Properties for external template sample" | ||
properties: | ||
- name: servicebroker_port | ||
label: "Service broker port" | ||
description: "Port to access service broker" | ||
type: text | ||
validation-regex: "^(?:[0-9]{1,4}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$" | ||
mandatory: true | ||
hidden: false | ||
sample-value: "E.g. 35880" | ||
- name: servicebroker_username | ||
label: "Service broker username" | ||
description: "User name for the service broker" | ||
mandatory: true | ||
sample-value: "E.g. admin" | ||
default: "admin" | ||
- name: servicebroker_password | ||
label: "Service broker password" | ||
type: password | ||
mandatory: true | ||
sample-value: "E.g. mypassword" | ||
default: "admin" | ||
- name: api-port | ||
label: "API Port" | ||
description: "Port for api" | ||
type: text | ||
validation-regex: "^(?:[0-9]{1,4}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$" | ||
mandatory: true | ||
hidden: false | ||
sample-value: "E.g. 35880" | ||
states: | ||
- name: Sync Blobs | ||
phase: "Syncing Bosh Blobs" | ||
script: bosh2 sync-blobs | ||
- name: Create Release | ||
phase: "Creating a release for App Autoscaler" | ||
script: bosh2 -e IBMCloudPrivate create-release --force --name app-autoscaler | ||
- name: Upload Release | ||
phase: "Uploading a release for App Autoscaler" | ||
script: bosh2 upload-release -e IBMCloudPrivate -d app-autoscaler | ||
- name: Generate deployment yaml | ||
phase: "Generating the deployment yaml" | ||
script: ./scripts/generate-bosh-lite-manifest -r ./manifests/cf-merge-property-overrides.yaml -p ./manifests/property-overrides.yaml -d ./manifests/db-stub-override.yaml -v v1 | ||
- name: Deploy App Autoscaler | ||
phase: "Deploying App Autoscaler" | ||
script: bosh2 deploy -e IBMCloudPrivate -d app-autoscaler ./bosh/deployments/autoscaler.yml -n | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
properties: (( prune )) | ||
jobs: (( prune )) | ||
name: (( prune )) | ||
releases: (( prune )) | ||
update: (( prune )) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
config_from_cf: | ||
properties: | ||
consul: (( grab properties.consul )) | ||
unbound: (( grab properties.unbound )) | ||
nats: (( grab properties.nats )) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
--- | ||
policydb: | ||
address: 192.168.243.203 | ||
databases: | ||
- {name: autoscaler, tag: policydb} | ||
db_scheme: postgres | ||
port: 5432 | ||
roles: | ||
- {name: postgres, password: postgres, tag: policydb} | ||
|
||
schedulerdb: | ||
address: 192.168.243.203 | ||
databases: | ||
- {name: autoscaler, tag: schedulerdb} | ||
db_scheme: postgres | ||
port: 5432 | ||
roles: | ||
- {name: postgres, password: postgres, tag: schedulerdb} | ||
|
||
scalingenginedb: | ||
address: 192.168.243.203 | ||
databases: | ||
- {name: autoscaler, tag: scalingenginedb} | ||
db_scheme: postgres | ||
port: 5432 | ||
roles: | ||
- {name: postgres, password: postgres, tag: scalingenginedb} | ||
|
||
appmetricsdb: | ||
address: 192.168.243.203 | ||
databases: | ||
- {name: autoscaler, tag: appmetricsdb} | ||
db_scheme: postgres | ||
port: 5432 | ||
roles: | ||
- {name: postgres, password: postgres, tag: appmetricsdb} | ||
|
||
instancemetricsdb: | ||
address: 192.168.243.203 | ||
databases: | ||
- {name: autoscaler, tag: instancemetricsdb} | ||
db_scheme: postgres | ||
port: 5432 | ||
roles: | ||
- {name: postgres, password: postgres, tag: instancemetricsdb} | ||
|
||
bindingdb: | ||
address: 192.168.243.203 | ||
databases: | ||
- {name: autoscaler, tag: bindingdb} | ||
db_scheme: postgres | ||
port: 5432 | ||
roles: | ||
- {name: postgres, password: postgres, tag: bindingdb} | ||
|
||
lockdb: | ||
address: 192.168.243.203 | ||
databases: | ||
- {name: autoscaler, tag: lockdb} | ||
db_scheme: postgres | ||
port: 5432 | ||
roles: | ||
- {name: postgres, password: postgres, tag: lockdb} | ||
|
||
instance_count_overrides: | ||
- name: postgres | ||
instances: 1 | ||
|
Oops, something went wrong.