Articles in this section

How to Adjust Connection Timeout Settings Across All Supported Environments

Published:

Introduction

Connection timeout settings play a crucial role in ensuring smooth and uninterrupted user experiences across support environments. Adjusting these settings can help prevent disruptions caused by prolonged inactivity or slow server responses. This guide provides a step-by-step approach to modify connection timeout settings in various support environments.

Steps to Adjust Connection Timeout Settings:

Linux Deployment:

  1. Nginx:
  • Navigate to the following location: /etc/nginx/sites-available and edit the boldbi-nginx-config or boldreports-nginx-config file to increase the connection timeout.
    image.png
  • After updating the configuration, restart NGINX using the following command:
     nginx -s reload 
    
  1. Apache:
  • Navigate to the following location: /etc/apache2/sites-available/ and edit the boldbi-apache-config.conf or boldreports-apache-config.conf file to increase the connection timeout.
    image.png
  • After updating the connection timeout, restart Apache using the following command:
    systemctl restart apache2
    

Docker:

  1. Single container deployment:
  • Mount the nginx by adding the below line in docker-compose yaml.

    - nginx_data:/etc/nginx/sites-available  
    

    image.png

  • Add the following volume block for NGINX and allocate a directory on your host machine to store the shared folders used by the application. Replace the directory path with <host_path_nginx_data> in the docker-compose.yml file, then bring up the container.

      nginx_data:
          driver: local
          driver_opts:
      type: 'none'
      o: 'bind'
      device: '<host_path_nginx_data>' 
    
  • Navigate to the mounted location and edit the boldbi-nginx-config or boldreports-nginx-config file to increase the connection timeout duration.

    image.png

  • After updating the connection timeout, restart the Docker container using the following command:

    docker restart <container name or container ID>
    
  1. Multi container deployment:
  • Edit the default.conf file that was used for the multi-container deployment:
    image.png
  • Increase the connection timeout value as required:
    image.png
  • After updating the connection timeout values, restart the NGINX container using the following command:
    docker restart <container-name or container ID>
    

Kubernetes Deployment:

  1. Ingress Nginx and NLB Ingress:
  • Edit the ingress configuration using the following command:
    kubectl edit ingress -n <namespace of bold application>
    
  • Update the connection timeout-related annotations with the required timeout values, then save the ingress configuration file.
    image.png
  1. Kong ingress:
  • Edit the Kong ingress configuration by using the below command:
    kubectl get ingress -n <namespace of bold application>
    
  • Update the connection timeout-related annotations with increased time and save the Kong ingress file.
    image.png
  1. ALB Ingress:
  • Edit the ingress configuration by using the below command:
    kubectl edit ingress -n <namespace of bold application>
    
  • Update the connection timeout-related annotations with increased time and save the ALB ingress file.
    image.png
  1. Traefik:
  • Edit the traefik configuration by using the below command:
    kubectl edit serverstransport long-timeouts-transport -n <namespace of bold application>
    
  • Update the connection timeout-related annotations with increased time and save the Traefik ingress file.
    image.png

Additional Reference:

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
RC
Written by Ranjithkumar Chinnadurai
Updated:
Comments (0)
Access denied
Access denied