Updated on 2022-03-04 GMT+08:00

Preparing the Configuration File

This section describes how to configure parameters in the config.json file. During the installation of SAP application AS and AAS expansion, information in the config.json configuration file will be obtained.

Procedure

  1. Log in to an ASCS node as user root using a key or password.
  2. On the CLI, download the compressed software package s4autoscaling.zip to the /sapmnt/{sid} directory, for example, /sapmnt/NW0/.

    wget https://obs-sap.cn-east-2.myhuaweicloud.com/autoscaling/s4autoscaling.zip -P /sapmnt/NW0

  3. Run the following command to decompress s4autoscaling.zip:

    unzip s4autoscaling.zip -d /sapmnt/NW0

  4. Run the following command to open the config.json file:

    vi /sapmnt/NW0/autoscaling/config.json

  5. Edit the parameters in the config.json file based on actual requirements. For details, see Table 1.

    Table 1 Parameter description

    Parameter

    Description

    Example Value

    SID

    System ID of the SAP S/4HANA system

    NW0

    SchemaPW

    Schema password of the SAP HANA database

    xiaoxiao@123

    MasterPW

    Password configured when installing AAS

    xiaoxiao@123

    SYSTEMPW

    SYSTEM password of the SAP HANA database

    xiaoxiao@123

    SapmntPATH

    sapmnt directory shared to AAS, for example, /sapmnt/{SID}

    10.0.0.41:/sapmnt/NW0

    PASInctanceNR

    PAS instance ID

    01

    Region

    Region where the S/4HANA system resources are located

    cn-south-1

    DDICPasswd

    DDIC user password

    xiaoxiao@123

    LogonGroup

    Name of the created logon group

    tst_group

    InstallVersion

    In the current version, only 1709 is supported. The value must be S4_1709.

    S4_1709

    AASImageID

    Image ID required by AAS ECSs. If this parameter is left blank, use the image that is the same as that of PAS.

    NOTE:

    The pip tool must be installed in the image for provisioning AAS ECSs.

    Leave this parameter blank.

    ExistedAASIDs

    • If AASs already exist in the S/4HANA system, set this parameter to, for example, ExistedAASIDs":["981224766","964679324"].
    • If no AAS exists in the S/4HANA system, leave this parameter blank. For example, [].

    ["981224766","964679324"]

    AASFlavorID

    Flavor of AAS ECSs. If this parameter is left blank, select the flavor that is the same as that of PASs.

    s1.xlarge

    AgencyName

    Agency name, which must be the same as that of the created agency in section Creating an Agency.

    NW_scaling_agency

    UserName

    HUAWEI CLOUD username

    sap_xiao458925

    DomainName

    HUAWEI CLOUD domain name

    sap_xxx4157666

    IAMEndpoint

    Endpoint address of HUAWEI CLOUD IAM. The value must be iam.myhuaweicloud.com.

    iam.myhuaweicloud.com

    KeypairName

    Name of the key pair used for provisioning AAS ECSs. If this parameter is left blank, use the key pair that is the same as that of PASs. (You can only use key pairs to log in to AASs.)

    Keypair-lf

    ContactPhone

    Phone number of the S/4HANA system administrator, which is used to receive AS information

    188292004xx

    ContactEmail

    Email address of the S/4HANA system administrator, which is used to receive AS information

    1oss.zhang@huawei.com

  6. After the editing is complete, press Esc to exit the editing mode.
  7. Enter :wq and press Enter.