我可以使用Amazon ELB用于负载平衡我的RDS实例? [英] Can i use Amazon ELB for my RDS instance for load balancing?

查看:407
本文介绍了我可以使用Amazon ELB用于负载平衡我的RDS实例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问一些关于亚马逊EC2。我有两个问题: -

I want to ask something about Amazon EC2. I have two Questions :-

  1. 我可以用ELB我的RDS实例进行负载平衡?
  2. 我可以在EC2实例上安装多个服务器,并为所有服务器上运行单一ELB实例?

在此先感谢

推荐答案

1,如果你的意思是只有一个RDS实例,有在它前面的负载均衡请求没有意义。如果你的意思是有一个以上的RDS实例,它并没有太大的意义,以及负载均衡的要求,因为你的数据库服务器,将极有可能在一个特定的时间点不同的数据。我可以看到该规则唯一的例外是,如果你只读RDS实例。在这种情况下,你也许可以在他们面前有受益ELB(县)。如果你的应用是写密集型的,你应该坚持一个更大的RDS实例或移动到NoSQL数据库。不要试图负载平衡请求读/写DMBS,因为你将要处理的同步和很多其他的(不平凡)方面自己。

1-If you mean having only one RDS instance, there is no point in load balancing requests in front of it. If you mean having more than one RDS instance, it does not make much sense as well to load balance requests, because your database servers will most likely have different data in a given point of time. The only exception that I can see to this rule is if you have read-only RDS instances. In this case, you can probably benefit of having ELB(s) in front of them. If your application is write-intensive, you should stick with a larger RDS instance or move to a noSQL database. Don't try to load balance requests to a read/write DMBS, because you will have to deal with synchronization and a lot of other (non-trivial) aspects by yourself.

2,是的,这是完全可行的。用于网络服务器,当然。不为数据库管理系统一般。

2-Yes, this is totally feasible. For web servers, of course. Not for DBMSs in general.

这篇关于我可以使用Amazon ELB用于负载平衡我的RDS实例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆