

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

# 参数参考
<a name="sap-hana-pacemaker-sles-parameters"></a>

集群设置使用您的环境所独有的参数，包括 SID 和系统编号。按照以下示例和指导来预先确定值会很有用。

**Topics**
+ [全局 Amazon 参数](#global_shared_aws_parameters)
+ [Amazon EC2 实例参数](#_amazon_ec2_instance_parameters)
+ [SAP 和 Pacemaker 资源参数](#_sap_and_pacemaker_resource_parameters)
+ [SLES 集群参数](#_sles_cluster_parameters)

## 全局 Amazon 参数
<a name="global_shared_aws_parameters"></a>


| Name | 参数 | 示例 | 
| --- | --- | --- | 
|  Amazon 账号 |  `<account_id>`  |  `123456789100`  | 
|  Amazon 区域 |  `<region>`  |  `us-east-1`  | 
+  Amazon 账户 — 有关更多详情，请参阅[您的 Amazon 账户 ID 及其别名](https://docs.amazonaws.cn/IAM/latest/UserGuide/console-account-alias.html)。
+  Amazon 区域-有关更多详细信息，请参阅[描述您的区域](https://docs.amazonaws.cn/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-availability-zones)。

## Amazon EC2 实例参数
<a name="_amazon_ec2_instance_parameters"></a>


| Name | 参数 | 主系统示例 | 辅助系统示例 | 
| --- | --- | --- | --- | 
| Amazon EC2 实例 ID |  `<instance_id_x>`  |  `i-xxxxinstidforhost1`  |  `i-xxxxinstidforhost2`  | 
| 主机名 |  `<hostname_x>`  |  `hanahost01`  |  `hanahost02`  | 
| 主机 IP |  `<host_ip_x>`  |  `10.1.20.1`  |  `10.2.20.1`  | 
| 主机其他 IP |  `<host_additional_ip_x>`  |  `10.1.20.2`  |  `10.2.20.2`  | 
| 配置的子网 |  `<subnet_id>`  |  `subnet-xxxxxxxxxxsubnet1`  |  `subnet-xxxxxxxxxxsubnet2`  | 
+ 主机名必须符合 [SAP Note 611361 - Hostnames of SAP ABAP Platform servers](https://me.sap.com/notes/611361)（需要 SAP 门户访问权限）中概述的 SAP 要求。
+ 在实例上运行以下命令以检索主机名：

  ```
  $ hostname
  ```
+ Amazon EC2 实例 ID：在实例上运行以下命令（兼容 IMDSv2）以检索实例元数据：

  ```
  $ /usr/bin/curl --noproxy '*' -w "\n" -s -H "X-aws-ec2-metadata-token: $(curl --noproxy '*' -s -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600")" http://169.254.169.254/latest/meta-data/instance-id
  ```

  有关更多详细信息，请参阅[检索实例元数据](https://docs.amazonaws.cn/AWSEC2/latest/UserGuide/instancedata-data-retrieval.html)和[实例身份文档](https://docs.amazonaws.cn/AWSEC2/latest/UserGuide/instance-identity-documents.html)。

 **用于 Scale-out 部署** 


|  角色 | 主协调程序 | 主 Worker | 主 Worker | 辅助协调程序 | 辅助 Worker | 辅助 Worker | 仲裁生成器 | 
| --- | --- | --- | --- | --- | --- | --- | --- | 
| 主机名 |  `hanahost01`  |  `hanahostworker01a`  |  `hanahostworker01b`  |  `hanahost02`  |  `hanahostworker02a`  |  `hanahostworker02b`  |  `hanamm`  | 
| 子网 |  `subnet-xxxxxxxxxxsubnet1`  |  `subnet-xxxxxxxxxxsubnet1`  |  `subnet-xxxxxxxxxxsubnet1`  |  `subnet-xxxxxxxxxxsubnet2`  |  `subnet-xxxxxxxxxxsubnet2`  |  `subnet-xxxxxxxxxxsubnet2`  |  `subnet-xxxxxxxxxxsubnet3`  | 
+ 具有仲裁生成器的 6 节点集群的示例
+ 仲裁生成器可以使用最少的资源，因为它只提供集群仲裁功能

## SAP 和 Pacemaker 资源参数
<a name="_sap_and_pacemaker_resource_parameters"></a>


| Name | 参数 | 示例 | 
| --- | --- | --- | 
| SAP HANA SID |  `<SID>` 或 `<sid>`  |  `HDB`  | 
| SAP HANA 系统编号 |  `<hana_sys_nr>`  |  `00`  | 
| SAP HANA 虚拟主机名 |  `<hana_virt_hostname>`  |  `hanahdb`  | 
| SAP HANA 重叠 IP |  `<hana_overlayip>`  |  `172.16.52.1`  | 
| SAP HANA 只读已启用重叠 IP（可选） |  `<readenabled_overlayip>`  |  `172.16.52.2`  | 
| VPC 路由表 |  `<routetable_id>`  |  `rtb-xxxxxroutetable1`  | 
+ SAP 详细信息 – 包括 SID 和实例编号在内的 SAP 参数必须遵守 SAP 和软件预调配管理器的指导和限制。有关更多详细信息，请参阅 [SAP Note 1979280 - Reserved SAP System Identifiers (SAPSID) with Software Provisioning Manager](https://me.sap.com/notes/1979280)。
+ Post-installation，使用以下命令查找主机上运行的实例的详细信息：

  ```
  $ sudo /usr/sap/hostctrl/exe/saphostctrl -function ListInstances
  ```
+ 重叠 IP：此值由您定义。有关更多信息，请参阅[重叠 IP](sap-hana-pacemaker-sles-concepts.md#overlay-ip-sles)。

## SLES 集群参数
<a name="_sles_cluster_parameters"></a>


| Name | 参数 | 示例 | 
| --- | --- | --- | 
| 集群用户 |  `<cluster_user>`  |  `hacluster`  | 
| 集群密码 |  `<cluster_password>`  |  | 
| 集群名称 |  `<cluster_name>`  |  `myCluster`  | 
| 集群标签 |  `<cluster_tag>`  |  `pacemaker`  | 
|  Amazon CLI 集群配置文件 |  `<cli_cluster_profile>`  |  `cluster`  | 
+ 集群用户 – 安装集群软件包将创建用户 hacluster，为该账户设置密码以确保集群可以执行不需要根访问权限的任务。
+ 集群标签 — Amazon Stonith 代理使用此标签来确保它能够识别要屏蔽的正确 Amazon EC2 实例。标签的名称是可自定义的，并且对于此集群对，在您的 Amazon 账户中应该是唯一的。
+  Amazon CLI 集群配置文件 — 可以定义一个命名配置文件，用于集群 API 调用，这与 CLI 的其他用途不同。每个配置文件可以指定不同的凭证，也可以指定不同的 Amazon 区域和输出格式。