"Performance"(性能)选项卡上的属性用于指定以下负载平衡设置:
用于选择托管应用程序会话所使用的 SGD 服务器的方法
用于选择托管应用程序所使用的应用服务器的方法
从命令行,使用第 D.16 节 “tarantella config list”命令列出这些设置,使用第 D.15 节 “tarantella config edit”命令编辑这些设置。
对这些属性所做的更改会立即生效。
用法:选择一个选项。
用于在应用程序启动时选择阵列中可以托管应用程序会话的 SGD 服务器的算法。换句话说,用于在用户启动应用程序时选择在何处运行协议引擎的方法。
选择 "Server Hosting the User Session"(用来托管用户会话的服务器)选项来选择阵列中托管用户会话的 SGD 服务器。
命令选项:--sessions-loadbalancing-algorithm
algorithm
用法:将 algorithm
替换为用于应用程序会话的负载平衡算法。
以下算法可供使用:
Server Hosting the User Session(用于托管用户会话的服务器)-.../_beans/com.sco.tta.server.loadbalancing.tier2.LocalLoadBalancingPolicy
Least CPU Usage(最小的 CPU 使用率)-.../_beans/com.sco.tta.server.loadbalancing.tier2.CpuLoadBalancingPolicy
Fewest Application Sessions(最少的应用程序会话)-.../_beans/com.sco.tta.server.loadbalancing.tier2.SessionLoadBalancingPolicy
以下示例指定托管用户会话的 SGD 服务器用于托管应用程序会话。
--sessions-loadbalancing-algorithm \ .../_beans/com.sco.tta.server.loadbalancing.tier2.LocalLoadBalancingPolicy
用法:选择一个选项。
SGD 用于选择要运行应用程序的最佳应用服务器的默认算法。从在应用程序对象的 "Hosting Application Servers"(托管应用程序服务器)选项卡上定义的那些服务器中选择服务器。
仅当应用程序对象的第 C.2.5 节 “Application Load Balancing(应用程序负载平衡)”属性的值未设置为 "Override Global Setting"(覆盖全局设置)时才使用此属性。
选择以下设置之一:
Most Free Memory(最多可用内存)。选择具有最多可用内存的应用服务器。
Least CPU Usage(最小的 CPU 可用率)。选择具有最多中央处理器 (central processing unit, CPU) 闲置时间的应用服务器。
Fewest Applications(最少的应用程序)。选择正通过 SGD 运行最少的应用程序会话的应用服务器。这是默认设置。
要使用 "Most Free Memory"(最多可用内存)和 "Least CPU Usage"(最小的 CPU 使用率)算法,必须在应用服务器上安装 SGD 增强模块。
命令选项:--launch-loadbalancing-algorithm cpu | memory | sessions
用法:指定有效选项。
在以下示例中,使用具有最少应用程序会话的应用服务器运行应用程序。
--launch-loadbalancing-algorithm sessions