resetDfsRecoveryConcurrency

Syntax

resetDfsRecoveryConcurrency(newConcurrecyNum)

Arguments

newConcurrecyNum is a positive integer that specifies the maximum number of workers allocated for chunk recovery.

Details

Modify the number of workers used by the current node for chunk recovery online. This function can only be executed by the administrator on the controller.

Note: This function modifies the configuration parameter dfsRecoveryConcurrency during the current session only. To permanently modify dfsRecoveryConcurrency, change it in the configuration file (the default value is twice the number of all nodes except the agent).

Examples

resetDfsRecoveryConcurrency(2)

Related functions: getDfsRecoveryConcurrency