/AWS1/CL_EMR=>SETUNHEALTHYNODEREPLACEMENT()
¶
About SetUnhealthyNodeReplacement¶
Specify whether to enable unhealthy node replacement, which lets Amazon EMR gracefully
replace core nodes on a cluster if any nodes become unhealthy. For example, a node becomes
unhealthy if disk usage is above 90%. If unhealthy node replacement is on and TerminationProtected
are off,
Amazon EMR immediately terminates the unhealthy core nodes. To use unhealthy node replacement
and retain unhealthy core nodes, use to turn on
termination protection. In such cases, Amazon EMR adds
the unhealthy nodes to a denylist, reducing job interruptions and failures.
If unhealthy node replacement is on, Amazon EMR notifies YARN and other applications on the cluster to stop scheduling tasks with these nodes, moves the data, and then terminates the nodes.
For more information, see graceful node replacement in the Amazon EMR Management Guide.
Method Signature¶
IMPORTING¶
Required arguments:¶
it_jobflowids
TYPE /AWS1/CL_EMRXMLSTRINGLIST_W=>TT_XMLSTRINGLIST
TT_XMLSTRINGLIST
¶
The list of strings that uniquely identify the clusters for which to turn on unhealthy node replacement. You can get these identifiers by running the RunJobFlow or the DescribeJobFlows operations.
iv_unhealthynodereplacement
TYPE /AWS1/EMRBOOLEANOBJECT
/AWS1/EMRBOOLEANOBJECT
¶
Indicates whether to turn on or turn off graceful unhealthy node replacement.
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
lo_client->/aws1/if_emr~setunhealthynodereplacement(
it_jobflowids = VALUE /aws1/cl_emrxmlstringlist_w=>tt_xmlstringlist(
( new /aws1/cl_emrxmlstringlist_w( |string| ) )
)
iv_unhealthynodereplacement = ABAP_TRUE
).