Skip to content

Apply strict postgresql timeouts in GDK

Nick Thomas requested to merge apply-postgres-timeouts into master

What does this Merge Request do?

on GitLab.com, we run with strict values for statement_timeout, lock_timeout, and idle_in_transaction_session_timeout. In GDK, these values all appear to be 0 (unlimited).

The earlier we spot that something isn't going to work on GitLab.com, the better. Testing locally against large datasets is common, and more valuable if the database fails early.

I've currently set these values to the 15 seconds we see on GitLab.com . Running the test suite, at minimum, times out on 1 second values.

Merge Request checklist

  • [-] Tests added for new functionality. If not, please raise Issue to follow-up.
  • This change is backward compatible. If not, please include steps to communicate to our users.
  • [-] Documentation added/updated, if needed.
  • [-] gdk doctor test added, if needed.
Edited by Nick Thomas

Merge request reports

Loading