当前位置: 动力学知识库 > 问答 > 编程问答 >

amazon web services - How to deploy an embedded server to Elastic-Beanstalk?

问题描述:

We have developed multiple micro-services using DropWirzard to have embedded jetty servers for each micro-service.

Has anyone had experience with deploying an embedded server to elastic-beanstalk for auto-scaling?

-Thanks for your time

网友答案:

Did you consider deploying each micro service on a separate docker container and deploying these containers on AWS Elastic Beanstalk? http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_docker.html

网友答案:

As of September 2015, Elastic Beanstalk supports plain Java SE environments for Java 7 and 8, so you can "run any Java application, including those that use servers or frameworks such as Jetty or Play and are no longer restricted to using Tomcat as the application server for your Java applications" (Java SE support announcement).

By default EB will start your application with java -jar application_name.jar. Alternatively, you can include a Procfile within your application root, and specify exactly how to start it up with a web: directive on the first line:

web: java -Xms:256m -jar my_dropwizard_app.jar

Check the latest EB developer guide for more detailed info.

分享给朋友:
您可能感兴趣的文章:
随机阅读: