官术网_书友最值得收藏!

Best practices for AWS

When using MongoDB, we can use our own servers in a datacenter, a MongoDB hosted solution like MongoDB Atlas, or get instances from Amazon using EC2. EC2 instances are virtualized and share resources in a transparent way with collocated VMs in the same physical host. So there are some more considerations to take into account if going down that route:

  • Use EBS optimized EC2 instances.
  • Get EBS volumes with provisioned IOPS (I/O operations per second) for consistent performance.
  • Use EBS snapshotting for backup and restore.
  • Use different Availability Zones for High Availability and different regions for Disaster Recovery.
    Different availability zones within each region that Amazon provides guarantee that our data will be highly available. Different regions should only be used for Disaster Recovery in case a catastrophic event ever takes out an entire region. A region can be EU-West-2 for London, whereas an availability zone is a subdivision within a region; currently two availability zones are available for London.
  • Deploy global, access local.
  • For truly global applications with users from different time zones, we should have application servers in different regions access data that is closest to them using the right read preference configuration in each server.
主站蜘蛛池模板: 丰顺县| 孟村| 花莲市| 葵青区| 星子县| 佛冈县| 高台县| 辛集市| 双鸭山市| 桃江县| 江城| 兴义市| 股票| 九台市| 丰县| 乌海市| 左云县| 安国市| 玛多县| 剑河县| 从江县| 德化县| 高淳县| 星座| 尖扎县| 福清市| 富源县| 射阳县| 同仁县| 福建省| 阿瓦提县| 遂溪县| 焉耆| 玉山县| 梁河县| 余江县| 玛纳斯县| 乐安县| 冷水江市| 闽侯县| 淮滨县|