How to deploy a Eclipse Java Web Dynamic Project on Amazon EC2?

前端 未结 2 1806
梦如初夏
梦如初夏 2021-02-01 09:18

I\'m trying to create a web project that is able to communicate with Amazon RDS. I know how to make a localhost project connect to a RDS with JDBC.

However, the problem

2条回答
  •  [愿得一人]
    2021-02-01 09:24

    Boxfuse does exactly what you want.

    For you Java web application you literally only have to execute:

    boxfuse create my-tomcat-app -apptype=load-balanced
    boxfuse scale my-tomcat-app -capacity=1-16:t2-micro:cpu25-75
    boxfuse run my-tomcat-app-1.0.war -env=prod
    

    This will

    1. Configure your application to use an ELB
    2. Set it to autoscale between 1 and 16 t2.micro instances based on CPU usage (scale in at 25% and below, scale out at 75% and above)
    3. Create AMI containg Tomcat and your application ready to boot
    4. Create an ELB
    5. Create a security group with the correct ports
    6. Create an auto-scaling group
    7. Launch your instance(s)

    Any subsequent update will be done as a zero downtime blue/green deployment.

    For your domain, you can simply map your samepage.com DNS record to the CNAME of the ELB.

    More info: https://boxfuse.com/blog/auto-scaling

提交回复
热议问题