diff options
| author | Igor Drozdov <idrozdov@gitlab.com> | 2023-02-13 14:34:03 +0100 |
|---|---|---|
| committer | Igor Drozdov <idrozdov@gitlab.com> | 2023-03-03 07:18:39 +0100 |
| commit | 83a4e8e542e9f929e1c22b235b883ee67187c4c6 (patch) | |
| tree | 2f138cd934517f0280f0da148ede78720d9ab765 /internal/testhelper/testdata | |
| parent | d893886d53c3038af84414589459d273609b2243 (diff) | |
| download | gitlab-shell-83a4e8e542e9f929e1c22b235b883ee67187c4c6.tar.gz | |
Perform HTTP request to primary on Geo push
Currently, we perform a request to Gitlab Rails that proxies
the request to primary
However, it causes timeouts on big pushes and consumes large
amount of memory. We can perform an HTTP request directly
from Gitlab Shell instead and stream the response to the user
Diffstat (limited to 'internal/testhelper/testdata')
| -rw-r--r-- | internal/testhelper/testdata/testroot/responses/allowed_with_push_payload.json | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/testhelper/testdata/testroot/responses/allowed_with_push_payload.json b/internal/testhelper/testdata/testroot/responses/allowed_with_push_payload.json index 318d42d..adedda4 100644 --- a/internal/testhelper/testdata/testroot/responses/allowed_with_push_payload.json +++ b/internal/testhelper/testdata/testroot/responses/allowed_with_push_payload.json @@ -21,6 +21,8 @@ "action": "geo_proxy_to_primary", "data": { "api_endpoints": ["geo/proxy_git_ssh/info_refs_receive_pack", "geo/proxy_git_ssh/receive_pack"], + "geo_proxy_direct_to_primary": true, + "request_headers": { "Authorization": "Bearer token" }, "gl_username": "custom", "primary_repo": "https://repo/path" } |
