diff --git a/VERSION b/VERSION index 7d5624f..1b8629f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.21 +2.0.22 diff --git a/hubmap-auth/src/app.py b/hubmap-auth/src/app.py index d0507ea..c8c2017 100644 --- a/hubmap-auth/src/app.py +++ b/hubmap-auth/src/app.py @@ -338,7 +338,7 @@ def get_status_data(): FILE_ASSETS_STATUS = 'file_assets_status' BRANCH = 'branch' COMMIT = 'commit' - POSTGRES_CONNECTION = 'Postgres connection' + POSTGRES_CONNECTION = 'postgres_connection' # All API services have api_auth status (meaning the gateway's API auth is working) # We won't get other status if api_auth fails diff --git a/hubmap-auth/src/templates/status.html b/hubmap-auth/src/templates/status.html index ed25a49..86f11c5 100644 --- a/hubmap-auth/src/templates/status.html +++ b/hubmap-auth/src/templates/status.html @@ -158,7 +158,7 @@
Postgres Connection: {{ data.cells_api["Postgres connection"] }}
+Postgres Connection: {{ data.cells_api.postgres_connection }}
{% endif %} {% endif %} diff --git a/nginx/conf.d-dev/portal-ui.conf b/nginx/conf.d-dev/portal-ui.conf index 2514518..5c229cd 100644 --- a/nginx/conf.d-dev/portal-ui.conf +++ b/nginx/conf.d-dev/portal-ui.conf @@ -45,6 +45,13 @@ server { # gzip_http_version sets the minimum HTTP version of a request required to compress a response to 1.1 by default. # proxy_http_version needs to be >= that, but is 1.0 by default. proxy_http_version 1.1; + + # Due to cells-api slowness + # Increase timeout to 10 minutes until a real solution is ready + proxy_connect_timeout 600; + keepalive_timeout 600 600; + proxy_read_timeout 600; + proxy_send_timeout 600; } } diff --git a/nginx/conf.d-prod/cells-api.conf b/nginx/conf.d-prod/cells-api.conf index a16c2f2..f36237a 100644 --- a/nginx/conf.d-prod/cells-api.conf +++ b/nginx/conf.d-prod/cells-api.conf @@ -31,14 +31,14 @@ server { # Only the PROD version of cells api is routed by gateway # The cells api on DEV and TEST are running on their own nginx instances, no STAGE version # Calls to the PROD version of cells api (cells.api.hubmapconsortium.org) come to - # gateway directly and get forwarded to private IP 172.31.7.108 (cells-internal.api.hubmapconsortium.org) - # The cells api PROD is exposed on port 5000 via uwsgi - uwsgi_pass uwsgi://172.31.7.108:5000; - include uwsgi_params; - uwsgi_param HTTP_X_FORWARDED_PROTO $scheme; - uwsgi_param UWSGI_SCHEME $scheme; - uwsgi_read_timeout 600s; - uwsgi_send_timeout 600s; + # gateway directly and get forwarded to their nginx gateway/load balancer http://cells-gateway.cmu.hubmapconsortium.org (no https) + proxy_pass http://cells-gateway.cmu.hubmapconsortium.org; + + # Increase timeout to 10 minutes until a real solution is ready + proxy_connect_timeout 600; + keepalive_timeout 600 600; + proxy_read_timeout 600; + proxy_send_timeout 600; } } diff --git a/nginx/conf.d-prod/portal-ui.conf b/nginx/conf.d-prod/portal-ui.conf index 05f59b7..22b2bec 100644 --- a/nginx/conf.d-prod/portal-ui.conf +++ b/nginx/conf.d-prod/portal-ui.conf @@ -45,6 +45,13 @@ server { # gzip_http_version sets the minimum HTTP version of a request required to compress a response to 1.1 by default. # proxy_http_version needs to be >= that, but is 1.0 by default. proxy_http_version 1.1; + + # Due to cells-api slowness + # Increase timeout to 10 minutes until a real solution is ready + proxy_connect_timeout 600; + keepalive_timeout 600 600; + proxy_read_timeout 600; + proxy_send_timeout 600; } } diff --git a/nginx/conf.d-stage/portal-ui.conf b/nginx/conf.d-stage/portal-ui.conf index f7fdd83..5a78f29 100644 --- a/nginx/conf.d-stage/portal-ui.conf +++ b/nginx/conf.d-stage/portal-ui.conf @@ -45,6 +45,13 @@ server { # gzip_http_version sets the minimum HTTP version of a request required to compress a response to 1.1 by default. # proxy_http_version needs to be >= that, but is 1.0 by default. proxy_http_version 1.1; + + # Due to cells-api slowness + # Increase timeout to 10 minutes until a real solution is ready + proxy_connect_timeout 600; + keepalive_timeout 600 600; + proxy_read_timeout 600; + proxy_send_timeout 600; } } diff --git a/nginx/conf.d-stage/prod-portal-ui.conf b/nginx/conf.d-stage/prod-portal-ui.conf index f0ac8dd..0323395 100644 --- a/nginx/conf.d-stage/prod-portal-ui.conf +++ b/nginx/conf.d-stage/prod-portal-ui.conf @@ -34,6 +34,17 @@ server { # (Plain "$host" does not include port.) proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Proto $scheme; + + # gzip_http_version sets the minimum HTTP version of a request required to compress a response to 1.1 by default. + # proxy_http_version needs to be >= that, but is 1.0 by default. + proxy_http_version 1.1; + + # Due to cells-api slowness + # Increase timeout to 10 minutes until a real solution is ready + proxy_connect_timeout 600; + keepalive_timeout 600 600; + proxy_read_timeout 600; + proxy_send_timeout 600; } } diff --git a/nginx/conf.d-test/portal-ui.conf b/nginx/conf.d-test/portal-ui.conf index 3876ca9..824a686 100644 --- a/nginx/conf.d-test/portal-ui.conf +++ b/nginx/conf.d-test/portal-ui.conf @@ -45,6 +45,13 @@ server { # gzip_http_version sets the minimum HTTP version of a request required to compress a response to 1.1 by default. # proxy_http_version needs to be >= that, but is 1.0 by default. proxy_http_version 1.1; + + # Due to cells-api slowness + # Increase timeout to 10 minutes until a real solution is ready + proxy_connect_timeout 600; + keepalive_timeout 600 600; + proxy_read_timeout 600; + proxy_send_timeout 600; } }