集群资源 - SAP HANA 开启 Amazon
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

集群资源

本节介绍如何使用crm命令配置引导STONITH、、资源和约束。您可以使用命令 “crm” 来添加对象。

将引导程序集群

使用以下集群引导选项创建一个名为 “crm-bs.txt” 的文件:

prihana:~ # cat crm-bs.txt property $id="cib-bootstrap-options" \ stonith-enabled="true" \ stonith-action="off" \ stonith-timeout="600s" rsc_defaults $id="rsc-options" \ resource-stickiness="1000" \ migration-threshold="5000" op_defaults $id="op-options" \ timeout="600"

stonith-action参数值设置为 “off” 会强制代理在故障转移期间关闭实例。这是避免大脑分裂情景的理想选择。

使用以下命令将集群引导配置添加到集群:

prihana:~ # crm configure load update crm-bs.txt