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;

  • Logs to AWS Cloudwatch from Docker Containers
  • Docker seems to be migrating database on the server instead of migrating on RDS
  • AWS ECS agent cannot find /etc/resolv.conf when launching and cannot add instances to an ECS cluster
  • “Invalid configuration for registry” error when executing “eb local run”
  • Add new Tomcat containers behind Apache with Docker
  • AWS ECS container with tomcat + jdk
  • [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 Swarm shared volumes
  • Attaching a Docker Container automatically to an IP Address/DNS
  • Connect to docker-machine using docker-py (OSX)
  • Import images from kitematic to boot2docker
  • Docker copy misses some files
  • File permissions for mapped folders on host machine
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.