# resetRecoveryWorkerNum {#resetrecoveryworkernum}

## Syntax {#section_jj2_jff_czb .section}

`resetRecoveryWorkerNum(newWorkerNum)`

## Arguments {#section_cdy_jff_czb .section}

**newWokerNum** is a positive integer that specifies the number of worker threads used for chunk recovery.

## Details {#section_qsr_kff_czb .section}

Modify the number of worker threads used by the current node for chunk recovery online. This command can only be executed by the administrator on the data node.

**Note:** This command modifies the configuration parameter *recoveryWorkers* during the current session only. To permanently modify *recoveryWorkers*, change it in the configuration file \(the default value is 1\).

## Example {#section_i3m_lff_czb .section}

``` {#codeblock_w2w_lff_czb .python}
resetRecoveryWorkerNum(2)
```

**Parent topic:**[Functions](../../Functions/category.md)

