Skip to content
代码片段 群组 项目
该项目从 https://gitlab.com/gitlab-org/gitlab.git 镜像。 拉取镜像更新于
  1. 11月 09, 2021
  2. 11月 01, 2021
  3. 10月 08, 2021
  4. 9月 07, 2021
  5. 10月 26, 2020
  6. 5月 16, 2020
  7. 3月 19, 2020
    • Oswaldo Ferreira's avatar
      Use bash for bin/background_scripts · 1c2eabd3
      Oswaldo Ferreira 创作于
      The bin/background_jobs_sk_cluster script use some
      bashisms. In order to avoid issues with either GDK
      or other systems, here we make use of bash as the
      default interpreter.
      1c2eabd3
  8. 3月 17, 2020
    • Oswaldo Ferreira's avatar
      Support opt-in sidekiq-cluster in bin/background_jobs script · 4da50727
      Oswaldo Ferreira 创作于
      It simplifies the interface of `bin/background_jobs` as:
      
      1. start - Starting sidekiq or sidekiq-cluster on background.
      2. restart - Kill all existing processes and start them
      again (in background).
      3. start_foreground - Starts sidekiq or sidekiq-cluster on foreground.
      4. stop - Well, stops the process.
      
      Here we also split the script into two `bin/background_jobs_sk` and
      `bin/background_jobs_sk_cluster`. If `SIDEKIQ_WORKERS` env var is
      given we use the `bin/background_jobs_sk_cluster`, which has
      basically the same API of the sidekiq counterpart.
      4da50727
  9. 9月 27, 2019
  10. 3月 01, 2019
  11. 10月 22, 2016
    • Yorick Peterse's avatar
      Re-organize queues to use for Sidekiq · 931ff815
      Yorick Peterse 创作于
      Dumping too many jobs in the same queue (e.g. the "default" queue) is a
      dangerous setup. Jobs that take a long time to process can effectively
      block any other work from being performed given there are enough of
      these jobs.
      
      Furthermore it becomes harder to monitor the jobs as a single queue
      could contain jobs for different workers. In such a setup the only
      reliable way of getting counts per job is to iterate over all jobs in a
      queue, which is a rather time consuming process.
      
      By using separate queues for various workers we have better control over
      throughput, we can add weight to queues, and we can monitor queues
      better. Some workers still use the same queue whenever their work is
      related. For example, the various CI pipeline workers use the same
      "pipeline" queue.
      
      This commit includes a Rails migration that moves Sidekiq jobs from the
      old queues to the new ones. This migration also takes care of doing the
      inverse if ever needed. This does require downtime as otherwise new jobs
      could be scheduled in the old queues after this migration completes.
      
      This commit also includes an RSpec test that blacklists the use of the
      "default" queue and ensures cron workers use the "cronjob" queue.
      
      Fixes gitlab-org/gitlab-ce#23370
      931ff815
    • Yorick Peterse's avatar
      Re-organize queues to use for Sidekiq · 97731760
      Yorick Peterse 创作于
      Dumping too many jobs in the same queue (e.g. the "default" queue) is a
      dangerous setup. Jobs that take a long time to process can effectively
      block any other work from being performed given there are enough of
      these jobs.
      
      Furthermore it becomes harder to monitor the jobs as a single queue
      could contain jobs for different workers. In such a setup the only
      reliable way of getting counts per job is to iterate over all jobs in a
      queue, which is a rather time consuming process.
      
      By using separate queues for various workers we have better control over
      throughput, we can add weight to queues, and we can monitor queues
      better. Some workers still use the same queue whenever their work is
      related. For example, the various CI pipeline workers use the same
      "pipeline" queue.
      
      This commit includes a Rails migration that moves Sidekiq jobs from the
      old queues to the new ones. This migration also takes care of doing the
      inverse if ever needed. This does require downtime as otherwise new jobs
      could be scheduled in the old queues after this migration completes.
      
      This commit also includes an RSpec test that blacklists the use of the
      "default" queue and ensures cron workers use the "cronjob" queue.
      
      Fixes gitlab-org/gitlab-ce#23370
      97731760
  12. 4月 28, 2016
    • Jacob Vosmaer's avatar
      Use 'exec' in Unicorn and Sidekiq launch scripts · 8a6776ca
      Jacob Vosmaer 创作于
      When running Unicorn or Sidekiq in the foreground this change removes
      an intermediate /bin/sh process. This makes process supervision in the
      GitLab Development Kit more reliable.
      
      This change does not affect Omnibus-GitLab (because there we do not
      use these launch scripts). Installations from source do use the launch
      scripts but for the standard GitLab init script this change will not
      make a difference.
      
      Custom installations using Upstart or Systemd may be affected however,
      because under certain configurations these systems count exactly how
      many forks happen during process startup, and we are reducing that
      number by one here.
      8a6776ca
  13. 1月 18, 2016
  14. 1月 15, 2016
  15. 1月 14, 2016
  16. 12月 18, 2015
  17. 12月 03, 2015
  18. 8月 26, 2015
  19. 8月 20, 2015
  20. 4月 01, 2015
  21. 9月 10, 2014
  22. 9月 08, 2014
  23. 7月 04, 2014
  24. 6月 12, 2014
  25. 5月 27, 2014
  26. 4月 01, 2014
  27. 3月 20, 2014
  28. 2月 10, 2014
  29. 10月 22, 2013
  30. 10月 16, 2013
加载中