Sample loadbalancer.conf:
loadbalancer {
# minimum number of load balancer instances
instances 1;
# whether autoscaling enable or not
enable_autoscaler true;
# End point reference of the Autoscaler Service
autoscaler_service_epr https://10.100.3.81:9443/services/AutoscalerService/;
# interval between two task executions in milliseconds
autoscaler_task_interval 1000;
# after an instance booted up, task will wait till this much of time and let the server started up
server_startup_delay 15000;
}
services {
defaults {
min_app_instances 1;
max_app_instances 5;
queue_length_per_node 400;
rounds_to_average 10;
instances_per_scale_up 1;
message_expiry_time 60000;
}
appserver {
hosts appserver.cloud-test.wso2.com,as.cloud-test.wso2.com;
domains {
wso2.as1.domain {
tenant_range 1-100;
}
wso2.as2.domain {
tenant_range 101-200;
}
wso2.as3.domain {
tenant_range *;
}
}
}
}