# Telegraf failover mechanism while sending data to influxdb

**URL:** https://community.influxdata.com/t/telegraf-failover-mechanism-while-sending-data-to-influxdb/1465
**Category:** Systems
**Tags:** telegraf
**Created:** [June 29, 2017, 11:18am UTC](https://community.influxdata.com/t/telegraf-failover-mechanism-while-sending-data-to-influxdb/1465 "2017-06-29T11:18:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![chintan\_vaghani](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@chintan\_vaghani](https://community.influxdata.com/u/chintan_vaghani)
#### Post date: [June 29, 2017, 11:18am UTC](https://community.influxdata.com/t/telegraf-failover-mechanism-while-sending-data-to-influxdb/1465/1 "2017-06-29T11:18:51Z")

</div>

Does telegraf have any failover mechanism while sending data to influx db ? For my usecase, No data loss is expected. Hence , if influx db is down, I was thinking to write data to file and then was thinking to replay it. Does telegraf provide any such functionality ?

---

<div class="post-metadata">

### Author: ![daniel](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/daniel/32/142_2.png) [@daniel](https://community.influxdata.com/u/daniel)
#### Post date: [June 29, 2017, 5:08pm UTC](https://community.influxdata.com/t/telegraf-failover-mechanism-while-sending-data-to-influxdb/1465/2 "2017-06-29T17:08:40Z")

</div>

Telegraf has an in memory fifo buffer that will cover small interruptions. You can control the size of this buffer with the `metric_buffer_limit` setting.
