将 Liberty JVM 服务器配置为集合体控制器
集合体控制器为集合体提供集中管理控制点。 控制器从集合体的成员接收信息。
开始之前
创建并配置 Liberty JVM 服务器。 有关更多信息,请参阅 配置 Liberty JVM 服务器。 对于此任务, JVM 服务器名称为 CONTROL1 , Liberty 服务器名称为 defaultServer。
在 Liberty JVM 服务器 CONTROL1的工作目录中找到 wlpenv 脚本文件。 此脚本用于发出 Liberty 集合体命令。 有关更多信息,请参阅 使用 wlpenv 脚本和 WebSphere Application Server Liberty 命令行实用程序管理 CICS Liberty。
注: 此任务中的所有命令都从包含 Liberty JVM 服务器 CONTROL1的 wlpenv 脚本的目录中运行。
关于此任务
此任务将 Liberty JVM 服务器配置为集合体的控制器。 每个集合体必须至少有一个控制器; 可以将更多控制器作为副本集的一部分添加到集合体。 有关集合体体系结构的更多信息,请参阅 集合体体系结构。
过程
带有 SAF 密钥环的 Liberty JVM 服务器集合体控制器 server.xml
以下 server.xml 显示了如何将 Liberty JVM 服务器配置为集合体控制器。 SAF 证书和密钥环配置有以下标签。
- CONTROLLER.SSH
- 用于 SSH 认证的 SAF 证书。
- CONTROLLER.SSHRING
- 包含证书 CONTROLLER.SSH的 SAF 密钥环。
- CONTROLLER.CERT
- 控制器服务器身份的 SAF 证书,由控制器根 CA 证书签署。
- CONTROLLER.RING
- 包含根 CA 证书和 CONTROLLER 证书的 SAF 密钥环。
- CONTROLLER.TRUST
- 包含用于签署成员证书的成员根 CA 证书的 SAF 密钥环。
- OU = 集合体
- 入局集合体证书期望的相对专有名称 (RDN)。
<?xml version="1.0" encoding="UTF-8"?><server description="Example CICS Liberty JVM server collective controller">
<featureManager>
<feature>cicsts:core-1.0</feature>
<feature>collectiveController-1.0</feature>
<feature>cicsts:security-1.0</feature>
<feature>transportSecurity-1.0</feature>
</featureManager>
<!-- Standard server.xml configuration -->
<httpEndpoint host="zos.example.ibm.com" httpPort="9080" httpsPort="9443" id="defaultHttpEndpoint" />
<config monitorInterval="5s" updateTrigger="polled" />
<applicationMonitor dropins="dropins" dropinsEnabled="false" pollingRate="5s" updateTrigger="disabled" />
<!-- SAF security registry settings -->
<safRegistry id="safRegistry" realm="Collectives" />
<!-- Collective controller settings -->
<variable name="defaultHostName" value="zos.example.ibm.com" />
<ssl id="defaultSSLConfig" clientAuthenticationSupported="true"
keyStoreRef="defaultKeyStore" trustStoreRef="defaultTrustStore" />
<collectiveCertificate rdn="OU=Collective"/>
<keyStore id="defaultKeyStore" location="safkeyring:///CONTROLLER.KEY"
fileBased="false" readOnly="true" type="JCERACFKS" />
<keyStore id="defaultTrustStore" location="safkeyring:///CONTROLLER.TRUST"
fileBased="false" readOnly="true" type="JCERACFKS" />
<keyStore id="serverIdentity" location="safkeyring:///CONTROLLER.KEY"
fileBased="false" readOnly="true" type="JCERACFKS" />
<keyStore id="collectiveTrust" location="safkeyring:///CONTROLLER.TRUST"
fileBased="false" readOnly="true" type="JCERACFKS" />
<keyStore id="collectiveRootKeys" location="${server.config.dir}/resources/collective/rootKeys.p12"/>
</server>
下一步操作
验证集合体控制器服务器是否正确启动及其是否准备好接收成员。 当集合体控制器服务器就绪时, messages.log 文件中将显示以下消息。CWWKX9003I: CollectiveRegistration MBean is available.
将成员服务器添加到集合体。 有关将 Liberty JVM 服务器添加到集合体的更多信息,请参阅 将 Liberty JVM 服务器配置为集合体成员。