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 <ni...@gmail.com> on 2013/12/13 04:50:43 UTC
Sample LB Cartridge definition as json
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/
Re: Sample LB Cartridge definition as json
Posted by Reka Thirunavukkarasu <re...@wso2.com>.
Great..!
On Fri, Dec 13, 2013 at 10:11 AM, Nirmal Fernando <ni...@gmail.com>wrote:
> Yes, Reka, you can have many properties as you wish for a cartridge.
>
>
> On Fri, Dec 13, 2013 at 10:06 AM, Reka Thirunavukkarasu <re...@wso2.com>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 <ni...@gmail.com>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/
>
--
Reka Thirunavukkarasu
Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007
Re: Sample LB Cartridge definition as json
Posted by Nirmal Fernando <ni...@gmail.com>.
Yes, Reka, you can have many properties as you wish for a cartridge.
On Fri, Dec 13, 2013 at 10:06 AM, Reka Thirunavukkarasu <re...@wso2.com>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 <ni...@gmail.com>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/
Re: Sample LB Cartridge definition as json
Posted by Reka Thirunavukkarasu <re...@wso2.com>.
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 <ni...@gmail.com>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