0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【InfluxDB-1.8】 autogenに無期限に溜まったデータを削除する

Posted at

何も考えず InfluxDB の運用を始めてしまい、 /var/lib/influxdb/data/xxx/autogen/ にがっつり昔のデータが溜まってきて、なんかディスクが一杯だし昼頃サーバに負荷がかかるなーとお悩みの諸兄

ALTER RETENTION POLICY "autogen" ON "xxx" DURATION 800d

で autogen の保存期限を無期限から800日に変更できます。 上記のクエリを発行してから1時間程度で、実際にディスクからデータも削除されて、すっきりです。

以上

ちなみに同じことを自分のサイトのブログにも書きました。こちらです→ https://0x0c.info/?p=377

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?