You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2015/01/27 13:35:36 UTC
[12/16] stratos git commit: Restructuring the Sample Application
Removing the old samples
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling-v1/mock/undeploy.sh
----------------------------------------------------------------------
diff --git a/samples/group-scaling-v1/mock/undeploy.sh b/samples/group-scaling-v1/mock/undeploy.sh
deleted file mode 100755
index bc600a7..0000000
--- a/samples/group-scaling-v1/mock/undeploy.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-# Undeploy application
-curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin https://localhost:9443/api/applications/appscaling/undeploy
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling-v1/openstack/artifacts/app_deployment_policy.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling-v1/openstack/artifacts/app_deployment_policy.json b/samples/group-scaling-v1/openstack/artifacts/app_deployment_policy.json
deleted file mode 100644
index 13ecd24..0000000
--- a/samples/group-scaling-v1/openstack/artifacts/app_deployment_policy.json
+++ /dev/null
@@ -1,67 +0,0 @@
-{
- "applicationId": "appscaling",
- "applicationPolicy": {
- "networkPartition": [
- {
- "id": "openstack_R1",
- "activeByDefault": "true",
- "partitions": [
- {
- "id": "P1",
- "provider": "openstack",
- "property": [
- {
- "name": "region",
- "value": "RegionOne"
- }
- ]
- }
- ]
- },
- {
- "id": "openstack_R2",
- "activeByDefault": "false",
- "partitions": [
- {
- "id": "P1",
- "provider": "openstack",
- "property": [
- {
- "name": "region",
- "value": "RegionOne"
- }
- ]
- }
- ]
- }
- ]
- },
- "childPolicies": [
- {
- "alias": "mygroup2",
- "networkPartition": [
- {
- "id": "openstack_R1",
- "partitionAlgo": "one-after-another",
- "partitions": [
- {
- "id": "P1",
- "max": 2
- }
- ]
- },
- {
- "id": "openstack_R2",
- "partitionAlgo": "one-after-another",
- "partitions": [
- {
- "id": "P1",
- "max": 2
- }
- ]
- }
- ]
- }
- ]
-}
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling-v1/openstack/artifacts/autoscale-policy-c1.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling-v1/openstack/artifacts/autoscale-policy-c1.json b/samples/group-scaling-v1/openstack/artifacts/autoscale-policy-c1.json
deleted file mode 100755
index dacdeeb..0000000
--- a/samples/group-scaling-v1/openstack/artifacts/autoscale-policy-c1.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscale_policy_c1",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 80
- },
- "memoryConsumption": {
- "threshold": 20
- },
- "loadAverage": {
- "threshold": 50
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling-v1/openstack/artifacts/autoscale-policy-c2.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling-v1/openstack/artifacts/autoscale-policy-c2.json b/samples/group-scaling-v1/openstack/artifacts/autoscale-policy-c2.json
deleted file mode 100755
index b908013..0000000
--- a/samples/group-scaling-v1/openstack/artifacts/autoscale-policy-c2.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscale_policy_c2",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 90
- },
- "memoryConsumption": {
- "threshold": 5
- },
- "loadAverage": {
- "threshold": 50
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling-v1/openstack/artifacts/autoscale-policy-c3.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling-v1/openstack/artifacts/autoscale-policy-c3.json b/samples/group-scaling-v1/openstack/artifacts/autoscale-policy-c3.json
deleted file mode 100755
index f2942a0..0000000
--- a/samples/group-scaling-v1/openstack/artifacts/autoscale-policy-c3.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscale_policy_c3",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 100
- },
- "memoryConsumption": {
- "threshold": 10
- },
- "loadAverage": {
- "threshold": 50
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling-v1/openstack/artifacts/autoscale-policy-c4.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling-v1/openstack/artifacts/autoscale-policy-c4.json b/samples/group-scaling-v1/openstack/artifacts/autoscale-policy-c4.json
deleted file mode 100755
index 4b6db88..0000000
--- a/samples/group-scaling-v1/openstack/artifacts/autoscale-policy-c4.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscale_policy_c4",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 50
- },
- "memoryConsumption": {
- "threshold": 28
- },
- "loadAverage": {
- "threshold": 75
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling-v1/openstack/artifacts/c1.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling-v1/openstack/artifacts/c1.json b/samples/group-scaling-v1/openstack/artifacts/c1.json
deleted file mode 100755
index 2c78276..0000000
--- a/samples/group-scaling-v1/openstack/artifacts/c1.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "type": "c1",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c1",
- "description": "c1 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "openstack",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "name": "network-non-routable",
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "maxInstanceLimit": "2",
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "vishanth-key"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling-v1/openstack/artifacts/c2.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling-v1/openstack/artifacts/c2.json b/samples/group-scaling-v1/openstack/artifacts/c2.json
deleted file mode 100755
index 8b98f2e..0000000
--- a/samples/group-scaling-v1/openstack/artifacts/c2.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "type": "c2",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c2",
- "description": "c2 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "openstack",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "name": "network-non-routable",
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "maxInstanceLimit": "2",
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "vishanth-key"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling-v1/openstack/artifacts/c3.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling-v1/openstack/artifacts/c3.json b/samples/group-scaling-v1/openstack/artifacts/c3.json
deleted file mode 100755
index 96d8b0f..0000000
--- a/samples/group-scaling-v1/openstack/artifacts/c3.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "type": "c3",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c3",
- "description": "c3 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "openstack",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "name": "network-non-routable",
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "maxInstanceLimit": "2",
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "vishanth-key"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling-v1/openstack/artifacts/c4.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling-v1/openstack/artifacts/c4.json b/samples/group-scaling-v1/openstack/artifacts/c4.json
deleted file mode 100755
index b6af266..0000000
--- a/samples/group-scaling-v1/openstack/artifacts/c4.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "type": "c4",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c4",
- "description": "c4 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "openstack",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "name": "network-non-routable",
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "maxInstanceLimit": "2",
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "vishanth-key"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling-v1/openstack/artifacts/composite_application.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling-v1/openstack/artifacts/composite_application.json b/samples/group-scaling-v1/openstack/artifacts/composite_application.json
deleted file mode 100644
index 54dbe33..0000000
--- a/samples/group-scaling-v1/openstack/artifacts/composite_application.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "applicationId": "appscaling",
- "alias": "appscaling",
- "components": {
- "groups": [
- {
- "name": "group2",
- "alias": "mygroup2",
- "groupMinInstances": 1,
- "groupMaxInstances": 2,
- "cartridges": [
- {
- "type": "c2",
- "cartridgeMin": 2,
- "cartridgeMax": 4,
- "subscribableInfo": {
- "alias": "group2c2",
- "autoscalingPolicy": "autoscale_policy_c2"
- }
- },
- {
- "type": "c3",
- "cartridgeMin": 1,
- "cartridgeMax": 2,
- "subscribableInfo": {
- "alias": "group2c3",
- "autoscalingPolicy": "autoscale_policy_c3"
- }
- }
- ]
- }
- ]
- }
-}
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling-v1/openstack/artifacts/group1.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling-v1/openstack/artifacts/group1.json b/samples/group-scaling-v1/openstack/artifacts/group1.json
deleted file mode 100644
index d1d4267..0000000
--- a/samples/group-scaling-v1/openstack/artifacts/group1.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "name": "group2",
- "groupScalingEnabled": "true",
- "cartridges": [
- "c2",
- "c3"
- ],
- "dependencies": {
- "startupOrders": [
- "cartridge.c3,cartridge.c2"
- ],
- "scalingDependants": [
- "cartridge.c3, cartridge.c2"
- ],
- "terminationBehaviour": "terminate-all"
- }
-}
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling-v1/openstack/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/group-scaling-v1/openstack/deploy.sh b/samples/group-scaling-v1/openstack/deploy.sh
deleted file mode 100755
index 019f134..0000000
--- a/samples/group-scaling-v1/openstack/deploy.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-
-# Create autoscale policy
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/autoscale-policy-c1.json' -k -v -u admin:admin https://localhost:9443/api/autoscalingPolicies
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/autoscale-policy-c2.json' -k -v -u admin:admin https://localhost:9443/api/autoscalingPolicies
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/autoscale-policy-c3.json' -k -v -u admin:admin https://localhost:9443/api/autoscalingPolicies
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/autoscale-policy-c4.json' -k -v -u admin:admin https://localhost:9443/api/autoscalingPolicies
-
-# Deploy c3 cartridge
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/c3.json' -k -v -u admin:admin https://localhost:9443/api/cartridges
-
-# Deploy c4 cartridge
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/c4.json' -k -v -u admin:admin https://localhost:9443/api/cartridges
-
-# Deploy c1 cartride
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/c1.json' -k -v -u admin:admin https://localhost:9443/api/cartridges
-
-# Deploy c2 cartride
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/c2.json' -k -v -u admin:admin https://localhost:9443/api/cartridges
-
-# Deploy group
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/group1.json' -k -v -u admin:admin https://localhost:9443/api/cartridgeGroups
-
-sleep 3
-# Create application
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/composite_application.json' -k -v -u admin:admin https://localhost:9443/api/applications
-
-sleep 3
-# Deploy application
-curl -X POST -H "Content-Type: application/json" -d@'artifacts/app_deployment_policy.json' -k -v -u admin:admin https://localhost:9443/api/applications/appscaling/deploy
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling-v1/openstack/undeploy.sh
----------------------------------------------------------------------
diff --git a/samples/group-scaling-v1/openstack/undeploy.sh b/samples/group-scaling-v1/openstack/undeploy.sh
deleted file mode 100755
index bc600a7..0000000
--- a/samples/group-scaling-v1/openstack/undeploy.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-# Undeploy application
-curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin https://localhost:9443/api/applications/appscaling/undeploy
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/ec2/artifacts/app_deployment_policy.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/ec2/artifacts/app_deployment_policy.json b/samples/group-scaling/ec2/artifacts/app_deployment_policy.json
deleted file mode 100644
index ae2f4ca..0000000
--- a/samples/group-scaling/ec2/artifacts/app_deployment_policy.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "applicationId": "appscaling",
- "applicationPolicy": {
- "networkPartition": [
- {
- "id": "EC2-P1",
- "activeByDefault": "true",
- "partitions": [
- {
- "id": "P1",
- "provider": "ec2",
- "property": [
- {
- "name": "region",
- "value": "ap-southeast-1"
- }
- ]
- }
- ]
- }
- ]
- },
- "childPolicies": [
- {
- "alias": "myc4",
- "networkPartition": [
- {
- "id": "EC2-P1",
- "partitionAlgo": "one-after-another",
- "partitions": [
- {
- "id": "P1",
- "max": 2
- }
- ]
- }
- ]
- },
- {
- "alias": "group1c1",
- "networkPartition": [
- {
- "id": "EC2-P1",
- "partitionAlgo": "one-after-another",
- "partitions": [
- {
- "id": "P1",
- "max": 4
- }
- ]
- }
- ]
- },
- {
- "alias": "mygroup2",
- "networkPartition": [
- {
- "id": "EC2-P1",
- "partitionAlgo": "one-after-another",
- "partitions": [
- {
- "id": "P1",
- "max": 2
- }
- ]
- }
- ]
- }
- ]
-}
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/ec2/artifacts/autoscale-policy-c1.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/ec2/artifacts/autoscale-policy-c1.json b/samples/group-scaling/ec2/artifacts/autoscale-policy-c1.json
deleted file mode 100755
index 78d280c..0000000
--- a/samples/group-scaling/ec2/artifacts/autoscale-policy-c1.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscale_policy_c1",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 80
- },
- "memoryConsumption": {
- "threshold": 80
- },
- "loadAverage": {
- "threshold": 50
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/ec2/artifacts/autoscale-policy-c2.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/ec2/artifacts/autoscale-policy-c2.json b/samples/group-scaling/ec2/artifacts/autoscale-policy-c2.json
deleted file mode 100755
index b908013..0000000
--- a/samples/group-scaling/ec2/artifacts/autoscale-policy-c2.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscale_policy_c2",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 90
- },
- "memoryConsumption": {
- "threshold": 5
- },
- "loadAverage": {
- "threshold": 50
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/ec2/artifacts/autoscale-policy-c3.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/ec2/artifacts/autoscale-policy-c3.json b/samples/group-scaling/ec2/artifacts/autoscale-policy-c3.json
deleted file mode 100755
index f2942a0..0000000
--- a/samples/group-scaling/ec2/artifacts/autoscale-policy-c3.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscale_policy_c3",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 100
- },
- "memoryConsumption": {
- "threshold": 10
- },
- "loadAverage": {
- "threshold": 50
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/ec2/artifacts/autoscale-policy-c4.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/ec2/artifacts/autoscale-policy-c4.json b/samples/group-scaling/ec2/artifacts/autoscale-policy-c4.json
deleted file mode 100755
index ce596b4..0000000
--- a/samples/group-scaling/ec2/artifacts/autoscale-policy-c4.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscale_policy_c4",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 50
- },
- "memoryConsumption": {
- "threshold": 85
- },
- "loadAverage": {
- "threshold": 75
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/ec2/artifacts/c1.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/ec2/artifacts/c1.json b/samples/group-scaling/ec2/artifacts/c1.json
deleted file mode 100755
index 8020bdd..0000000
--- a/samples/group-scaling/ec2/artifacts/c1.json
+++ /dev/null
@@ -1,40 +0,0 @@
-{
- "type": "c1",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c1",
- "description": "c1 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "ec2",
- "imageId": "ap-southeast-1/ami-3c0f5d6e",
- "maxInstanceLimit": "2",
- "property": [
- {
- "name": "instanceType",
- "value": "m1.medium"
- },
- {
- "name": "keyPair",
- "value": "vishanth-key"
- },
- {
- "name": "securityGroups",
- "value": "s2-2.0.0-rc1"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/ec2/artifacts/c2.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/ec2/artifacts/c2.json b/samples/group-scaling/ec2/artifacts/c2.json
deleted file mode 100755
index 384ebc7..0000000
--- a/samples/group-scaling/ec2/artifacts/c2.json
+++ /dev/null
@@ -1,40 +0,0 @@
-{
- "type": "c2",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c2",
- "description": "c2 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "ec2",
- "imageId": "ap-southeast-1/ami-3c0f5d6e",
- "maxInstanceLimit": "2",
- "property": [
- {
- "name": "instanceType",
- "value": "m1.medium"
- },
- {
- "name": "keyPair",
- "value": "vishanth-key"
- },
- {
- "name": "securityGroups",
- "value": "s2-2.0.0-rc1"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/ec2/artifacts/c3.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/ec2/artifacts/c3.json b/samples/group-scaling/ec2/artifacts/c3.json
deleted file mode 100755
index 886b7f4..0000000
--- a/samples/group-scaling/ec2/artifacts/c3.json
+++ /dev/null
@@ -1,40 +0,0 @@
-{
- "type": "c3",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c3",
- "description": "c3 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "ec2",
- "imageId": "ap-southeast-1/ami-3c0f5d6e",
- "maxInstanceLimit": "2",
- "property": [
- {
- "name": "instanceType",
- "value": "m1.medium"
- },
- {
- "name": "keyPair",
- "value": "vishanth-key"
- },
- {
- "name": "securityGroups",
- "value": "s2-2.0.0-rc1"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/ec2/artifacts/c4.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/ec2/artifacts/c4.json b/samples/group-scaling/ec2/artifacts/c4.json
deleted file mode 100755
index 38cc646..0000000
--- a/samples/group-scaling/ec2/artifacts/c4.json
+++ /dev/null
@@ -1,40 +0,0 @@
-{
- "type": "c4",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c4",
- "description": "c4 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "ec2",
- "imageId": "ap-southeast-1/ami-3c0f5d6e",
- "maxInstanceLimit": "2",
- "property": [
- {
- "name": "instanceType",
- "value": "m1.medium"
- },
- {
- "name": "keyPair",
- "value": "vishanth-key"
- },
- {
- "name": "securityGroups",
- "value": "s2-2.0.0-rc1"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/ec2/artifacts/composite_application.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/ec2/artifacts/composite_application.json b/samples/group-scaling/ec2/artifacts/composite_application.json
deleted file mode 100644
index 027575a..0000000
--- a/samples/group-scaling/ec2/artifacts/composite_application.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "applicationId": "appscaling",
- "alias": "appscaling",
- "components": {
- "groups": [
- {
- "name": "group1",
- "alias": "mygroup1",
- "groupMinInstances": 1,
- "groupMaxInstances": 1,
- "groups": [
- {
- "name": "group2",
- "alias": "mygroup2",
- "groupMinInstances": 1,
- "groupMaxInstances": 2,
- "cartridges": [
- {
- "type": "c2",
- "cartridgeMin": 2,
- "cartridgeMax": 4,
- "subscribableInfo": {
- "alias": "group2c2",
- "autoscalingPolicy": "autoscale_policy_c2"
- }
- },
- {
- "type": "c3",
- "cartridgeMin": 1,
- "cartridgeMax": 2,
- "subscribableInfo": {
- "alias": "group2c3",
- "autoscalingPolicy": "autoscale_policy_c3"
- }
- }
- ]
- }
- ],
- "cartridges": [
- {
- "type": "c1",
- "cartridgeMin": 2,
- "cartridgeMax": 4,
- "subscribableInfo": {
- "alias": "group1c1",
- "autoscalingPolicy": "autoscale_policy_c1"
- }
- }
- ]
- }
- ],
- "cartridges": [
- {
- "type": "c4",
- "cartridgeMin": 1,
- "cartridgeMax": 2,
- "subscribableInfo": {
- "alias": "myc4",
- "autoscalingPolicy": "autoscale_policy_c4"
- }
- }
- ],
- "dependencies": {
- "startupOrders": [
- "group.group1,cartridge.c4"
- ],
- "terminationBehaviour": "terminate-dependents"
- }
- }
-}
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/ec2/artifacts/group1.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/ec2/artifacts/group1.json b/samples/group-scaling/ec2/artifacts/group1.json
deleted file mode 100644
index 9acf5e6..0000000
--- a/samples/group-scaling/ec2/artifacts/group1.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "name": "group1",
- "groups": [
- {
- "name": "group2",
- "groupScalingEnabled": "true",
- "cartridges": [
- "c2",
- "c3"
- ],
- "dependencies": {
- "startupOrders": [
- "cartridge.c3,cartridge.c2"
- ],
- "scalingDependants": [
- "cartridge.c3, cartridge.c2"
- ],
- "terminationBehaviour": "terminate-all"
- }
- }
- ],
- "cartridges": [
- "c1"
- ],
- "dependencies": {
- "startupOrders": [
- "cartridge.c1,group.group2"
- ],
- "scalingDependants": [
- "cartridge.c1, group.group2"
- ],
- "terminationBehaviour": "terminate-dependents"
- }
-}
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/ec2/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/group-scaling/ec2/deploy.sh b/samples/group-scaling/ec2/deploy.sh
deleted file mode 100755
index 8a87f07..0000000
--- a/samples/group-scaling/ec2/deploy.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-# Create autoscale policy
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/autoscale-policy-c1.json' -k -v -u admin:admin https://localhost:9443/api/autoscalingPolicies
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/autoscale-policy-c2.json' -k -v -u admin:admin https://localhost:9443/api/autoscalingPolicies
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/autoscale-policy-c3.json' -k -v -u admin:admin https://localhost:9443/api/autoscalingPolicies
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/autoscale-policy-c4.json' -k -v -u admin:admin https://localhost:9443/api/autoscalingPolicies
-
-# Deploy c3 cartridge
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/c3.json' -k -v -u admin:admin https://localhost:9443/api/cartridges
-
-# Deploy c4 cartridge
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/c4.json' -k -v -u admin:admin https://localhost:9443/api/cartridges
-
-# Deploy c1 cartride
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/c1.json' -k -v -u admin:admin https://localhost:9443/api/cartridges
-
-# Deploy c2 cartride
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/c2.json' -k -v -u admin:admin https://localhost:9443/api/cartridges
-
-# Deploy group
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/group1.json' -k -v -u admin:admin https://localhost:9443/api/cartridgeGroups
-
-sleep 3
-# Create application
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/composite_application.json' -k -v -u admin:admin https://localhost:9443/api/applications
-
-sleep 3
-# Deploy application
-curl -X POST -H "Content-Type: application/json" -d@'artifacts/app_deployment_policy.json' -k -v -u admin:admin https://localhost:9443/api/applications/appscaling/deploy
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/ec2/undeploy.sh
----------------------------------------------------------------------
diff --git a/samples/group-scaling/ec2/undeploy.sh b/samples/group-scaling/ec2/undeploy.sh
deleted file mode 100755
index b661344..0000000
--- a/samples/group-scaling/ec2/undeploy.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-# undeploy application
-curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin https://localhost:9443/api/applications/appscaling/undeploy
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/kubernetes/artifacts/app_deployment_policy.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/kubernetes/artifacts/app_deployment_policy.json b/samples/group-scaling/kubernetes/artifacts/app_deployment_policy.json
deleted file mode 100644
index cf28ad7..0000000
--- a/samples/group-scaling/kubernetes/artifacts/app_deployment_policy.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- "applicationId": "appscaling",
- "applicationPolicy": {
- "networkPartition": [
- {
- "id":"network-p1",
- "kubernetesClusterId":"kubernetes-cluster-1",
- "activeByDefault": "true",
- "partitions": [
- {
- "id": "P1",
- "provider": "kubernetes",
- "property": [
- {
- "name": "region",
- "value": "default"
- }
- ]
- }
- ]
- }
- ]
- },
- "childPolicies": [
- {
- "alias": "myc4",
- "networkPartition": [
- {
- "id": "network-p1",
- "partitionAlgo": "one-after-another",
- "partitions": [
- {
- "id": "P1",
- "max": 2
- }
- ]
- }
- ]
- },
- {
- "alias": "group1c1",
- "networkPartition": [
- {
- "id": "network-p1",
- "partitionAlgo": "one-after-another",
- "partitions": [
- {
- "id": "P1",
- "max": 4
- }
- ]
- }
- ]
- },
- {
- "alias": "mygroup2",
- "networkPartition": [
- {
- "id": "network-p1",
- "partitionAlgo": "one-after-another",
- "partitions": [
- {
- "id": "P1",
- "max": 2
- }
- ]
- }
- ]
- }
- ]
-}
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/kubernetes/artifacts/autoscale-policy-c1.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/kubernetes/artifacts/autoscale-policy-c1.json b/samples/group-scaling/kubernetes/artifacts/autoscale-policy-c1.json
deleted file mode 100755
index 78d280c..0000000
--- a/samples/group-scaling/kubernetes/artifacts/autoscale-policy-c1.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscale_policy_c1",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 80
- },
- "memoryConsumption": {
- "threshold": 80
- },
- "loadAverage": {
- "threshold": 50
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/kubernetes/artifacts/autoscale-policy-c2.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/kubernetes/artifacts/autoscale-policy-c2.json b/samples/group-scaling/kubernetes/artifacts/autoscale-policy-c2.json
deleted file mode 100755
index b908013..0000000
--- a/samples/group-scaling/kubernetes/artifacts/autoscale-policy-c2.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscale_policy_c2",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 90
- },
- "memoryConsumption": {
- "threshold": 5
- },
- "loadAverage": {
- "threshold": 50
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/kubernetes/artifacts/autoscale-policy-c3.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/kubernetes/artifacts/autoscale-policy-c3.json b/samples/group-scaling/kubernetes/artifacts/autoscale-policy-c3.json
deleted file mode 100755
index f2942a0..0000000
--- a/samples/group-scaling/kubernetes/artifacts/autoscale-policy-c3.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscale_policy_c3",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 100
- },
- "memoryConsumption": {
- "threshold": 10
- },
- "loadAverage": {
- "threshold": 50
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/kubernetes/artifacts/autoscale-policy-c4.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/kubernetes/artifacts/autoscale-policy-c4.json b/samples/group-scaling/kubernetes/artifacts/autoscale-policy-c4.json
deleted file mode 100755
index ce596b4..0000000
--- a/samples/group-scaling/kubernetes/artifacts/autoscale-policy-c4.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscale_policy_c4",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 50
- },
- "memoryConsumption": {
- "threshold": 85
- },
- "loadAverage": {
- "threshold": 75
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/kubernetes/artifacts/c1.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/kubernetes/artifacts/c1.json b/samples/group-scaling/kubernetes/artifacts/c1.json
deleted file mode 100755
index c60737d..0000000
--- a/samples/group-scaling/kubernetes/artifacts/c1.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "type": "c1",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c1",
- "description": "c1 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "mock",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "name": "network-non-routable",
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "maxInstanceLimit": "2",
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "vishanth-key"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/kubernetes/artifacts/c2.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/kubernetes/artifacts/c2.json b/samples/group-scaling/kubernetes/artifacts/c2.json
deleted file mode 100755
index 76dfd4b..0000000
--- a/samples/group-scaling/kubernetes/artifacts/c2.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "type": "c2",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c2",
- "description": "c2 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "mock",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "name": "network-non-routable",
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "maxInstanceLimit": "2",
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "vishanth-key"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/kubernetes/artifacts/c3.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/kubernetes/artifacts/c3.json b/samples/group-scaling/kubernetes/artifacts/c3.json
deleted file mode 100755
index 59a6388..0000000
--- a/samples/group-scaling/kubernetes/artifacts/c3.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "type": "c3",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c3",
- "description": "c3 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "mock",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "name": "network-non-routable",
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "maxInstanceLimit": "2",
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "vishanth-key"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/kubernetes/artifacts/c4.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/kubernetes/artifacts/c4.json b/samples/group-scaling/kubernetes/artifacts/c4.json
deleted file mode 100755
index 2032f67..0000000
--- a/samples/group-scaling/kubernetes/artifacts/c4.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "type": "c4",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c4",
- "description": "c4 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "mock",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "name": "network-non-routable",
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "maxInstanceLimit": "2",
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "vishanth-key"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/kubernetes/artifacts/composite_application.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/kubernetes/artifacts/composite_application.json b/samples/group-scaling/kubernetes/artifacts/composite_application.json
deleted file mode 100644
index e479825..0000000
--- a/samples/group-scaling/kubernetes/artifacts/composite_application.json
+++ /dev/null
@@ -1,95 +0,0 @@
-{
- "applicationId": "appscaling",
- "alias": "appscaling",
- "components": {
- "groups": [
- {
- "name": "group1",
- "alias": "mygroup1",
- "groupMinInstances": 1,
- "groupMaxInstances": 1,
- "groups": [
- {
- "name": "group2",
- "alias": "mygroup2",
- "groupMinInstances": 1,
- "groupMaxInstances": 2,
- "cartridges": [
- {
- "type": "c2",
- "cartridgeMin": 2,
- "cartridgeMax": 4,
- "subscribableInfo": {
- "alias": "group2c2",
- "autoscalingPolicy": "autoscale_policy_c2"
- "artifactRepository":{
- "privateRepo":false,
- "repoUrl":"https://github.com/imesh/stratos-c2-applications.git",
- "repoUsername":"",
- "repoPassword":""
- }
- }
- },
- {
- "type": "c3",
- "cartridgeMin": 1,
- "cartridgeMax": 2,
- "subscribableInfo": {
- "alias": "group2c3",
- "autoscalingPolicy": "autoscale_policy_c3"
- "artifactRepository":{
- "privateRepo":false,
- "repoUrl":"https://github.com/imesh/stratos-c3-applications.git",
- "repoUsername":"",
- "repoPassword":""
- }
- }
- }
- ]
- }
- ],
- "cartridges": [
- {
- "type": "c1",
- "cartridgeMin": 2,
- "cartridgeMax": 4,
- "subscribableInfo": {
- "alias": "group1c1",
- "autoscalingPolicy": "autoscale_policy_c1"
- "artifactRepository":{
- "privateRepo":false,
- "repoUrl":"https://github.com/imesh/stratos-c1-applications.git",
- "repoUsername":"",
- "repoPassword":""
- }
- }
- }
- ]
- }
- ],
- "cartridges": [
- {
- "type": "c4",
- "cartridgeMin": 1,
- "cartridgeMax": 2,
- "subscribableInfo": {
- "alias": "myc4",
- "autoscalingPolicy": "autoscale_policy_c4"
- "artifactRepository":{
- "privateRepo":false,
- "repoUrl":"https://github.com/imesh/stratos-c4-applications.git",
- "repoUsername":"",
- "repoPassword":""
- }
- }
- }
- ],
- "dependencies": {
- "startupOrders": [
- "group.group1,cartridge.c4"
- ],
- "terminationBehaviour": "terminate-dependents"
- }
- }
-}
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/kubernetes/artifacts/group1.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/kubernetes/artifacts/group1.json b/samples/group-scaling/kubernetes/artifacts/group1.json
deleted file mode 100644
index 9acf5e6..0000000
--- a/samples/group-scaling/kubernetes/artifacts/group1.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "name": "group1",
- "groups": [
- {
- "name": "group2",
- "groupScalingEnabled": "true",
- "cartridges": [
- "c2",
- "c3"
- ],
- "dependencies": {
- "startupOrders": [
- "cartridge.c3,cartridge.c2"
- ],
- "scalingDependants": [
- "cartridge.c3, cartridge.c2"
- ],
- "terminationBehaviour": "terminate-all"
- }
- }
- ],
- "cartridges": [
- "c1"
- ],
- "dependencies": {
- "startupOrders": [
- "cartridge.c1,group.group2"
- ],
- "scalingDependants": [
- "cartridge.c1, group.group2"
- ],
- "terminationBehaviour": "terminate-dependents"
- }
-}
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/kubernetes/artifacts/kubernetes-cluster.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/kubernetes/artifacts/kubernetes-cluster.json b/samples/group-scaling/kubernetes/artifacts/kubernetes-cluster.json
deleted file mode 100644
index 228eeb3..0000000
--- a/samples/group-scaling/kubernetes/artifacts/kubernetes-cluster.json
+++ /dev/null
@@ -1,55 +0,0 @@
-{
- "clusterId": "kubernetes-cluster-1",
- "description": "Kubernetes CoreOS cluster",
- "kubernetesMaster": {
- "hostId" : "KubHostMaster1",
- "hostname" : "master.dev.kubernetes.example.org",
- "hostIpAddress" : "172.17.8.100",
- "property" : [
- ]
- },
-
- "portRange" : {
- "upper": "5000",
- "lower": "4500"
- },
-
- "kubernetesHosts": [
- {
- "hostId" : "KubHostSlave1",
- "hostname" : "slave1.dev.kubernetes.example.org",
- "hostIpAddress" : "172.17.8.101",
- "property" : [
- ]
- },
- {
- "hostId" : "KubHostSlave2",
- "hostname" : "slave2.dev.kubernetes.example.org",
- "hostIpAddress" : "172.17.8.102",
- "property" : [
- ]
- }
- ],
- "property":[
- {
- "name":"payload_parameter.MB_IP",
- "value":"172.17.8.1"
- },
- {
- "name":"payload_parameter.MB_PORT",
- "value":"1883"
- },
- {
- "name":"payload_parameter.CEP_IP",
- "value":"172.17.8.1"
- },
- {
- "name":"payload_parameter.CEP_PORT",
- "value":"7711"
- },
- {
- "name":"payload_parameter.LOG_LEVEL",
- "value":"DEBUG"
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/kubernetes/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/group-scaling/kubernetes/deploy.sh b/samples/group-scaling/kubernetes/deploy.sh
deleted file mode 100755
index 8a87f07..0000000
--- a/samples/group-scaling/kubernetes/deploy.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-# Create autoscale policy
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/autoscale-policy-c1.json' -k -v -u admin:admin https://localhost:9443/api/autoscalingPolicies
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/autoscale-policy-c2.json' -k -v -u admin:admin https://localhost:9443/api/autoscalingPolicies
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/autoscale-policy-c3.json' -k -v -u admin:admin https://localhost:9443/api/autoscalingPolicies
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/autoscale-policy-c4.json' -k -v -u admin:admin https://localhost:9443/api/autoscalingPolicies
-
-# Deploy c3 cartridge
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/c3.json' -k -v -u admin:admin https://localhost:9443/api/cartridges
-
-# Deploy c4 cartridge
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/c4.json' -k -v -u admin:admin https://localhost:9443/api/cartridges
-
-# Deploy c1 cartride
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/c1.json' -k -v -u admin:admin https://localhost:9443/api/cartridges
-
-# Deploy c2 cartride
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/c2.json' -k -v -u admin:admin https://localhost:9443/api/cartridges
-
-# Deploy group
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/group1.json' -k -v -u admin:admin https://localhost:9443/api/cartridgeGroups
-
-sleep 3
-# Create application
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/composite_application.json' -k -v -u admin:admin https://localhost:9443/api/applications
-
-sleep 3
-# Deploy application
-curl -X POST -H "Content-Type: application/json" -d@'artifacts/app_deployment_policy.json' -k -v -u admin:admin https://localhost:9443/api/applications/appscaling/deploy
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/kubernetes/undeploy.sh
----------------------------------------------------------------------
diff --git a/samples/group-scaling/kubernetes/undeploy.sh b/samples/group-scaling/kubernetes/undeploy.sh
deleted file mode 100755
index b661344..0000000
--- a/samples/group-scaling/kubernetes/undeploy.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-# undeploy application
-curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin https://localhost:9443/api/applications/appscaling/undeploy
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/mock/artifacts/app_deployment_policy.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/mock/artifacts/app_deployment_policy.json b/samples/group-scaling/mock/artifacts/app_deployment_policy.json
deleted file mode 100644
index e0b7b99..0000000
--- a/samples/group-scaling/mock/artifacts/app_deployment_policy.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "applicationId": "appscaling",
- "applicationPolicy": {
- "networkPartition": [
- {
- "id": "openstack_R1",
- "activeByDefault": "true",
- "partitions": [
- {
- "id": "P1",
- "provider": "mock",
- "property": [
- {
- "name": "region",
- "value": "RegionOne"
- }
- ]
- }
- ]
- }
- ]
- },
- "childPolicies": [
- {
- "alias": "myc4",
- "networkPartition": [
- {
- "id": "openstack_R1",
- "partitionAlgo": "one-after-another",
- "partitions": [
- {
- "id": "P1",
- "max": 2
- }
- ]
- }
- ]
- },
- {
- "alias": "group1c1",
- "networkPartition": [
- {
- "id": "openstack_R1",
- "partitionAlgo": "one-after-another",
- "partitions": [
- {
- "id": "P1",
- "max": 4
- }
- ]
- }
- ]
- },
- {
- "alias": "mygroup2",
- "networkPartition": [
- {
- "id": "openstack_R1",
- "partitionAlgo": "one-after-another",
- "partitions": [
- {
- "id": "P1",
- "max": 2
- }
- ]
- }
- ]
- }
- ]
-}
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/mock/artifacts/autoscale-policy-c1.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/mock/artifacts/autoscale-policy-c1.json b/samples/group-scaling/mock/artifacts/autoscale-policy-c1.json
deleted file mode 100755
index 78d280c..0000000
--- a/samples/group-scaling/mock/artifacts/autoscale-policy-c1.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscale_policy_c1",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 80
- },
- "memoryConsumption": {
- "threshold": 80
- },
- "loadAverage": {
- "threshold": 50
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/mock/artifacts/autoscale-policy-c2.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/mock/artifacts/autoscale-policy-c2.json b/samples/group-scaling/mock/artifacts/autoscale-policy-c2.json
deleted file mode 100755
index b908013..0000000
--- a/samples/group-scaling/mock/artifacts/autoscale-policy-c2.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscale_policy_c2",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 90
- },
- "memoryConsumption": {
- "threshold": 5
- },
- "loadAverage": {
- "threshold": 50
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/mock/artifacts/autoscale-policy-c3.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/mock/artifacts/autoscale-policy-c3.json b/samples/group-scaling/mock/artifacts/autoscale-policy-c3.json
deleted file mode 100755
index f2942a0..0000000
--- a/samples/group-scaling/mock/artifacts/autoscale-policy-c3.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscale_policy_c3",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 100
- },
- "memoryConsumption": {
- "threshold": 10
- },
- "loadAverage": {
- "threshold": 50
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/mock/artifacts/autoscale-policy-c4.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/mock/artifacts/autoscale-policy-c4.json b/samples/group-scaling/mock/artifacts/autoscale-policy-c4.json
deleted file mode 100755
index ce596b4..0000000
--- a/samples/group-scaling/mock/artifacts/autoscale-policy-c4.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscale_policy_c4",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 50
- },
- "memoryConsumption": {
- "threshold": 85
- },
- "loadAverage": {
- "threshold": 75
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/mock/artifacts/c1.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/mock/artifacts/c1.json b/samples/group-scaling/mock/artifacts/c1.json
deleted file mode 100755
index 55408a9..0000000
--- a/samples/group-scaling/mock/artifacts/c1.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "type": "c1",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c1",
- "description": "c1 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "mock",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "name": "network-non-routable",
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "maxInstanceLimit": "2",
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "reka"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/mock/artifacts/c2.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/mock/artifacts/c2.json b/samples/group-scaling/mock/artifacts/c2.json
deleted file mode 100755
index 99f9a6e..0000000
--- a/samples/group-scaling/mock/artifacts/c2.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "type": "c2",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c2",
- "description": "c2 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "mock",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "name": "network-non-routable",
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "maxInstanceLimit": "2",
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "reka"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/mock/artifacts/c3.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/mock/artifacts/c3.json b/samples/group-scaling/mock/artifacts/c3.json
deleted file mode 100755
index 60eebe4..0000000
--- a/samples/group-scaling/mock/artifacts/c3.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "type": "c3",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c3",
- "description": "c3 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "mock",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "name": "network-non-routable",
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "maxInstanceLimit": "2",
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "reka"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/mock/artifacts/c4.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/mock/artifacts/c4.json b/samples/group-scaling/mock/artifacts/c4.json
deleted file mode 100755
index 9190082..0000000
--- a/samples/group-scaling/mock/artifacts/c4.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "type": "c4",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c4",
- "description": "c4 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "mock",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "name": "network-non-routable",
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "maxInstanceLimit": "2",
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "reka"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/mock/artifacts/composite_application.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/mock/artifacts/composite_application.json b/samples/group-scaling/mock/artifacts/composite_application.json
deleted file mode 100644
index 027575a..0000000
--- a/samples/group-scaling/mock/artifacts/composite_application.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "applicationId": "appscaling",
- "alias": "appscaling",
- "components": {
- "groups": [
- {
- "name": "group1",
- "alias": "mygroup1",
- "groupMinInstances": 1,
- "groupMaxInstances": 1,
- "groups": [
- {
- "name": "group2",
- "alias": "mygroup2",
- "groupMinInstances": 1,
- "groupMaxInstances": 2,
- "cartridges": [
- {
- "type": "c2",
- "cartridgeMin": 2,
- "cartridgeMax": 4,
- "subscribableInfo": {
- "alias": "group2c2",
- "autoscalingPolicy": "autoscale_policy_c2"
- }
- },
- {
- "type": "c3",
- "cartridgeMin": 1,
- "cartridgeMax": 2,
- "subscribableInfo": {
- "alias": "group2c3",
- "autoscalingPolicy": "autoscale_policy_c3"
- }
- }
- ]
- }
- ],
- "cartridges": [
- {
- "type": "c1",
- "cartridgeMin": 2,
- "cartridgeMax": 4,
- "subscribableInfo": {
- "alias": "group1c1",
- "autoscalingPolicy": "autoscale_policy_c1"
- }
- }
- ]
- }
- ],
- "cartridges": [
- {
- "type": "c4",
- "cartridgeMin": 1,
- "cartridgeMax": 2,
- "subscribableInfo": {
- "alias": "myc4",
- "autoscalingPolicy": "autoscale_policy_c4"
- }
- }
- ],
- "dependencies": {
- "startupOrders": [
- "group.group1,cartridge.c4"
- ],
- "terminationBehaviour": "terminate-dependents"
- }
- }
-}
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/mock/artifacts/group1.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/mock/artifacts/group1.json b/samples/group-scaling/mock/artifacts/group1.json
deleted file mode 100644
index 9acf5e6..0000000
--- a/samples/group-scaling/mock/artifacts/group1.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "name": "group1",
- "groups": [
- {
- "name": "group2",
- "groupScalingEnabled": "true",
- "cartridges": [
- "c2",
- "c3"
- ],
- "dependencies": {
- "startupOrders": [
- "cartridge.c3,cartridge.c2"
- ],
- "scalingDependants": [
- "cartridge.c3, cartridge.c2"
- ],
- "terminationBehaviour": "terminate-all"
- }
- }
- ],
- "cartridges": [
- "c1"
- ],
- "dependencies": {
- "startupOrders": [
- "cartridge.c1,group.group2"
- ],
- "scalingDependants": [
- "cartridge.c1, group.group2"
- ],
- "terminationBehaviour": "terminate-dependents"
- }
-}
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/mock/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/group-scaling/mock/deploy.sh b/samples/group-scaling/mock/deploy.sh
deleted file mode 100755
index 8a87f07..0000000
--- a/samples/group-scaling/mock/deploy.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-# Create autoscale policy
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/autoscale-policy-c1.json' -k -v -u admin:admin https://localhost:9443/api/autoscalingPolicies
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/autoscale-policy-c2.json' -k -v -u admin:admin https://localhost:9443/api/autoscalingPolicies
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/autoscale-policy-c3.json' -k -v -u admin:admin https://localhost:9443/api/autoscalingPolicies
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/autoscale-policy-c4.json' -k -v -u admin:admin https://localhost:9443/api/autoscalingPolicies
-
-# Deploy c3 cartridge
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/c3.json' -k -v -u admin:admin https://localhost:9443/api/cartridges
-
-# Deploy c4 cartridge
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/c4.json' -k -v -u admin:admin https://localhost:9443/api/cartridges
-
-# Deploy c1 cartride
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/c1.json' -k -v -u admin:admin https://localhost:9443/api/cartridges
-
-# Deploy c2 cartride
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/c2.json' -k -v -u admin:admin https://localhost:9443/api/cartridges
-
-# Deploy group
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/group1.json' -k -v -u admin:admin https://localhost:9443/api/cartridgeGroups
-
-sleep 3
-# Create application
-curl -X POST -H "Content-Type: application/json" -d @'artifacts/composite_application.json' -k -v -u admin:admin https://localhost:9443/api/applications
-
-sleep 3
-# Deploy application
-curl -X POST -H "Content-Type: application/json" -d@'artifacts/app_deployment_policy.json' -k -v -u admin:admin https://localhost:9443/api/applications/appscaling/deploy
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/mock/undeploy.sh
----------------------------------------------------------------------
diff --git a/samples/group-scaling/mock/undeploy.sh b/samples/group-scaling/mock/undeploy.sh
deleted file mode 100755
index b661344..0000000
--- a/samples/group-scaling/mock/undeploy.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-# undeploy application
-curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin https://localhost:9443/api/applications/appscaling/undeploy
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/openstack/artifacts/app_deployment_policy.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/openstack/artifacts/app_deployment_policy.json b/samples/group-scaling/openstack/artifacts/app_deployment_policy.json
deleted file mode 100644
index aa873aa..0000000
--- a/samples/group-scaling/openstack/artifacts/app_deployment_policy.json
+++ /dev/null
@@ -1,71 +0,0 @@
-{
- "applicationId": "appscaling",
- "applicationPolicy": {
- "networkPartition": [
- {
- "id": "openstack_R1",
- "activeByDefault": "true",
- "partitions": [
- {
- "id": "P1",
- "provider": "openstack",
- "property": [
- {
- "name": "region",
- "value": "RegionOne"
- }
- ]
- }
- ]
- }
- ]
- },
- "childPolicies": [
- {
- "alias": "myc4",
- "networkPartition": [
- {
- "id": "openstack_R1",
- "partitionAlgo": "one-after-another",
- "partitions": [
- {
- "id": "P1",
- "max": 2
- }
- ]
- }
- ]
- },
- {
- "alias": "group1c1",
- "networkPartition": [
- {
- "id": "openstack_R1",
- "partitionAlgo": "one-after-another",
- "partitions": [
- {
- "id": "P1",
- "max": 4
- }
- ]
- }
- ]
- },
- {
- "alias": "mygroup2",
- "networkPartition": [
- {
- "id": "openstack_R1",
- "partitionAlgo": "one-after-another",
- "partitions": [
- {
- "id": "P1",
- "max": 2
- }
- ]
- }
- ]
- }
- ]
-}
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/openstack/artifacts/autoscale-policy-c1.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/openstack/artifacts/autoscale-policy-c1.json b/samples/group-scaling/openstack/artifacts/autoscale-policy-c1.json
deleted file mode 100755
index 78d280c..0000000
--- a/samples/group-scaling/openstack/artifacts/autoscale-policy-c1.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscale_policy_c1",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 80
- },
- "memoryConsumption": {
- "threshold": 80
- },
- "loadAverage": {
- "threshold": 50
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/openstack/artifacts/autoscale-policy-c2.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/openstack/artifacts/autoscale-policy-c2.json b/samples/group-scaling/openstack/artifacts/autoscale-policy-c2.json
deleted file mode 100755
index b908013..0000000
--- a/samples/group-scaling/openstack/artifacts/autoscale-policy-c2.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscale_policy_c2",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 90
- },
- "memoryConsumption": {
- "threshold": 5
- },
- "loadAverage": {
- "threshold": 50
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/openstack/artifacts/autoscale-policy-c3.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/openstack/artifacts/autoscale-policy-c3.json b/samples/group-scaling/openstack/artifacts/autoscale-policy-c3.json
deleted file mode 100755
index f2942a0..0000000
--- a/samples/group-scaling/openstack/artifacts/autoscale-policy-c3.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscale_policy_c3",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 100
- },
- "memoryConsumption": {
- "threshold": 10
- },
- "loadAverage": {
- "threshold": 50
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/openstack/artifacts/autoscale-policy-c4.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/openstack/artifacts/autoscale-policy-c4.json b/samples/group-scaling/openstack/artifacts/autoscale-policy-c4.json
deleted file mode 100755
index ce596b4..0000000
--- a/samples/group-scaling/openstack/artifacts/autoscale-policy-c4.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscale_policy_c4",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 50
- },
- "memoryConsumption": {
- "threshold": 85
- },
- "loadAverage": {
- "threshold": 75
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/openstack/artifacts/c1.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/openstack/artifacts/c1.json b/samples/group-scaling/openstack/artifacts/c1.json
deleted file mode 100755
index 2c78276..0000000
--- a/samples/group-scaling/openstack/artifacts/c1.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "type": "c1",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c1",
- "description": "c1 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "openstack",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "name": "network-non-routable",
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "maxInstanceLimit": "2",
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "vishanth-key"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/openstack/artifacts/c2.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/openstack/artifacts/c2.json b/samples/group-scaling/openstack/artifacts/c2.json
deleted file mode 100755
index 8b98f2e..0000000
--- a/samples/group-scaling/openstack/artifacts/c2.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "type": "c2",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c2",
- "description": "c2 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "openstack",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "name": "network-non-routable",
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "maxInstanceLimit": "2",
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "vishanth-key"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/d7f100da/samples/group-scaling/openstack/artifacts/c3.json
----------------------------------------------------------------------
diff --git a/samples/group-scaling/openstack/artifacts/c3.json b/samples/group-scaling/openstack/artifacts/c3.json
deleted file mode 100755
index 96d8b0f..0000000
--- a/samples/group-scaling/openstack/artifacts/c3.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "type": "c3",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c3",
- "description": "c3 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "openstack",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "name": "network-non-routable",
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "maxInstanceLimit": "2",
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "vishanth-key"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ]
-}