Sun GlassFish Communications Server 2.0 High Availability Administration Guide

Editing Load Balancer Settings

After you have created a load balancer, you can edit its settings and the settings of its configuration using the asadmin set command.

To edit a converged load balancer setting, use the following command:


asadmin set config-name-config.availability-service.converged-load-balancer.setting

For example:


asadmin set c1-config.availability-service.converged-load-balancer.config-file=myclb.xml

asadmin set c1-config.availability-service.converged-load-balancer.auto-commit=true

asadmin set c1-config.availability-service.converged-load-balancer.converged-lb-config-name=myclb-config

To edit a converged load balancer proxy setting, use the following command:


asadmin set config-name-config.availability-service.converged-load-balancer.proxy.setting

For example:


asadmin set c1-config.availability-service.converged-load-balancer.proxy.request-pool-size=50
asadmin set c1-config.availability-service.converged-load-balancer.proxy.send-retry-count=3
asadmin set c1-config.availability-service.converged-load-balancer.proxy.read-time-out=1500

To edit a converged load balancer configuration policy setting, use the following command:


asadmin set domain.converged-lb-config.clb-config.converged-lb-policy.setting

For example:


asadmin set domain.converged-lb-configs.myclb-config.converged-lb-policy.http=round-robin

asadmin set domain.converged-lb-configs.myclb-config.converged-lb-policy.sip=from-tag,call-id

To edit the self-loadbalance setting for a cluster, use the following command:


asadmin set domain.converged-lb-config.clbcfg.converged-lb-cluster-ref.cluster.self-loadbalance=setting

For example:


asadmin set domain.converged-lb-configs.myclb-config.converged-lb-cluster-ref.clust1.self-loadbalance=true

Note –

A load balancer with Self Load Balancing disabled is not supported in a production environment.


For more information about the asadmin set command, see the Sun GlassFish Communications Server 2.0 Reference Manual.