最小化ArangoDB内存使用

时间:2017-09-06 16:52:08

标签: arangodb

我为ArangoDB提供了许多不同的部署情况。其中一个是在用户台式机或笔记本电脑上。

我已阅读并实施了有关如何在Spartan模式下运行ArangoDB的说明(非常有帮助)。

然而,我需要更多。桌面用户可以使用数据库中的许多不同集合,并且所有这些集合都保持加载并消耗大量虚拟内存。如果某些应用检测到它们在内存受限的环境中运行,则会导致某些应用的行为不同。

所以,我正在寻找一种方法来卸载那些尚未被访问的集合"最近" (一些可配置的时间)。

有没有(好的)方法可以做到这一点?

1 个答案:

答案 0 :(得分:0)

对于版本3.4,我在arangod.conf中添加了以下参数,以所谓的spartan mode开头。

更多详细信息,请访问他们的blog post

[javascript]

# number of V8 contexts available for JavaScript execution. use 0 to 
# make arangod determine the number of contexts automatically.
v8-contexts = 1


[foxx]
# enable Foxx queues in the server
# Disable task scheduling - reduce CPU
queues = false


[wal]

# Reduce the number of historic WAL files which will reduce the memory usage when ArangoDB is in use.
historic-logfiles = 1

# Reduce the prepared WAL log files which are kept ready for future write operations
reserve-logfiles = 1

# In addition you can reduce the size of all WAL files to e.g. 8 MB by setting
logfile-size = 8388608
相关问题