首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >为什么启动ArangoDB有这么多不同的方式

为什么启动ArangoDB有这么多不同的方式
EN

Stack Overflow用户
提问于 2019-06-02 13:02:14
回答 2查看 512关注 0票数 0

我正在评估ArangoDB,我认为至少有3种方法可以启动数据库。

  1. arangosh
  2. arangod
  3. arangodb
  4. arangocli -这将属于不同的类别

这一切都非常令人困惑,有人可以提供不同选项的可见性,以及启动引擎的最佳方式。

谢谢

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2019-06-03 00:32:39

这些都是启动Arango的不同方式。这些是可与Arango一起使用的不同工具

arangosh是一个外壳工具,可用于管理数据库以及运行即席查询。它不启动服务器,只启动连接到服务器的shell

arangod:这是启动Arangodb时运行的守护进程。实际上,要启动服务器,通常需要运行(至少在Mac上) /usr/local/Cellar/arangodb/3.4.0/sbin/arangod

arangodb:这是db安装包。例如,在Mac中,你可以运行brew install arangodb在你的机器上安装arangodb。

arangocli:这只是一个运行即席查询的cli工具。

票数 1
EN

Stack Overflow用户

发布于 2019-06-05 21:06:49

arangod启动单个ArangoDB服务器,这足以运行单个实例部署。要运行更复杂的部署(例如群集、主动故障转移),需要多个arangod进程。

例如,一个包含3个代理、2个数据库服务器和2个协调器的集群总共需要8个arangod进程。可以在Cluster - Manual Start文档中找到更多信息。

为了简化部署,建议使用arangodb starter工具。arangodb的执行为每个数据库服务器、协调器和代理初始化一个arangod进程。例如,使用arangodb --starter.local启动本地3节点集群会在内部启动9个arangod进程:3个dbservers、3个协调器和3个代理。可以使用ps auxw | grep arangod检查正在运行的arangod进程。

示例输出如下所示:

代码语言:javascript
复制
ps auxw | grep arangod
max       8099  1.9  0.1 114712  8736 pts/0    Sl+  14:47   0:00 arangodb --starter.local
max       8118  3.9  2.5 635016 203736 pts/0   Sl+  14:47   0:00 /usr/sbin/arangod -c /home/max/Documents/starter/test/local-slave-2/agent8551/arangod.conf --database.directory /home/max/Documents/starter/test/local-slave-2/agent8551/data --javascript.startup-directory /usr/share/arangodb3/js --javascript.app-path /home/max/Documents/starter/test/local-slave-2/agent8551/apps --log.file /home/max/Documents/starter/test/local-slave-2/agent8551/arangod.log --log.force-direct false --javascript.copy-installation true --agency.activate true --agency.my-address tcp://localhost:8551 --agency.size 3 --agency.supervision true --foxx.queues false --server.statistics false --agency.endpoint tcp://localhost:8531 --agency.endpoint tcp://localhost:8541
max       8165 10.5  2.6 676548 215908 pts/0   Sl+  14:47   0:01 /usr/sbin/arangod -c /home/max/Documents/starter/test/agent8531/arangod.conf --database.directory /home/max/Documents/starter/test/agent8531/data --javascript.startup-directory /usr/share/arangodb3/js --javascript.app-path /home/max/Documents/starter/test/agent8531/apps --log.file /home/max/Documents/starter/test/agent8531/arangod.log --log.force-direct false --javascript.copy-installation true --agency.activate true --agency.my-address tcp://localhost:8531 --agency.size 3 --agency.supervision true --foxx.queues false --server.statistics false --agency.endpoint tcp://localhost:8541 --agency.endpoint tcp://localhost:8551
max       8168  5.4  2.6 705236 216828 pts/0   Sl+  14:47   0:00 /usr/sbin/arangod -c /home/max/Documents/starter/test/local-slave-2/dbserver8550/arangod.conf --database.directory /home/max/Documents/starter/test/local-slave-2/dbserver8550/data --javascript.startup-directory /usr/share/arangodb3/js --javascript.app-path /home/max/Documents/starter/test/local-slave-2/dbserver8550/apps --log.file /home/max/Documents/starter/test/local-slave-2/dbserver8550/arangod.log --log.force-direct false --javascript.copy-installation true --cluster.my-address tcp://localhost:8550 --cluster.my-role PRIMARY --foxx.queues false --server.statistics true --cluster.agency-endpoint tcp://localhost:8531 --cluster.agency-endpoint tcp://localhost:8541 --cluster.agency-endpoint tcp://localhost:8551
max       8171  4.8  2.5 641160 204968 pts/0   Sl+  14:47   0:00 /usr/sbin/arangod -c /home/max/Documents/starter/test/local-slave-1/agent8541/arangod.conf --database.directory /home/max/Documents/starter/test/local-slave-1/agent8541/data --javascript.startup-directory /usr/share/arangodb3/js --javascript.app-path /home/max/Documents/starter/test/local-slave-1/agent8541/apps --log.file /home/max/Documents/starter/test/local-slave-1/agent8541/arangod.log --log.force-direct false --javascript.copy-installation true --agency.activate true --agency.my-address tcp://localhost:8541 --agency.size 3 --agency.supervision true --foxx.queues false --server.statistics false --agency.endpoint tcp://localhost:8531 --agency.endpoint tcp://localhost:8551
max       8302  6.4  2.6 696532 216668 pts/0   Sl+  14:47   0:00 /usr/sbin/arangod -c /home/max/Documents/starter/test/dbserver8530/arangod.conf --database.directory /home/max/Documents/starter/test/dbserver8530/data --javascript.startup-directory /usr/share/arangodb3/js --javascript.app-path /home/max/Documents/starter/test/dbserver8530/apps --log.file /home/max/Documents/starter/test/dbserver8530/arangod.log --log.force-direct false --javascript.copy-installation true --cluster.my-address tcp://localhost:8530 --cluster.my-role PRIMARY --foxx.queues false --server.statistics true --cluster.agency-endpoint tcp://localhost:8531 --cluster.agency-endpoint tcp://localhost:8541 --cluster.agency-endpoint tcp://localhost:8551
max       8304 26.7  2.4 744684 199052 pts/0   Sl+  14:47   0:02 /usr/sbin/arangod -c /home/max/Documents/starter/test/local-slave-2/coordinator8549/arangod.conf --database.directory /home/max/Documents/starter/test/local-slave-2/coordinator8549/data --javascript.startup-directory /usr/share/arangodb3/js --javascript.app-path /home/max/Documents/starter/test/local-slave-2/coordinator8549/apps --log.file /home/max/Documents/starter/test/local-slave-2/coordinator8549/arangod.log --log.force-direct false --javascript.copy-installation true --cluster.my-address tcp://localhost:8549 --cluster.my-role COORDINATOR --foxx.queues true --server.statistics true --cluster.agency-endpoint tcp://localhost:8531 --cluster.agency-endpoint tcp://localhost:8541 --cluster.agency-endpoint tcp://localhost:8551
max       8306  5.8  2.6 711380 215200 pts/0   Sl+  14:47   0:00 /usr/sbin/arangod -c /home/max/Documents/starter/test/local-slave-1/dbserver8540/arangod.conf --database.directory /home/max/Documents/starter/test/local-slave-1/dbserver8540/data --javascript.startup-directory /usr/share/arangodb3/js --javascript.app-path /home/max/Documents/starter/test/local-slave-1/dbserver8540/apps --log.file /home/max/Documents/starter/test/local-slave-1/dbserver8540/arangod.log --log.force-direct false --javascript.copy-installation true --cluster.my-address tcp://localhost:8540 --cluster.my-role PRIMARY --foxx.queues false --server.statistics true --cluster.agency-endpoint tcp://localhost:8531 --cluster.agency-endpoint tcp://localhost:8541 --cluster.agency-endpoint tcp://localhost:8551
max       8318 27.5  2.5 760064 202456 pts/0   Sl+  14:47   0:02 /usr/sbin/arangod -c /home/max/Documents/starter/test/coordinator8529/arangod.conf --database.directory /home/max/Documents/starter/test/coordinator8529/data --javascript.startup-directory /usr/share/arangodb3/js --javascript.app-path /home/max/Documents/starter/test/coordinator8529/apps --log.file /home/max/Documents/starter/test/coordinator8529/arangod.log --log.force-direct false --javascript.copy-installation true --cluster.my-address tcp://localhost:8529 --cluster.my-role COORDINATOR --foxx.queues true --server.statistics true --cluster.agency-endpoint tcp://localhost:8531 --cluster.agency-endpoint tcp://localhost:8541 --cluster.agency-endpoint tcp://localhost:8551
max       8321 32.8  2.5 764160 202212 pts/0   Sl+  14:47   0:02 /usr/sbin/arangod -c /home/max/Documents/starter/test/local-slave-1/coordinator8539/arangod.conf --database.directory /home/max/Documents/starter/test/local-slave-1/coordinator8539/data --javascript.startup-directory /usr/share/arangodb3/js --javascript.app-path /home/max/Documents/starter/test/local-slave-1/coordinator8539/apps --log.file /home/max/Documents/starter/test/local-slave-1/coordinator8539/arangod.log --log.force-direct false --javascript.copy-installation true --cluster.my-address tcp://localhost:8539 --cluster.my-role COORDINATOR --foxx.queues true --server.statistics true --cluster.agency-endpoint tcp://localhost:8531 --cluster.agency-endpoint tcp://localhost:8541 --cluster.agency-endpoint tcp://localhost:8551

将启动器arangodb的选项指定为--server.storage-engine rocksdb时,此选项将传递给所有启动器的arangod进程。

有关各种部署模式的详细概述,请参阅文档的Deployment一章。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56412321

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档