Arangodb日志日志文件 [英] Arangodb journal logfiles

查看:508
本文介绍了Arangodb日志日志文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

其中的日志文件是什么?

What for are logfiles in:

"arango_instance_database/journals/logfile-xxxxxx.db

我可以删除它们吗?

如何缩小尺寸?
我设置

How can I reduce their size ?
I set

database.maximal-journal-size = 1048576

但是这些文件仍然是32M大.

but those files are still 32M large.

我可以为他们设置一些目录,例如

Can I set some directory for them like

/var/log/...

?

推荐答案

您引用的是提前写入日志文件,至少是暂时保留数据的文件.

You're referencing the Write Ahead Logfiles which are at least temporarily the files your data is kept in.

因此,只要您仍然希望数据完整无缺,将它们自己删除是一个非常不好的主意.

So its a very bad idea to remove them on your own, as long as you still like your data to be intact.

使用文件是为了使文档可以连续地写入磁盘.系统闲置后,聚合器作业将从文档中挑选文档并将其移至您的数据库文件中.

The files are used so documents can be written to disk in a contineous fashion. Once the system is idle, the aggregator job will pick the documents from them and move them over into your database files.

您可以找到关于其他人未选择这种架构方法的情况和数据的有趣文档被直接写入磁盘上的数据文件中,然后这会对您的系统产生什么影响.

You can find interesting documentation of situations where others didn't choose such an architectural approach, and data was written directly into their data files on the disk, and what this then does to your sytem.

将WAL文件中的所有文档都移入db文件后,ArangoDB将删除分配的空间.

Once all documents in a WAL-file have been moved into db files, the ArangoDB will remove the allocated space.

这篇关于Arangodb日志日志文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆