infuluxdb-重新启动服务后特定保留政策的数据丢失
我有两个保留政策,一个保留政策为2周,一个保留10年。
看来,当服务开始时,所有最近(几个小时)保留政策的数据点就丢失了。我注意到这个问题,因为由于早晨的遗传条件,操作系统杀死了涌入过程。
我可以看到从凌晨4点开始的数据仍保留,但是在每个服务的每次连续重新启动后,都从历史记录中擦除了使用Ten_ Years RP的任何最近存储(现在大约是上午10点,因此至少约6小时的数据)。
Two_weeks RP不受影响,所有数据点都保持在重新启动之间,并且在OOM事件期间,此RP不会丢失该RP的数据。
如果我再次重新启动服务,我会看到顶部图中的最新数据消失了。然后,将在这里看到新的传入点。每次重新启动都会发生这种情况。
root@raspberrypi:〜#influxd版本
infuxdb v1.8.7(git:1.8 v1.8.7)
该服务在带有8 GB RAM的Raspberry Pi 4上运行,无需交换,不交换,外部SSD用作启动设备。
我进行了手动重新启动“ SystemCtl重新启动infuxd.Service”,并能够每次重现该问题。 我看不到日志文件中错误或警告的任何指示。目前没有OOM条件,每当我进行优雅的服务重新启动时,带有Ten_year RP的数据就会丢失。已经尝试重新启动Raspberry Pi而不会改变行为。
I have two retention policies set up, one for 2 weeks and one for 10 years.
It seems when the service starts, all recent (a couple of hours) data points for the 10-year retention policy are lost. I noticed this issue because the OS has killed the influxdb process due to out-of-memory conditions in the morning.
I can see data from 4 AM is still kept, but anything more recent stored with the ten_years RP is wiped from history after each ordinary restart of the service (it is around 10 AM now, so at least ~6 hrs of data).
The two_weeks RP is unaffected, all data points are kept between restarts and no data for this RP was lost during the OOM event.
If I were to restart the service again, i would see the recent data from the top graph disappear. New incoming points would then be rendered as can be seen here. This happens for every restart.
root@raspberrypi:~# influxd version
InfluxDB v1.8.7 (git: 1.8 v1.8.7)
The service runs on a Raspberry PI 4 with 8 GB of RAM, no swap, external SSD is used as boot device.
I performed manual restarts doing "systemctl restart influxd.service" and was able to reproduce the issue each time.
I can not see any indication of error or warning in the log file. There are no OOM conditions right now, data with the ten_year RP is lost whenever I do a graceful service restart. Already tried rebooting the Raspberry PI with no changes in behaviour.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论