Yes, Reka, you can have many properties as you wish for a cartridge.

On Fri, Dec 13, 2013 at 10:06 AM, Reka Thirunavukkarasu <[email protected]>wrote:

> Hi Nirmal,
>
> Would this cover the addition of dynamic payload to the LB  cartridges? In
> case, when we have HAProxy or other LB's as cartridges, we may need to
> configure more parameters (dynamically via the REST API).
>
> Thanks,
> Reka
>
>
> On Fri, Dec 13, 2013 at 9:20 AM, Nirmal Fernando 
> <[email protected]>wrote:
>
>> Hi All,
>>
>> Here's a sample LB Cartridge configuration. Let me know your thoughts.
>>
>> {
>> "cartridgeDefinitionBean": {
>>       "type": "lb",
>>       "provider": "apache",
>>       "displayName": "load balancer",
>>       "description": "LB Cartridge",
>>       "version": "4",
>>       "multiTenant": "false",
>>       "portMapping": [
>>          {
>>       "protocol": "http",
>>           "port": "8280",
>>           "proxyPort": "8280"
>>          },
>>          {
>>       "protocol": "https",
>>           "port": "8243",
>>           "proxyPort": "8243"
>>          }
>>        ],
>>       "deployment": {
>>         },
>>        "iaasProvider": [
>>      {
>>           "type": "ec2",
>>           "imageId": "ap-southeast-1/ami-efb2fcbd",
>>           "maxInstanceLimit": "5",
>>           "property": [
>>         {
>>              "name": "instanceType",
>>              "value": "t1.micro"
>>             }
>>        ]
>>          }
>>       ],
>>      "loadBalancer": {
>>         },
>>       "property": [
>>      {
>>       "name": "load.balancer",
>>       "value": "true"
>>      }
>>       ]
>>     }
>>  }
>>
>>
>> --
>> Best Regards,
>> Nirmal
>>
>> Nirmal Fernando.
>> PPMC Member & Committer of Apache Stratos,
>> Senior Software Engineer, WSO2 Inc.
>>
>> Blog: http://nirmalfdo.blogspot.com/
>>
>
>
>
> --
> Reka Thirunavukkarasu
> Software Engineer,
> WSO2, Inc.:http://wso2.com,
> Mobile: +94776442007
>
>
>


-- 
Best Regards,
Nirmal

Nirmal Fernando.
PPMC Member & Committer of Apache Stratos,
Senior Software Engineer, WSO2 Inc.

Blog: http://nirmalfdo.blogspot.com/

Reply via email to