1. 16 Mar, 2020 2 commits
    • Stan Hu's avatar
      Improve self-monitoring project specs · 33fa698e
      Stan Hu authored
      Previously the tests stubbed out the application settings and did not
      test that the settings were properly invalidated to ensure that
      PrometheusService had the latest settings to pass validations.  We now
      use a real database object and `RequestStore` to emulate actual
      behavior.
      33fa698e
    • Stan Hu's avatar
      Ensure freshness of settings with project creation · 541fb832
      Stan Hu authored
      Application settings from the database are currently cached locally in
      the thread for a full minute after the changes are made. That means if
      an administrator attempts to change the default storages in the admin
      page, it might take up to a full minute for those changes to take
      effect.
      
      Since we don't have a great cache invalidation strategy for local caches
      yet, the simplest approach to solving this problem would be to expire
      the local application setting cache whenever we create a project. This
      causes every project creation to make an additional SELECT call for
      `application_settings`.
      
      Closes https://gitlab.com/gitlab-org/gitaly/-/issues/2147
      541fb832
  2. 15 Mar, 2020 2 commits
  3. 14 Mar, 2020 7 commits
  4. 13 Mar, 2020 29 commits