如何在云中创建应用程序的多个实例
我想在谷歌云或 EC2 中创建我的应用程序的多个实例。我对此有两个疑问
1.如何实现这一目标?
- 我们可以使用zookeeper创建虚拟实例吗?
i wanted to create a multiple instances of my application in either google cloud or EC2. I have two queries regarding this
1.How to achieve this?
- Can we create a virtual instances by using zookeeper?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您的流量增加时,Google App Engine 实例会自动启动。您可能还拥有始终运行的实例或后端实例。只需阅读文档:http://code.google。 com/intl/pt-BR/appengine/docs/adminconsole/instances.html
Google App Engine 不足以与 Zookeper 一起使用。由于 Java 代码在有限沙箱中运行,您可能根本无法与 Zookeper 通信。此外,您还必须以编程方式启动和结束后端,这会导致您完成大量工作。
至于EC2,请参见:
http://www.mail-archive.com/<跨度类=“__cf_email__” data-cfemail="69130606020c0c190c1b441c1a0c1b2901080d060619470819080a010c47061b0e">[电子邮件受保护]/msg01083.html
Google App Engine instances are started automatically, as your traffic raises. You may also have always on instances or backends instaces. Just read the docs: http://code.google.com/intl/pt-BR/appengine/docs/adminconsole/instances.html
Google App Engine is not adequate to use with Zookeper. Since Java code runs in a limited sandbox, you may not be able to communicate with Zookeper at all. Also, you will have to start and end you backends programmatically, leading you to lots of work.
As for EC2, see this:
http://www.mail-archive.com/[email protected]/msg01083.html