1. 11 3月, 2019 1 次提交
  2. 04 3月, 2019 1 次提交
  3. 25 2月, 2019 1 次提交
  4. 22 2月, 2019 1 次提交
    • E
      Ensure all lists are surrounded by new lines · eb866309
      Evan Read 提交于
      Markdown renderers find it easier to determine
      where lists start and end when lists are surrounded
      by new lines.
      
      For consistency, also ensure entries in the list
      are aligned when they span multipls lines.
      eb866309
  5. 20 2月, 2019 1 次提交
  6. 06 2月, 2019 1 次提交
    • B
      Update metrics docs · e1ea47bb
      Ben Kochie 提交于
      Update the list of GitLab metrics to include the missing metric names.
      e1ea47bb
  7. 24 1月, 2019 1 次提交
  8. 02 1月, 2019 1 次提交
  9. 18 12月, 2018 1 次提交
  10. 30 11月, 2018 1 次提交
  11. 24 11月, 2018 1 次提交
  12. 23 11月, 2018 2 次提交
  13. 14 11月, 2018 2 次提交
  14. 13 11月, 2018 2 次提交
  15. 08 11月, 2018 1 次提交
  16. 07 11月, 2018 1 次提交
  17. 06 11月, 2018 1 次提交
  18. 15 10月, 2018 1 次提交
  19. 10 10月, 2018 1 次提交
    • Z
      Remove Git circuit breaker · 30b4ce94
      Zeger-Jan van de Weg 提交于
      Was introduced in the time that GitLab still used NFS, which is not
      required anymore in most cases. By removing this, the API it calls will
      return empty responses. This interface has to be removed in the next
      major release, expected to be 12.0.
      30b4ce94
  20. 12 9月, 2018 1 次提交
    • B
      Update example Prometheus queries · e91c7469
      Ben Kochie 提交于
      * Update metric names to match current release.
      * Improve descriptions.
      * Improve examples to show more query language functionality.
      
      Memory:
      * Show use of `or` function.
      * Automatically select "MemAvailable" kernel metric if possible.
      
      CPU:
      * Show use of `avg without ...`.
      * Show CPU utilization per node.
      
      Network:
      * Show use of `!=` label matching.
      * Don't show "localhost" metrics.
      e91c7469
  21. 07 9月, 2018 1 次提交
  22. 27 8月, 2018 1 次提交
  23. 18 7月, 2018 1 次提交
  24. 04 7月, 2018 1 次提交
  25. 22 6月, 2018 1 次提交
    • B
      Cleanup ruby sampler metrics · 78a99915
      Ben Kochie 提交于
      * Use a simple counter for sampler duration instead of a histogram.
      * Use a counter to collect GC time.
      * Remove unused objects metric.
      * Cleanup metric names to match Prometheus conventions.
      * Prefix generic GC stats with `gc_stat`.
      * Include worker label on memory and file descriptor metrics.
      78a99915
  26. 29 5月, 2018 1 次提交
  27. 21 5月, 2018 1 次提交
  28. 27 4月, 2018 1 次提交
  29. 06 4月, 2018 1 次提交
  30. 20 3月, 2018 1 次提交
    • S
      Show Ajax requests in performance bar · a200619d
      Sean McGivern 提交于
      But first, rewrite the performance bar in Vue:
      
      1. Remove the peek-host gem and replace it with existing code. This also allows
         us to include the host in the JSON response, rather than in the page HTML.
      2. Leave the line profiler parts as here-be-dragons: nicer would be a separate
         endpoint for these, so we could use them on Ajax requests too.
      3. The performance bar is too fiddly to rewrite right now, so apply the same
         logic to that.
      
      Then, add features! All requests made through Axios are able to be tracked. To
      keep a lid on memory usage, only the first two requests for a given URL are
      tracked, though. Each request that's tracked has the same data as the initial
      page load, with the exception of the performance bar and the line profiler, as
      explained above.
      a200619d
  31. 13 3月, 2018 1 次提交
  32. 07 3月, 2018 1 次提交
  33. 21 2月, 2018 1 次提交
  34. 15 12月, 2017 1 次提交
  35. 11 12月, 2017 1 次提交
  36. 08 11月, 2017 1 次提交
    • Y
      Rewrite the GitHub importer from scratch · 4dfe26cd
      Yorick Peterse 提交于
      Prior to this MR there were two GitHub related importers:
      
      * Github::Import: the main importer used for GitHub projects
      * Gitlab::GithubImport: importer that's somewhat confusingly used for
        importing Gitea projects (apparently they have a compatible API)
      
      This MR renames the Gitea importer to Gitlab::LegacyGithubImport and
      introduces a new GitHub importer in the Gitlab::GithubImport namespace.
      This new GitHub importer uses Sidekiq for importing multiple resources
      in parallel, though it also has the ability to import data sequentially
      should this be necessary.
      
      The new code is spread across the following directories:
      
      * lib/gitlab/github_import: this directory contains most of the importer
        code such as the classes used for importing resources.
      * app/workers/gitlab/github_import: this directory contains the Sidekiq
        workers, most of which simply use the code from the directory above.
      * app/workers/concerns/gitlab/github_import: this directory provides a
        few modules that are included in every GitHub importer worker.
      
      == Stages
      
      The import work is divided into separate stages, with each stage
      importing a specific set of data. Stages will schedule the work that
      needs to be performed, followed by scheduling a job for the
      "AdvanceStageWorker" worker. This worker will periodically check if all
      work is completed and schedule the next stage if this is the case. If
      work is not yet completed this worker will reschedule itself.
      
      Using this approach we don't have to block threads by calling `sleep()`,
      as doing so for large projects could block the thread from doing any
      work for many hours.
      
      == Retrying Work
      
      Workers will reschedule themselves whenever necessary. For example,
      hitting the GitHub API's rate limit will result in jobs rescheduling
      themselves. These jobs are not processed until the rate limit has been
      reset.
      
      == User Lookups
      
      Part of the importing process involves looking up user details in the
      GitHub API so we can map them to GitLab users. The old importer used
      an in-memory cache, but this obviously doesn't work when the work is
      spread across different threads.
      
      The new importer uses a Redis cache and makes sure we only perform
      API/database calls if absolutely necessary.  Frequently used keys are
      refreshed, and lookup misses are also cached; removing the need for
      performing API/database calls if we know we don't have the data we're
      looking for.
      
      == Performance & Models
      
      The new importer in various places uses raw INSERT statements (as
      generated by `Gitlab::Database.bulk_insert`) instead of using Rails
      models. This allows us to bypass any validations and callbacks,
      drastically reducing the number of SQL queries and Gitaly RPC calls
      necessary to import projects.
      
      To ensure the code produces valid data the corresponding tests check if
      the produced rows are valid according to the model validation rules.
      4dfe26cd
  37. 30 10月, 2017 1 次提交