设置 Liberty 服务器集群
可以将 Liberty 配置到服务器集群以实现应用程序高可用性和扩展。
collectiveController-1.0 功能部件及其功能仅在多服务器产品(例如,WebSphere® Application Server Network Deployment Liberty 和 WebSphere Application Server for z/OS® Liberty)中可用。该功能部件在 WebSphere Application Server
Liberty 或 WebSphere Application Server Liberty Core 之类的单服务器产品中不可用。如果已安装多服务器产品,那么可使用其 collectiveController-1.0
功能部件以处理单服务器产品中的集合体成员。
Liberty 服务器集群包含两个或多个 Liberty 服务器,这些服务器已配置到 Liberty 集合体中的服务器集群。Liberty 服务器集群在集合体中具有唯一名称。collectiveController-1.0 功能部件通过 ClusterManager MBean 来支持对 Liberty 服务器集群执行若干个操作:
- 列出集群
- 启动集群
- 停止集群
- 列出集群成员
- 生成集群插件配置
要成为服务器集群的一部分,Liberty 必须是 Liberty 集合体的成员,而且也必须使用 clusterMember 功能部件进行配置。
一个集合体成员只能属于一个服务器集群。所有集群成员必须属于同一集合体。可以在同一个集合体中配置多个服务器集群。下图说明了这些关系。
图 1. Liberty 服务器集群
