# Poll interval

{% hint style="warning" %}
In order for the consumer offset mapping functionality to work, both of the following requirements must be met:

* K2K must be configured to publish offset mappings.
* The `k2k-offset-mapping` application must be configured and deployed.

Without both components active, consumer group offsets on the target cluster will not be translated.
{% endhint %}

The `k2k-offset-mapping` application works by periodically polling the source cluster's consumer group API to retrieve the latest committed offsets for each group. It then uses the published offset mappings to translate these offsets and commit the corresponding positions on the target cluster.

The polling interval is configurable, allowing the balance between synchronization freshness and the load placed on the source cluster to be configured.

```yaml
groups:
  pollInterval: "5 seconds"
```


---

# 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.lenses.io/latest/k2k/k2k-offset-mapping/poll-interval.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.
