mongodb 读/写性能和 mongo 云托管

发布于 2024-09-04 18:45:48 字数 326 浏览 5 评论 0原文

我们目前正在与 facebooker(facebook 游戏)开发一个高交通轨道应用程序。 由于 amazon simpledb (aws-sdb) 非常慢,因此我们正在考虑使用 mongoHQ 提供的专用 mongodb 服务器。

问题:

  1. 在亚马逊 EC2 实例上运行的 mongodb 服务器的读/写峰值是多少?
  2. 对于带有 mongodb 的 ec2 托管应用程序(亚马逊 EBS 上的主服务器和 ec2 实例上的副本),建议的设置是什么?有什么例子或经验吗?
  3. 有没有一家公司提供 mongodb 云托管服务?

谢谢, 米兹

we are currently developing a high traffic rails application with facebooker (facebook game).
since amazon simpledb (aws-sdb) is really slow, we are thinking of using a dedicated mongodb server as offered by mongoHQ for example.

questions:

  1. what is the read/writes peak value for a mongodb server running on a amazon ec2 instance?
  2. what would be a recommended setup for a ec2 hosted app with mongodb - a master on amazon EBS and replicas on the ec2 instances? any examples or experiences?
  3. is there a company that offers mongodb hosting in the cloud?

thanks,
mz

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

遮了一弯 2024-09-11 18:45:48

1) 您的读取/插入/更新值将根据您使用的 EC2 实例的大小而有很大差异。大型 EC2 实例可以执行大约 每秒 320,000 次操作。以下是“操作”在这个意义上的含义的细分:

IIRC,每个写入、删除、更新、插入、命令和操作大约为 20,000 次。获取更多内容并获得约 200,000 次阅读。我认为这是一个相当大的数据集,但我明天会与艾略特核实。
——克里斯蒂娜·乔多罗

2) MongoDB 是单线程的,大多数 EC2 实例都有 2 个或更多 CPU。所以你可以在同一台机器上运行两个进程。自动分片似乎在当前版本中运行良好,可以在生产环境中使用,但副本集却不然(它们将处理复制和自动故障转移)。因此,请随意使用自动分片和手动主从配置,然后在 7 月份当副本集超出 alpha 时替换主从配置。

3) MongoHQ, MongoMachine 都提供托管 MongoDB。

1) Your reads/inserts/updates values will vary greatly with the size of the EC2 instance you use. A large EC2 instance can perform about 320,000 operations per second. Here is a breakdown of what "operations" meant in that sense:

IIRC, it was ~20,000 each of writes, deletes, updates, inserts, commands, & get mores and ~200,000 reads. I think that it was a quite large data set, but I'll check with Eliot tomorrow.
-- Kristina Chodorow

2) MongoDB is single threaded and most EC2 instances have 2 or more CPUs. So you can run two processes on the same machine. Auto-sharding seems to be working well enough in the current release to use in a production environment, but Replica sets are not (these would handle replication & automatic failover). So feel free to use auto-sharding with manual master-slave configurations then replace master-slave config in July when Replica sets are out of alpha.

3) MongoHQ, MongoMachine both offer hosted MongoDB.

少跟Wǒ拽 2024-09-11 18:45:48

从 1.4 开始,MongoDB 很容易使大量核心饱和。您不再需要为每个核心启动一个 mongod。

MongoDB since 1.4 can very easily saturate a large number of cores. You no longer need to start a mongod per core.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文