cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edi...@apache.org
Subject [35/50] [abbrv] git commit: updated refs/heads/object_store to f7c1b71
Date Fri, 17 May 2013 07:20:39 GMT
CLOUDSTACK-2462: Failed to create GSLB rule with "proximity" algorithm

add RTT as load balancing method for GSLB vserver


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/33e68391
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/33e68391
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/33e68391

Branch: refs/heads/object_store
Commit: 33e683915c3083ac60a578fc90a7d90a64cb028e
Parents: d2d0398
Author: Murali Reddy <muralimmreddy@gmail.com>
Authored: Thu May 16 15:18:02 2013 +0530
Committer: Murali Reddy <muralimmreddy@gmail.com>
Committed: Thu May 16 15:19:42 2013 +0530

----------------------------------------------------------------------
 .../cloud/network/resource/NetscalerResource.java  |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/33e68391/plugins/network-elements/netscaler/src/com/cloud/network/resource/NetscalerResource.java
----------------------------------------------------------------------
diff --git a/plugins/network-elements/netscaler/src/com/cloud/network/resource/NetscalerResource.java
b/plugins/network-elements/netscaler/src/com/cloud/network/resource/NetscalerResource.java
index 98e1461..c0d4599 100644
--- a/plugins/network-elements/netscaler/src/com/cloud/network/resource/NetscalerResource.java
+++ b/plugins/network-elements/netscaler/src/com/cloud/network/resource/NetscalerResource.java
@@ -1095,7 +1095,15 @@ public class NetscalerResource implements ServerResource {
                 }
 
                 vserver.set_name(vserverName);
-                vserver.set_lbmethod(lbMethod);
+                if ("RoundRobin".equalsIgnoreCase(lbMethod)) {
+                    vserver.set_lbmethod("ROUNDROBIN");
+                } else if ("LeastConn".equalsIgnoreCase(lbMethod)) {
+                    vserver.set_lbmethod("LEASTCONNECTION");
+                } else if ("Proximity".equalsIgnoreCase(lbMethod)) {
+                    vserver.set_lbmethod("RTT");
+                } else {
+                    throw new ExecutionException("Unsupported LB method");
+                }
                 vserver.set_persistencetype(persistenceType);
                 if ("SOURCEIP".equalsIgnoreCase(persistenceType)) {
                     vserver.set_persistenceid(persistenceId);


Mime
View raw message