简体   繁体   English

Arangodb分片问题

[英]Arangodb Sharding Issue

I am using Arangodb cluster in two hosts (say host 'A' and host 'B'). 我在两个主机(例如主机“ A”和主机“ B”)中使用Arangodb群集。 I made both of them as coordinator and DBServer . 我使他们两个都担任协调员和DBServer。 Lets say my configurations are: Host A: IP1 port 8530 (coordinator port 8531) Host B: IP2 port 8530 (coordinator port 8531) Now i have 2 apps listening to host 'A' and host 'B' respectively (on port 8531). 可以说我的配置是:主机A:IP1端口8530(协调器端口8531)主机B:IP2端口8530(协调器端口8531)现在我有2个应用程序分别监听主机“ A”和主机“ B”(在端口8531上) 。 Suppose Host 'A' coordinator goes down then app 'A' stops listening while app 'B' is working fine. 假设主机“ A”协调器出现故障,然后应用程序“ A”停止监听,而应用程序“ B”运行正常。 How can i make app 'A' to listen to Host 'B' if Host 'A' is down and vice versa? 如果主机“ A”关闭,我如何使应用程序“ A”监听主机“ B”,反之亦然?

You can use tools like HAproxy (or any other HTTP load balancer in soft- or hardware). 您可以使用HAproxy之类的工具(或软件或硬件中的任何其他HTTP负载平衡器)。 ArangoDB speaks "standard" HTTP so you can use TCP or HTTP load-balancers. ArangoDB使用“标准” HTTP,因此您可以使用TCP或HTTP负载平衡器。

Depending on your network topology you can install HAproxy on each client or setup a central HAproxy. 根据您的网络拓扑,您可以在每个客户端上安装HAproxy或设置中央HAproxy。

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

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