# Copyright (c) 2005-2010, WSO2 Inc. (http://wso2.com) All Rights Reserved.
#
# WSO2 Inc. licenses this file to you under the Apache License,
# Version 2.0 (the "License"); you may not use this file except
# in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.

#configuration details of WSO2 Load Balancer
loadbalancer {
    # minimum number of load balancer instances 
    instances           1;
    # whether autoscaling should be enabled or not, currently we do not support autoscaling
    enable_autoscaler   false;
    # End point reference of the Autoscaler Service
#    autoscaler_service_epr  https://10.100.3.104:9443/services/AutoscalerService/; 
    autoscaler_service_epr  https://192.168.1.2:9443/services/AutoscalerService/; 
#    autoscaler_service_epr  https://127.0.0.1:9443/services/AutoscalerService/;
    # interval between two task executions in milliseconds 
    autoscaler_task_interval 15000;
}

# services' details which are fronted by this WSO2 Load Balancer
services {
    # default parameter values to be used in all services
    defaults {
        min_app_instances       1;
        max_app_instances       5;
        queue_length_per_node   3;
        rounds_to_average       2;
        instances_per_scale_up  1;
        message_expiry_time     60000;
    }

    appserver {
        # multiple hosts should be separated by a comma.
        hosts     appserver.dev.example.com,as.cloud-test.wso2.com;
        domains   {
#            wso2.as1.domain {
 #               tenant_range    1-100;
  #          }
   #         wso2.as2.domain {
    #            tenant_range    101-200;
     #       }
            wso2.as.domain {
                # all tenants other than 1-200 will belong to this domain.
                tenant_range    *;
            }
        }
    }

#    esb {
        # multiple hosts should be separated by a comma.
 #       hosts                   esb.cloud-test.wso2.com;
  #      domains   {
   #         wso2.esb.domain {
    #            tenant_range    *;
     #       }
      #  }
   # }

   # governance {
    #    hosts                   governance.cloud-test.wso2.com;
     #   domains   {
      #      wso2.governance1.domain {
       #         tenant_range    1-100;
        #    }
         #   wso2.governance2.domain {
          #      tenant_range    101-200;
           # }
           # wso2.governance3.domain {
            #    tenant_range    *;
           # }
       # }
   # }

    #identity {
     #   hosts                   identity.cloud-test.wso2.com;
      #  domains   {
       #     wso2.identity1.domain {
        #        tenant_range    1-100;
         #   }
          #  wso2.identity2.domain {
           #     tenant_range    101-200;
           # }
           # wso2.identity3.domain {
            #    tenant_range    *;
           # }
       # }
#    }
    
}
