> For the complete documentation index, see [llms.txt](https://documentation.2pintsoftware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.2pintsoftware.com/mom/operations/tuning.md).

# Tuning MOM

Keep the defaults unless a measurement says otherwise.

Settings are named as they appear in the Configuration Editor. Most of the ones on this page are only shown with **Show advanced** on. Restart the service after a change. The full list is in [Settings](https://documentation.2pintsoftware.com/mom/reference/settings.md).

## Recommendations

* Keep prefetch on. For servers without range support it is the only way MOM can keep a copy.
* Use managed CI mode with one shared passphrase when several servers publish the same content. See [Content Information mode](https://documentation.2pintsoftware.com/mom/planning/prerequisites.md#content-information-mode).
* Keep the debug log off in production.

## Limit what MOM handles

Everything outside these limits is forwarded and not kept.

| Setting in the editor                         | Effect                                                 |
| --------------------------------------------- | ------------------------------------------------------ |
| **WhiteList wildcards as csv**                | Only these hosts are handled                           |
| **BlackList wildcards as csv**                | These hosts are never handled                          |
| **Minimum content length to create CI for**   | Smaller files are not handled. In bytes. Default 10 MB |
| **Valid content-type to create CI for (CSV)** | Only these content types are handled                   |

Host lists are comma separated and accept `*`, for example `dell.com,*.dell.*`.

## Prefetch

Prefetch lets clients share a file sooner. The cost is bandwidth and disk for files a client may cancel.

| Setting in the editor                         | Description                                         | Default |
| --------------------------------------------- | --------------------------------------------------- | ------- |
| **Prefetch requested file**                   | Prefetch on or off                                  | On      |
| **Minimum file size (MB) to prefetch**        | Smaller files are not prefetched                    | `10`    |
| **Maximum file size (MB) to prefetch**        | Larger files are not prefetched. `0` means no limit | `0`     |
| **Number of threads to use when prefetching** | `0` means the number of processors minus one        | `0`     |

With prefetch off, **Complete request for monitored client if expired/cancelled** lets MOM finish a download that a client abandoned.

## Use less disk

* Lower the two cleanup times. See [Cleanup](https://documentation.2pintsoftware.com/mom/operations/caching-and-peering.md#cleanup).
* Or turn off **Serve files from MOM static folder if applicable**. MOM then keeps only the CI.

## Use less CPU

Turn off **Use SSL for MOM Proxy**. Clients then use an `http://` proxy address. Downloads from HTTPS servers are still encrypted on the network, from the client to MOM and from MOM to the server.

## Certificates of destination servers

MOM validates the certificate of every HTTPS server it downloads from. If a certificate cannot be validated, the download fails.

**Disable destination SSL certificate validation** makes MOM accept any certificate. Leave it off. MOM decrypts HTTPS downloads to keep a copy, so MOM is the only one that checks where the content comes from.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.2pintsoftware.com/mom/operations/tuning.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
