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

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

问题描述

日志文件的用途:

"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/...

?

推荐答案

您引用的是 Write Ahead Logfiles 至少是临时保存数据的文件.

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天全站免登陆