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

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.
主站蜘蛛池模板: 准格尔旗| 清水河县| 松滋市| 德令哈市| 沈阳市| 建始县| 海城市| 古蔺县| 石景山区| 黔江区| 商都县| 宿松县| 抚州市| 武功县| 博罗县| 宜昌市| 海盐县| 婺源县| 洛阳市| 云浮市| 东阿县| 长岛县| 托里县| 康马县| 丹寨县| 唐河县| 武宁县| 丹阳市| 邮箱| 黄大仙区| 绥阳县| 屏东县| 遂溪县| 青阳县| 庆阳市| 博罗县| 手游| 信阳市| 新闻| 来宾市| 大石桥市|