Constraints - SAP HANA on Amazon
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


Define two constraints, one for the Overlay IP address which helps with routing client traffic to active database host and the second one for the start order between the SAPHANA and SAPHANATopology resource agents.

Create a file called “crm-cs.txt” with following cluster bootstrap options for constraints:

prihana:~ # cat crm-cs.txt colocation col_IP_Primary 2000: res_AWS_IP:Started msl_SAPHana_HDB_HDB00:Master order ord_SAPHana 2000: cln_SAPHanaTopology_HDB_HDB00 msl_SAPHana_HDB_HDB00

Update the SID and Instance number referred in cln_SAPHanaTopology_<SID>_HDB<Instance Number> and msl_SAPHana_<SID>_HDB<Instance Number> configuration.

Add the constraints configuration file to the cluster with the following command:

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