简体   繁体   English

MongoDB Arbiter AWS EC2

[英]MongoDB Arbiter AWS EC2

Trying to figure out what kind of machine to requisition for a MongoDB Arbiter so I can set up a replica set. 试图弄清楚MongoDB Arbiter要申请什么样的机器,以便我可以设置副本集。 All it needs to do is vote when a machine goes down, right? 所有它需要做的是在机器停机时投票,对吧? Could there possibly be any problem with using a micro EC2 instance for this? 使用micro EC2实例可能有任何问题吗?

I would not use Amazon Micro for an Arbiter as Micro instances can have long lags in processing which could trigger the replication threshold for non-response. 我不会将Amazon Micro用作Arbiter,因为Micro实例在处理过程中可能会有很长的滞后,这可能会触发无响应的复制阈值。 In this case you will go into Secondary only ready only mode and your app can't do any writes as once the arbiter has voted it can't revote. 在这种情况下,您将进入仅辅助就绪模式,并且您的应用程序无法执行任何写入,因为仲裁者投票后无法撤消。

Go with at least m1.small as you are guaranteed computing power or as someone else suggested throw it as a share on another instance. 至少使用m1.small,因为您可以保证计算能力或者其他人建议将其作为共享投放到另一个实例上。

Please be advised that sharing with other instances complicates your error troubleshooting so it's much easier to just put it on it's own instance. 请注意,与其他实例共享会使您的错误故障排除变得复杂,因此将其放在自己的实例上要容易得多。

FYI - We run mongo replicaset for mission critical app on EC2 with arbiter and have also worked with Mongo consultants to come to this conclusion. 仅供参考 - 我们使用仲裁器在EC2上运行mongo replicaset用于关键任务应用程序,并且还与Mongo顾问合作得出这个结论。

You are correct - Arbiters are nodes in a replica set that only participate in elections. 你是对的 - 仲裁者是副本集中只参与选举的节点。 Further information can be found here: 更多信息可以在这里找到:

http://www.mongodb.org/display/DOCS/Adding+an+Arbiter http://www.mongodb.org/display/DOCS/Adding+an+Arbiter

A micro EC2 instance should be fine for this if you do need one. 如果你确实需要,微EC2实例应该没问题。 .

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

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