blob: 7d5893dde8d107472b3faecaddfa412a275a3f68 [file] [log] [blame]
Vladislav Naumova9dbb7f2017-09-27 22:38:24 +03001---
2summary: >
3 Added possibility to define Nginx proxy timeouts for Devops Portal Service.
4
5features:
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