Skip to content
代码片段 群组 项目
该项目从 https://gitlab.com/gitlab-org/gitlab.git 镜像。 拉取镜像更新于
  1. 11月 05, 2021
  2. 10月 06, 2021
  3. 9月 30, 2021
    • Sean McGivern's avatar
      Simplify adding new Redis instance · b3c5c996
      Sean McGivern 创作于
      The main sticking point was `config/README.md`, which went into a lot of
      detail about each instance. It was quite easy to make a copy and paste
      error, as some instances had default URLs and others didn't, some had
      fallback instances and others didn't, etc.
      
      This changes a number of things:
      
      1. `config/README.md` now has a table for the Redis instances with a
         single list of instructions that apply to all instances.
      2. There are now specs to ensure that each Redis instance has a default
         URL set when no Redis config at all is present.
      3. Instances that use a fallback instance for config will automatically
         use the default URL of their fallback instance. They should not
         define their own default URL.
      4. The `.gitignore` file does not need to be updated for each new Redis
         instance.
      5. The example config files are now gone as `request.yml.example` should
         be sufficient.
      b3c5c996
  4. 6月 08, 2021
  5. 6月 04, 2021
    • Jacob Vosmaer's avatar
      Make clear Redis "default_url" is not an example to be followed · badb2298
      Jacob Vosmaer 创作于
      GitLab::Redis::{Cache,Queues,SharedState} have a configuration
      fallback mechanism where in the absence of either YAML configuration
      file, they fall back to localhost Redis URL's. These default URL's
      make no sense because if you need multiple Redis instances, your
      GitLab is too big to have Redis on localhost.
      
      Because there is a remote chance someone is using these default URL's
      anyway, this commit stops short of removing them. But we do refactor
      the default URL lookup code to make it unlikely that the next person
      adding a new Redis instance to the app will cargo-cult the default URL
      behavior.
      badb2298
  6. 6月 01, 2021
  7. 5月 15, 2020
  8. 1月 16, 2020
  9. 12月 20, 2019
  10. 12月 17, 2019
  11. 12月 12, 2019
    • Matthias Käppler's avatar
      Introduce `Runtime` class to identify runtime proc · 3a1ea22c
      Matthias Käppler 创作于
      This will serve as the new single access point into
      identifying which runtime is active.
      
      Add Process.max_threads method
      
      This will return the maximum concurrency for the given
      runtime environment.
      
      Revert to including `defined?` checks for Process
      
      This is based on a reference impl by new relic which they
      use to detect the current dispatcher.
      
      Add `name` method, throw if ambiguous
      
      This can be called from an initializer for instance.
      
      Log the current runtime in an initializer
      
      Add `multi_threaded?` and `app_server?` helpers
      
      To allow easier grouping of configuration
      
      Rename `Process` to `Runtime`
      
      And move it into its own file.
      
      Replace all remaining runtime checks with new API
      
      Including a commit body because the danger bot politely asked me
      to. There really is nothing else to say.
      
      Prefer `class << self` over `instance_eval`
      
      It seems to be the more widely adopted style.
      
      Simplify `has_instances?` helper method
      
      Fix rubocop offense
      
      Remove max_threads method
      
      This wasn't currently used anywhere and we should define this elsewhere.
      
      Remove references to NR library
      
      This caused some legal questions. We weren't using the instance lookup
      before, so it should be OK.
      3a1ea22c
  12. 10月 22, 2019
  13. 10月 18, 2019
  14. 7月 25, 2019
  15. 4月 05, 2019
  16. 1月 24, 2019
  17. 6月 21, 2018
  18. 8月 11, 2017
  19. 7月 14, 2017
  20. 7月 12, 2017
  21. 7月 11, 2017
  22. 6月 15, 2017
  23. 6月 14, 2017
  24. 3月 16, 2017
  25. 1月 13, 2017
  26. 10月 26, 2016
  27. 10月 06, 2016
  28. 9月 22, 2016
  29. 8月 10, 2016
  30. 8月 06, 2016
  31. 8月 05, 2016
加载中