部署在Amazon云Java Web应用程序应用程序、Amazon、Java、Web

2023-09-11 08:34:13 作者:Relief(解脱)

我有一个Struts2的,JSP,JPA,Spring和MySQL的开发Web应用程序。我想搬到这个应用程序到Amazon云。我以前没有做过的云部署或不知道如何做到这一点。 谁能帮我在一个循序渐进的过程或程序遵循或文件,将指导我在做这个。感谢您的帮助。

I have a web application developed with Struts2, JSP, JPA, Spring and MySql. I want to move this application to Amazon Cloud. I have not done a cloud deployment before or know how to do it. Can anyone help me on a step by step process or a procedure to follow or a document that will guide me in doing this. Thanks for your help.

推荐答案

明白了...感谢您的详细说明。 你可以把它在两个方面

Got it... thanks for the detailed description. You can make it in two ways

创建一个 singleBeanstalk的应用程序的

创建的应用程序中创建不同的环境作为每家公司,并在每个环境中部署.war文件,并提供资源,按照您的要求,例如tomcat的6/7,情况与最小数放大器;对于自动缩放实例的最大数量。健康检查监视间隔,没有。次前,超时等进行检查。,。最后分配的cname(也就是,通过它可以访问应用程序的URL)与公司名称关联,就像如果Web应用程序是某某公司,然后提供的cname为xyz.elasticbeanstalk.com。

create different environments for each company within the created application, and in every environment deploy the .war file and provide the resources as per your requirement such as tomcat 6/7, minimum number of instances & maximum number of instances for Auto scaling. Health check monitor interval, no. of times to check before timeout etc.,. and finally assign the cname (i.e, the url by which you access the application) associated with the company name, like if the webapp is for xyz company then provide cname as xyz.elasticbeanstalk.com.

2。创建多青苗应用即一个用于每家公司和每个应用程序可以创建多个环境像发展,Beta版,分期和生活 - 根据您的需要。

2 . Create multiple Beanstalk applications i.e., one for every company and in each application you can create multiple environments like Development, Beta, Staging and live - based on your requirement.

并即将DB

去RDS如果你的数据库是关系数据库。两种方式规划多个公司的是

Go for RDS if your DB is relational DB. Two ways to plan for multiple company's is

1)创建一个RDS和它即创建多个模式的,一个模式的一个组织。

1) Create a single RDS and create multiple schema's in it i.e., one schema for one organization.

2)创建独立的RDS每个组织 - 的建议,如果数据库记录更多的的

2) Create separate RDS for every organization - recommended if DB records are more

让我知道,如果您有任何疑问。 快乐帮...:)

Let me know if you have any queries. Happy to help...:)