stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nirmal Fernando <nirmal070...@apache.org>
Subject Re: [Load Balancer] Configuration Definition Proposal
Date Wed, 27 Nov 2013 14:14:14 GMT
[Forwarding]

On Wed, Nov 27, 2013 at 7:24 PM, Nirmal Fernando <nirmal070125@gmail.com>wrote:

> Imesh,
>
> Please consider following points too.
>
> * There can be servers which has multiple http and https ports. That in
> turn means that a user need to be able to provide a mapping between LB's
> ports and member's ports.
> * There could be multiple host names for a cluster.
> * Tenant partitioning should also be supported.
> * Member could have set of properties.
> * Domain mapping related config.
>
>
>
>
> On Wed, Nov 27, 2013 at 7:06 PM, Imesh Gunaratne <imesh@apache.org> wrote:
>
>> Hi All,
>>
>> Please find the proposal for the Apache Stratos Load Balancer
>> configuration definition below.
>> Inline comments have been added describing each section:
>>
>> loadbalancer {
>>
>>     # Default load balancing algorithm
>>     # Refer algorithm name from algorithms section.
>>     algorithm: round-robin;
>>
>>     # Enable/disable failover handling
>>     # If failover handling is enabled load balancer will retry requests
>> on all members in a
>>     # given cluster if the selected member fails to respond.
>>     failover: true;
>>
>>     # Enable/disable session affinity
>>     # If session affinity is enabled load balancer will track all
>> outgoing sessions and delegate
>>     # incoming requests to members with same sessions.
>>     session-affinity: true;
>>
>>     # Session timeout in milli-seconds
>>     session-timeout: 90000;
>>
>>     # Enable/disable topology event listener
>>     # If this property is set to true, load balancer will listen to
>> topology events and build
>>     # the topology configuration accordingly. If not static configuration
>> given in the services
>>     # section will be used.
>>     topology-event-listener-enabled: true;
>>
>>     # Message broker endpoint
>>     # Provide message broker ip address and port if
>> topology_event_listener_enabled is set to true.
>>     mb-ip: localhost;
>>     mb-port: 5677;
>>
>>     # Enable/disable statistics publisher
>>     stats-publisher-enabled: true;
>>
>>     # Complex event processor endpoint
>>     # Provide CEP ip address and port if stats_publisher_enabled is set
>> to true.
>>     cep-ip: localhost;
>>     cep-port: 7615;
>>
>>     # Load balancing algorithm class names.
>>     algorithms {
>>         round-robin {  # algorithm name
>>             class-name:
>> org.apache.stratos.load.balancer.algorithm.RoundRobin;
>>         }
>>     }
>>
>>     # Load balancer proxy ports for HTTP and HTTPS transports.
>>     proxy-ports {
>>         http: 80;
>>         https: 443;
>>     }
>>
>>     services {
>>         app-server {  # service name
>>             clusters {
>>                 app-server-cluster1 {  # cluster id
>>                     hostname: cluster1.appserver.foo.org;  # host name
>>                     algorithm: round-robin;  # algorithm name
>>                     members {
>>                         m1 {  # member id
>>                             ip-address: 10.0.0.10; # member ip address
>>                             ports {
>>                                 http: 8080;
>>                                 https: 8090;
>>                             }
>>                         }
>>                         m2 {
>>                             ip-address: 10.0.0.11;
>>                             ports {
>>                                 http: 8080;
>>                                 https: 8090;
>>                             }
>>                         }
>>                         m3 {
>>                             ip-address: 10.0.0.12;
>>                             ports {
>>                                 http: 8080;
>>                                 https: 8090;
>>                             }
>>                         }
>>                     }
>>                 }
>>             }
>>         }
>>     }
>> }
>>
>>
>> Please feel free to add your thoughts.
>>
>> Many Thanks
>>  Imesh
>>
>
>
>
> --
> Best Regards,
> Nirmal
>
> Nirmal Fernando.
> PPMC Member & Committer of Apache Stratos,
> Senior Software Engineer, WSO2 Inc.
>
> Blog: http://nirmalfdo.blogspot.com/
>

Mime
View raw message