You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by "Nirmal Fernando (JIRA)" <ji...@apache.org> on 2014/12/03 07:22:12 UTC

[jira] [Created] (STRATOS-1020) Auto-generate the deployment policy id

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)