# Background tasks

The WEKA system performs internal and external asynchronous operations and maintenance tasks in the background using minimal CPU resources, allowing no interference nor starving the WEKA system from serving high-performing IOs.‌

Background tasks include, for example, checking metadata integrity, downloading and uploading snapshots, and detaching an object store.

Adhere to the following considerations:

* **CPU resource consumption:** The WEKA system limits these tasks’ CPU resources to 5% of the overall CPU. When the CPU is idle, background tasks can use more than the configured resources but are immediately freed if needed for serving IOs.
* **Concurrent tasks:** The maximum number of concurrent tasks is 16, with restrictions such as:
  * Only a single local upload can exist inside a filesystem concurrently.
  * Only a single remote upload inside a filesystem concurrently (but local and remote uploads can co-exist).
  * Only a single upload from any filesystem can exist in the same object store bucket to prevent slowing down each other uploads.
  * Object store snapshot download operation cannot be run simultaneously with other snapshot download or upload operations.
  * A paused or aborted task is counted as part of the maximum number of concurrent tasks.
* **Snapshot metadata prefetch:** After downloading a snapshot from the object store, a new cluster task automatically prefetches its metadata.
* **Up to 16 background tasks can run in parallel:** A paused or aborted task is also counted as a running background task.

{% hint style="info" %}
More restrictions exist between different tasks and multiple tasks of the same type. If a background task does not run due to a restriction, the system provides a relevant message.
{% endhint %}

### Background tasks list <a href="#managing-background-tasks" id="managing-background-tasks"></a>

<table><thead><tr><th width="301.3333333333333">Taks name</th><th width="290">Task description</th><th>Possible actions</th></tr></thead><tbody><tr><td>OBS_DETACH</td><td>Detaching Object Storage &#x3C;OBS name> from filesystem &#x3C;fs name></td><td>Pause, Resume</td></tr><tr><td>STOW_UPLOAD</td><td>Uploading snapshot &#x3C;snapshot name> from filesystem &#x3C;fs name> to &#x3C;OBS site> object-store bucket &#x3C;OBS bucket name></td><td>Pause, Resume, Abort</td></tr><tr><td>STOW_DOWNLOAD_FILESYSTEM</td><td>Downloading filesystem &#x3C;fs name> from locator &#x3C;snapshot locator> in object-store &#x3C;OBS bucket name></td><td>Pause, Resume</td></tr><tr><td>STOW_DOWNLOAD_SNAPSHOT</td><td>Downloading snapshot &#x3C;snapshot name> to &#x3C;fs name> from locator &#x3C;snapshot locator> in object-store &#x3C;OBS bucket name></td><td>Pause, Resume</td></tr><tr><td>FSCK</td><td>Checking metadata integrity</td><td>Pause, Resume, Abort</td></tr><tr><td>FILESYSTEM_SQUASH</td><td>Squashing filesystem &#x3C;fs name></td><td>Pause, Resume</td></tr><tr><td>SNAPSHOT_PREFETCH</td><td>Fetching metadata of snapshot &#x3C;snapshot name> of filesystem &#x3C;fs name> from object-store &#x3C;OBS bucket name></td><td>Pause, Resume, Abort</td></tr><tr><td>DATA_REDUCTION</td><td>Compressing data</td><td>Pause, Resume, Abort</td></tr><tr><td>DATA_REDUCTION_GC</td><td>Garbage collection (GC)</td><td>Pause, Resume, Abort</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.weka.io/4.2/usage/background-tasks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
