简体   繁体   English

mongodb在云中的读/写性能和mongo托管

[英]mongodb read/write performance and mongo hosting in the cloud

we are currently developing a high traffic rails application with facebooker (facebook game). 我们目前正在使用facebooker(facebook游戏)开发高流量的Rails应用程序。 since amazon simpledb (aws-sdb) is really slow, we are thinking of using a dedicated mongodb server as offered by mongoHQ for example. 由于亚马逊的simpledb(aws-sdb)确实很慢,因此我们正在考虑使用mongoHQ提供的专用mongodb服务器。

questions: 问题:

  1. what is the read/writes peak value for a mongodb server running on a amazon ec2 instance? 在Amazon EC2实例上运行的mongodb服务器的读/写峰值是多少?
  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? 使用mongodb的ec2托管应用程序的推荐设置是什么-亚马逊EBS上的主数据库和ec2实例上的副本? any examples or experiences? 有什么例子或经验吗?
  3. is there a company that offers mongodb hosting in the cloud? 有没有一家公司在云中提供mongodb托管?

thanks, mz 谢谢,mz

1) Your reads/inserts/updates values will vary greatly with the size of the EC2 instance you use. 1)您的读取/插入/更新值将随所使用的EC2实例的大小而有很大差异。 A large EC2 instance can perform about 320,000 operations per second . 大型EC2实例每秒可以执行约320,000次操作 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. IIRC,每次写入,删除,更新,插入,命令约有20,000个,并获得更多和约200,000个读取。 I think that it was a quite large data set, but I'll check with Eliot tomorrow. 我认为这是一个非常大的数据集,但明天我将与Eliot核对。 -- Kristina Chodorow -克里斯蒂娜(Kristina Chodorow)

2) MongoDB is single threaded and most EC2 instances have 2 or more CPUs. 2)MongoDB是单线程的,大多数EC2实例具有2个或更多CPU。 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. 因此,可以随时将自动分片与手动主从配置一起使用,然后在7月副本集超出alpha范围时替换主从配置。

3) MongoHQ , MongoMachine both offer hosted MongoDB. 3) MongoHQMongoMachine都提供托管的MongoDB。

MongoDB since 1.4 can very easily saturate a large number of cores. 从1.4开始,MongoDB可以很容易地使大量内核饱和。 You no longer need to start a mongod per core. 您不再需要每个内核启动mongod。

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

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