Commit graph

23 commits

Author SHA1 Message Date
GitLab Bot
ecc11e5d60 Add latest changes from gitlab-org/gitlab@master 2021-12-10 15:10:24 +00:00
GitLab Bot
1aa9cd3080 Add latest changes from gitlab-org/gitlab@master 2021-11-09 09:10:06 +00:00
GitLab Bot
11cb5f046d Add latest changes from gitlab-org/gitlab@master 2021-06-17 12:10:02 +00:00
GitLab Bot
2af44d609e Add latest changes from gitlab-org/gitlab@master 2021-04-21 12:09:16 +00:00
GitLab Bot
69b0ff9002 Add latest changes from gitlab-org/gitlab@master 2021-04-15 12:09:05 +00:00
GitLab Bot
413119517c Add latest changes from gitlab-org/gitlab@master 2021-04-07 18:09:45 +00:00
GitLab Bot
01ae05ffd1 Add latest changes from gitlab-org/gitlab@master 2021-02-25 18:11:05 +00:00
GitLab Bot
5ff5047fdc Add latest changes from gitlab-org/gitlab@master 2021-02-23 15:10:47 +00:00
GitLab Bot
232e7582b0 Add latest changes from gitlab-org/gitlab@master 2021-02-22 15:10:48 +00:00
GitLab Bot
10052df753 Add latest changes from gitlab-org/gitlab@master 2021-01-29 15:09:40 +00:00
GitLab Bot
10cc2d7a72 Add latest changes from gitlab-org/gitlab@master 2021-01-25 15:09:00 +00:00
GitLab Bot
f469daf1dc Add latest changes from gitlab-org/gitlab@master 2021-01-11 12:10:41 +00:00
GitLab Bot
5c9f6c66fa Add latest changes from gitlab-org/gitlab@master 2020-12-23 12:10:26 +00:00
GitLab Bot
eba30e2ad8 Add latest changes from gitlab-org/gitlab@master 2020-12-16 00:09:58 +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
1219a9dce9 Add latest changes from gitlab-org/gitlab@master 2020-04-01 15:07:45 +00:00
GitLab Bot
abae8f34f3 Add latest changes from gitlab-org/gitlab@master 2020-03-31 21:08:05 +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
d132f73d42 Implements lease_release on NamespaceAggregation
Sets lease_release? to false to prevent the job to be re-executed more
often than lease timeout

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/64079
2019-07-04 15:52:02 +00: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