简体   繁体   English

在ArangoDB中,如果我们不使用任何JS程序,我可以禁用V8引擎吗?

[英]In ArangoDB, Could I disable the V8 engine if we don't use any JS procedures?

Could I disable the V8 engine to release the V8's huge memory usage, if we don't use any JS procedures?如果我们不使用任何JS程序,我是否可以禁用V8引擎以释放V8的巨大内存使用量?

And what features of ArangoDB are internally implemented by JavaScript?而 ArangoDB 的哪些特性是由 JavaScript 内部实现的?

Thanks :-)谢谢 :-)

No, you can't deactivate V8 inside of ArangoDB.不,您不能在 ArangoDB 内停用 V8。 A lot of the API is powered by JavaScript as well as most of the graph functionality.许多 API 以及大多数图形功能都由 JavaScript 提供支持。 If you would 'deactivate' V8, ArangoDB would not work anymore.如果您“停用”V8,ArangoDB 将不再工作。

If it is possible for you to share information on how you use ArangoDB and what memory usage you are seeing, please share it on ArangoDB's mailing list or the bugtracker .如果您能够共享信息你如何使用您所看到ArangoDB,什么内存使用情况,请在分享ArangoDB的邮件列表错误追踪系统 People there might be able to debug this behaviour or help you reduce your memory usage.那里的人可能能够调试此行为或帮助您减少内存使用量。

As of ArangoDB version 3.4 you can turn off V8 with:从 ArangoDB 3.4 版开始,您可以通过以下方式关闭 V8:

--javascript.enabled false
--foxx.queues false

however, the following features will be unavailable:但是,以下功能将不可用:

  • Backend parts of the web interface Web 界面的后端部分
  • Foxx Apps福克斯应用
  • Foxx Queues Foxx 队列
  • GraphQL图形语言
  • JavaScript-based transactions基于 JavaScript 的交易
  • User-defined AQL functions用户定义的 AQL 函数

Also, a note for clustered ArangoDB:另外,集群 ArangoDB 的注意事项:

Note that JavaScript / V8 can be disabled for DB-Server and Agency nodes in a cluster without these limitations.请注意,可以在没有这些限制的情况下为集群中的 DB-Server 和 Agency 节点禁用 JavaScript / V8。 They apply to single server instances.它们适用于单个服务器实例。 They also apply to Coordinator nodes, but you should not disable V8 on Coordinators because certain cluster operations depend on it.它们也适用于 Coordinator 节点,但您不应在 Coordinator 上禁用 V8,因为某些集群操作依赖于它。

https://www.arangodb.com/2019/03/small-steps-reduce-arangodb-resource-footprint/ https://www.arangodb.com/2019/03/small-steps-reduce-arangodb-resource-footprint/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM