# Restricting Speed of Reading Binlog from Primary by a Replica

When a replica starts after being stopped for some time, or a new replica starts\
that was created from a backup from some time back, a lot of old binlog events\
may need to be downloaded from the primary. If this happens from many replicas\
simultaneously, it can put a lot of load on the primary.

The **read\_binlog\_speed\_limit** option can be used to reduce such load, by\
limiting the speed at which events are downloaded. The limit is given as\
maximum kilobytes per second to download on one replica connection.

With this option set, the replication I/O thread will limit the rate of\
download. Since the I/O thread is often much faster to download events than\
the SQL thread is at applying them, an appropriate value for**read\_binlog\_speed\_limit** may reduce load spikes on the primary without\
much limit in the speed of the replica.

The option **read\_binlog\_speed\_limit** is available starting from [MariaDB 10.2.3](/docs/release-notes/community-server/old-releases/10.2/10.2.3.md).

#### `read_binlog_speed_limit`

* Description: Maximum speed(KB/s) to read binlog from primary.
* Command line: `--read-binlog-speed-limit[=#]`
* Scope: Global
* Dynamic: Yes
* Data Type: `numeric`
* Default Value: `0`
* Range: `0` to `4294967295`
* Introduced: [MariaDB 10.2.3](/docs/release-notes/community-server/old-releases/10.2/10.2.3.md)

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

{% @marketo/form formId="4316" %}


---

# 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://mariadb.com/docs/server/ha-and-performance/standard-replication/restricting-speed-of-reading-binlog-from-primary-by-a-replica.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.
