Commit Graph

14 Commits

Author SHA1 Message Date
GitLab Bot 3d911c6c1f Add latest changes from gitlab-org/gitlab@master 2023-04-24 21:18:05 +00:00
GitLab Bot 40a329556f Add latest changes from gitlab-org/gitlab@master 2023-03-20 21:14:25 +00:00
GitLab Bot 849e6f56ae Add latest changes from gitlab-org/gitlab@master 2023-03-20 15:08:26 +00:00
GitLab Bot f6b58d1490 Add latest changes from gitlab-org/gitlab@master 2023-03-15 18:11:11 +00:00
GitLab Bot da92a12093 Add latest changes from gitlab-org/gitlab@master 2022-11-17 06:08:13 +00:00
GitLab Bot eac94e5cd6 Add latest changes from gitlab-org/gitlab@master 2022-11-01 15:11:22 +00:00
GitLab Bot 0076bbc673 Add latest changes from gitlab-org/gitlab@master 2022-10-28 18:10:48 +00:00
GitLab Bot 6cdb39a9ef Add latest changes from gitlab-org/gitlab@master 2022-04-05 21:08:46 +00:00
GitLab Bot 0851c83c27 Add latest changes from gitlab-org/gitlab@master 2020-08-03 18:10:05 +00:00
GitLab Bot 4c5468b408 Add latest changes from gitlab-org/gitlab@master 2020-06-24 15:08:50 +00:00
GitLab Bot 074d013e1e Add latest changes from gitlab-org/gitlab@master 2020-03-23 15:09:36 +00:00
GitLab Bot 5aa96ff142 Add latest changes from gitlab-org/gitlab@master 2020-03-09 21:07:57 +00:00
Mayra Cabrera c6acb77d8a Removes update_statistics_namespace feature flag
After measuring the impact of the namespace storage on
https://gitlab.com/gitlab-org/gitlab-ce/issues/64092. It was decided
that it's performant enough. So we can freely remove the feature flag

Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/64092
2019-08-02 09:29:29 -05:00
Mayra Cabrera dfdfa913ba Includes logic to persist namespace statistics
- Add two new ActiveRecord models:
  - RootNamespaceStoragestatistics will persist root namespace statistics
  - NamespaceAggregationSchedule will save information when a new update
to the namespace statistics needs to be scheduled
- Inject into UpdateProjectStatistics concern a new callback that will
call an async job to insert a new row onto NamespaceAggregationSchedule
table
- When a new row is inserted a new job is scheduled. This job will
update call an specific service to update the statistics and after that
it will delete thee aggregated scheduled row
- The RefresherServices makes heavy use of arel to build composable
queries to update Namespace::RootStorageStatistics attributes.
- Add an extra worker to traverse pending rows on
NAmespace::AggregationSchedule table and schedule a worker for each one
of this rows.
- Add an extra worker to traverse pending rows on
NAmespace::AggregationSchedule table and schedule a worker for each one
of this rows
2019-07-02 14:44:39 +00:00