amazon-elastic-beanstalk

Can Spring Boot application handle multiple requests simultaneously?

余生颓废 提交于 2020-02-26 06:35:45
问题 I am developing Rest APIs with Spring Boot which is deployed on AWS Beanstalk. Potentially, the service will be getting hits from thousands of clients every day. Therefore I would like to understand capability of Spring Boot of handling multiple requests. From what I read in Spring-Boot: Handle multiple requests concurrently and How to have thread safe controller in spring boot, it seems Spring Boot can handle requests concurrently while controller being thread safe. If two requests are made

Celery tasks received but not executing

北城以北 提交于 2020-02-18 04:59:28
问题 I have Celery tasks that are received but will not execute. I am using Python 2.7 and Celery 4.0.2. My message broker is Amazon SQS. This the output of celery worker : $ celery worker -A myapp.celeryapp --loglevel=INFO [tasks] . myapp.tasks.trigger_build [2017-01-12 23:34:25,206: INFO/MainProcess] Connected to sqs://13245:**@localhost// [2017-01-12 23:34:25,391: INFO/MainProcess] celery@ip-111-11-11-11 ready. [2017-01-12 23:34:27,700: INFO/MainProcess] Received task: myapp.tasks.trigger_build

Different .ebextensions depending on environment

北城余情 提交于 2020-02-02 02:45:12
问题 I have 2 separate environments to manage my application, a primary env, webserver with a load balancer, and a secondary env, a single small tier worker to run crons. My .ebextensions contains a lot of Instance and load balancer configurations, example: 01amazon.config Resources: # LB SG AWSEBLoadBalancerSecurityGroup: Type: "AWS::EC2::SecurityGroup" Properties: .... Is there any way to ignore this single file when i deploy to my worker instance via eb deploy worker-env If the file is not

Grant S3 access to Elastic Beanstalk instances

喜夏-厌秋 提交于 2020-02-01 18:58:46
问题 I'm trying to provision my EC2 instances in Elastic Beanstalk with some ssh keys from a private S3 bucket. Here's a snippet of my .ebextensions/.config: files: "/root/.ssh/id_rsa" : mode: "000400" ownder: root group: root source: https://s3-us-west-2.amazonaws.com/<bucket>/<app>_id_rsa Unfortunately, I'm getting a 403 response from S3. Is there a way to grant access to the EC2 instances using a Security Group? I can't grant each instance access individually as I won't know their IPs before

AWS Elastic Beanstalk: How to use environment variables in ebextensions?

ぐ巨炮叔叔 提交于 2020-01-31 05:19:08
问题 We are trying to store environment specific application configuration files in s3. The files are stored in different subdirectories which are named after the environment and also have the environment as part of the file name. Examples are dev/application-dev.properties stg/application-stg.properties prd/application-prd.properties The Elastic Beanstalk environments are named dev, stg, prd and alternatively I also have an environment variable defined in Elastic Beanstalk named ENVIRONMENT which

Elastic Beanstalk: can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException)

末鹿安然 提交于 2020-01-31 05:16:12
问题 This error message is a well known error message. (see https://bundler.io/blog/2019/01/04/an-update-on-the-bundler-2-release.html for example.) Although I'm getting it with a new Elastic Beanstalk application with Ruby 2.6.1, and bundler 2.0.1. The error is: /opt/rubies/ruby-2.6.1/lib/ruby/site_ruby/2.6.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException) from /opt/rubies/ruby-2.6.1/lib/ruby/site_ruby/2.6.0/rubygems.rb

Elastic Beanstalk error while deploying Django project

落爺英雄遲暮 提交于 2020-01-30 12:35:31
问题 I'm getting the following error. [Tue Jan 21 16:04:55.908186 2020] [:error] [pid 2102] [remote 127.0.0.1:17592] mod_wsgi (pid=2102): Exception occurred processing WSGI script '/opt/python/current/app/vspmschool/vspmschool/wsgi.py'. [Tue Jan 21 16:04:55.908338 2020] [:error] [pid 2102] [remote 127.0.0.1:17592] Traceback (most recent call last): [Tue Jan 21 16:04:55.908382 2020] [:error] [pid 2102] [remote 127.0.0.1:17592] File "/opt/python/current/app/vspmschool/vspmschool/wsgi.py", line 16,

Stop and Start Elastic Beanstalk Services

你离开我真会死。 提交于 2020-01-29 10:15:15
问题 I wanted to know if there is an option to STOP Amazon Elastic Beanstalk as an atomic unit as I can do with EC2 servers instead of going through each service (e.g. load balancer, EC2..) and STOP (and START) them independently? 回答1: The EB command line interface has an eb stop command. Here is a little bit about what the command actually does: The eb stop command deletes the AWS resources that are running your application (such as the ELB and the EC2 instances). It however leaves behind all of

Echo a string from ebextension script

梦想的初衷 提交于 2020-01-25 08:49:48
问题 I have a Windows instance of aws Elastic Beanstalk. I want to echo a text from the script inside .ebextensions folder and be able to see it in the deployment logs. Here is what I have: container_commands: 0100_execute_only_in_dev: command: echo "The_man_in_the_high_castle" The deployment is successful but when I requested logs for the EC2 instance, there is no text echo'ed. What is the correct way? 回答1: files: "C:\\Program Files\\Amazon\\ElasticBeanstalk\\config\\taillogs.d\\cfn-init-cmd.conf

Deploying Seprate React Frontend and Django DRF API

感情迁移 提交于 2020-01-24 10:18:50
问题 I have a react frontend made with create-react-app to deploy a production build of this I just do npm run build . My app uses a Django Rest FrameWork API backend. How can I setup the app for deployment on a single server. Is there a way I can store the React Frontend and route to it in Django and have requests from the Frontend hit a api/ view or endpoint. What are the best strategies for deploying something like this or is it better to host the Frontend and Backend desperately on different