Vladislav Naumov | a9dbb7f | 2017-09-27 22:38:24 +0300 | [diff] [blame] | 1 | --- |
| 2 | summary: > |
| 3 | Added possibility to define Nginx proxy timeouts for Devops Portal Service. |
| 4 | |
| 5 | features: |
| 6 | - | |
| 7 | Added possibility to define Nginx proxy timeouts for Devops Portal service through Salt metadata. |
| 8 | To avoid possible *Gateway Timeout* errors that occur due to huge amount |
| 9 | of data, connection, and other issues. Its possible to configure server timeouts on the side of |
| 10 | Devops Portal service. |
| 11 | |
| 12 | **To configure Nginx proxy timeouts:** |
| 13 | |
| 14 | #. Define following parameters on a system level for each service in |
| 15 | your Docker stack. |
| 16 | |
| 17 | .. code-block:: yaml |
| 18 | |
| 19 | parameters: |
| 20 | devops_portal: |
| 21 | config: |
| 22 | service: |
| 23 | your_service: |
| 24 | configure_proxy: true |
| 25 | resolve_hostname: true |
| 26 | # Proxy parameters, default value equals 300 ms |
| 27 | proxy_connect_timeout: 300 |
| 28 | proxy_send_timeout: 300 |
| 29 | proxy_read_timeout: 300 |
| 30 | send_timeout: 300 |
| 31 | |
| 32 | .. note:: The following is the example of the above configuration |
| 33 | location: |
| 34 | |
| 35 | .. code-block:: yaml |
| 36 | |
| 37 | /srv/salt/reclass/classes/system/docker/swarm/stack/YOUR_SERVICE.yml |
| 38 | |
| 39 | #. Recreate devops-portal stack: |
| 40 | |
| 41 | .. code-block:: bash |
| 42 | |
| 43 | docker stack rm devops-portal |
| 44 | salt -C 'I@devops_portal:config' state.sls devops_portal.config |
| 45 | salt -C 'I@docker:swarm:role:master' state.sls docker.client |
| 46 | |
| 47 | The Nginx configuration are updated during the Devops Portal Salt |
| 48 | formula application. |
| 49 | |
| 50 | .. fixes https://mirantis.jira.com/browse/PROD-14603 |
| 51 | |