stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nirmal Fernando (JIRA)" <j...@apache.org>
Subject [jira] [Created] (STRATOS-1020) Auto-generate the deployment policy id
Date Wed, 03 Dec 2014 06:22:12 GMT
Nirmal Fernando created STRATOS-1020:
----------------------------------------

             Summary: Auto-generate the deployment policy id
                 Key: STRATOS-1020
                 URL: https://issues.apache.org/jira/browse/STRATOS-1020
             Project: Stratos
          Issue Type: Improvement
          Components: Autoscaler
    Affects Versions: 4.1.0 M4
            Reporter: Nirmal Fernando
            Assignee: Nirmal Fernando
             Fix For: 4.1.0 Alpha


Suggestion is to auto generate deployment policy as below:

deployment policy id = application id + UUID

Please refer to the dev@ thread: Deployment Policy per an Application? for more information.

A sample json after this change:

{
    "applicationPolicy": {
        "applicationId": "test_app_os4",
        "networkPartition": [
            {
                "id": "openstack_R1",
                "activeByDefault": "true",
                "partitions": [
                    {
                        "id": "P1",
                        "provider": "openstack",
                        "property": [
                            {
                                "name": "region",
                                "value": "RegionOne"
                            }
                        ]

                    }
                ]
            }

        ]

    },
    "childPolicies": [
        {
            "childId": "mytomcat",
            "networkPartition": [
                {
                    "id": "openstack_R1",
                    "partitionAlgo": "one-after-another",
                    "partitions": [
                        {
                            "id": "P1",
                            "max": 5
                        }
                    ]
                }
            ]
        }
    ]

}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message