How can I increase timeouts of AWS worker tier instances?

I am trying to run background processes on an Elastic Beanstalk single worker instance within a Docker container and have not been able execute a request/job for longer than 60 seconds without getting a 504 timeout.

Looking at the log files provided by AWS the issue begins with the following error;

  • executable file not found in $PATH when trying to connect to a container in an AWS ECS EC2 instance
  • Docker swarm security and high availability on AWS
  • Serving Jupyter Notebook from within docker container on AWS not working?
  • Elastic beanstalk : load balancer DNS unreachable
  • How can I run a Docker container in AWS Elastic Beanstalk with non-default run parameters?
  • Docker - Install PHP 5.2.17 and php-gd
  • [error] 2567#0: *37 upstream timed out (110: Connection timed out) while reading response header from upstream, client:, server: , request: "POST /queue/work HTTP/1.1", upstream: "", host: "localhost"

    Does anyone know if it possible to increase the limit from 60 seconds to a longer period as I would like to generate some reports which will take 3 to 4 minutes to process.

    I have increased the NGINX timeout settings within .ebextensions/nginx-timeout.config without any results.

    "/etc/nginx/sites-available/elasticbeanstalk-nginx-docker-proxy-timeout.conf": mode: "000644"
    owner: root
    group: root
    content: |
    proxy_connect_timeout 600;
    proxy_send_timeout 600;
    proxy_read_timeout 600;
    send_timeout 600;
    command: "if [[ ! -h /etc/nginx/sites-enabled/elasticbeanstalk-nginx-docker-proxy-timeout.conf ]] ; then ln -s /etc/nginx/sites-available/elasticbeanstalk-nginx-docker-proxy-timeout.conf /etc/nginx/sites-enabled/elasticbeanstalk-nginx-docker-proxy-timeout.conf ; fi"

    I have also increased the PHP max_execution_time within a custom php.ini

    max_execution_time = 600

    Any help will be greatly appreciated.

  • Docker client execution
  • How to access JMX (Java Beans) from a process running in docker container
  • Jenkins deployment to docker swarm by using Ansible
  • DistributionNotFound when running pserve with docker-compose
  • Friendly URL between docker containers/images
  • Possible to make incremental checkpoints CRIU
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.