I'm planning to use the following configuration for service-aware messages
in flight based autoscaling


<definitions xmlns="http://ws.apache.org/ns/synapse";>

    <task
class="org.wso2.carbon.mediator.autoscale2.MessagesInFlightBasedEC2LoadAnalyzerTask"
          name="LoadAnalyzer">

        <!--
            The private key for the ec2
        -->
        <property name="ec2PrivateKey" value="/mnt/payload/pk.pem"/>

        <!--
            The certificate for the ec2
        -->
        <property name="ec2Cert" value="/mnt/payload/cert.pem"/>

        <!--
            The group of the load balancer.
        -->
        <property name="loadBalancerGroup"
value="stratos-appserver-lb,cloud-mysql,default"/>

        <!--
            The amazon instance type for the instances of the load balancer
itself.
            Default is m1.large. Can be changed to m1.small too.
        -->
        <property name="loadBalancerInstanceType" value="m1.large"/>

        <!--
            The key pair
        -->
        <property name="key" value="stratos-1.0.0-keypair"/>

        <!--
            The amazon instance type for the load balanced service
instances.
            Recommended and the default is m1.large.
        -->
        <property name="instanceType" value="m1.large"/>

        <!--
            The group of the service being load balanced.
        -->
        <property name="applicationGroup"
value="as-2011-02-23,cloud-mysql,default"/>

        <!--
            The Amazon availability zone for the instances. 1-c is given as
the default
        -->
        <property name="availabilityZone" value="us-east-1c"/>

        <!--
            The number of load balancer instances
        -->
        <property name="loadBalancerInstances" value="1"/>

        <!--
            The elasticIP property can be overriden by the ELASTIC_IP
environment var,
             which is set in the payload
        -->
        <property name="elasticIP" value="${ELASTIC_IP}"/>

        <!--
            The time in milliseconds which the message takes to expire
        -->
        <property name="messageExpiryTime" value="60000"/>

        <!--
            The load balancer payload file which should be loaded to the
bucket
        -->
        <property name="loadBalancerPayload" value="/mnt/payload.zip"/>


        *<property name="services">*
*            <defaults>*
*               ** <property name="applicationPayload"
value="resources/cluster_node.zip"/>*
*                <property name="minAppInstances" value="1"/>*
*                <property name="maxAppInstances" value="5"/>*
*                <property name="queueLengthPerNode" value="400"/>*
*                <property name="roundsToAverage" value="10"/>*
*                <property name="instancesPerScaleUp" value="1"/>*
*                <property name="availabilityZone" value="us-east-1c"/>*
*            </defaults>*
*            <services>*
*                <service domain="wso2.as.domain">*
*                    <property name="applicationPayload"
value="resources/cluster_node.zip"/>*
*                    <property name="minAppInstances" value="1"/>*
*                    <property name="maxAppInstances" value="5"/>*
*                    <property name="queueLengthPerNode" value="400"/>*
*                    <property name="roundsToAverage" value="10"/>*
*                    <property name="instancesPerScaleUp" value="1"/>*
*                    <property name="availabilityZone" value="us-east-1c"/>*
*                </service>*
*                <service domain="wso2.ds.domain">*
*                    <property name="availabilityZone" value="us-east-1b"/>*
*                </service>*
*                <service domain="wso2.bps.domain">*
*                    <property name="availabilityZone" value="us-east-1a"/>*
*                </service>*
*            </services>*
*        </property>*

        <!--
            The interval to trigger the task in seconds
        -->
        <trigger interval="5"/>
    </task>
</definitions>
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to