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;

  • how to link two single container AWS Elastic Beanstalk environments
  • AWS cloudwatch terminal output logs
  • RESTful API 2x nodejs apps on same server, with fallback
  • Docker - Run Apache on host and container for different websites
  • Docker Ubuntu with nginx, php-fpm and s3fs but s3fs does not work
  • php app files permission after docker build
  • [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 - Connect Apache Tomcat web server to MySQL server
  • What is the benefit of reverse proxy if we can expose to port 80 directly?
  • npm ERR! Failed when make ionic serve command (ask for checking version of node.js and npm installed)
  • Getting “docker”: executable file not found in $PATH using marathon
  • How do I run a sql file of inserts through docker run?
  • Docker + MongoDB: How to view database with RoboMongo?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.