gitlab-org--gitlab-foss/spec
Robert Speicher 4f6ad25b0d Merge branch 'pushes-since-gc-redis' into 'master'
Move pushes_since_gc to Redis

## What does this MR do?

This moves tracking of the pushes since the last Git GC to Redis to reduce DB load.

## Are there points in the code the reviewer needs to double check?

Styling mostly.

## Why was this MR needed?

Updating this column can lead to a lot of writes which in turn puts a lot of load on table vacuuming. For example, in the last hour alone we had 5067 UPDATEs for this column (per InfluxDB):

```
> select count(increment_pushes_since_gc_call_count) from sidekiq_transactions where time > now() - 1h;
name: sidekiq_transactions
--------------------------
time                    count
1473780996567714622     5067
```

## What are the relevant issue numbers?

https://gitlab.com/gitlab-org/gitlab-ce/issues/22125

See merge request !6326
2016-09-13 23:35:42 +00:00
..
config Small refactor and a few documentation fixes 2016-08-04 19:02:39 +02:00
controllers Improve grammar 2016-09-13 14:40:05 +02:00
factories Add test with inactive error use case for 'POST /ci/api/v1/builds/register.json' 2016-09-13 17:44:20 +02:00
features Restore SSH Key title auto-population behavior 2016-09-13 11:49:55 -04:00
finders Improve PipelinesFinder spec so that it does not depend on hard-coded database IDs 2016-09-09 16:21:46 -04:00
fixtures Returns the total number of issues in the JSON response 2016-08-31 09:30:37 +01:00
helpers Merge branch 'sidekiq-ps-parsing' into 'master' 2016-09-09 09:53:24 +00:00
initializers Give priority to environment variables 2016-08-03 15:48:48 +01:00
javascripts Merge branch 'add-remember-option-u2f' into 'master' 2016-09-09 18:42:11 +00:00
lib Allow trailing newline in secret base64 data 2016-09-13 19:45:02 +02:00
mailers Merge branch 'master' into 'expiration-date-on-memberships' 2016-08-19 10:58:01 +00:00
models Merge branch 'pushes-since-gc-redis' into 'master' 2016-09-13 23:35:42 +00:00
policies add project_policy_spec to replace .project_abilities spec 2016-08-30 11:35:06 -07:00
requests Add test with inactive error use case for 'POST /ci/api/v1/builds/register.json' 2016-09-13 17:44:20 +02:00
routing Fix markdown help references 2016-08-26 09:38:21 -05:00
services Move pushes_since_gc to Redis 2016-09-13 22:27:51 +02:00
support Merge branch 'restrict_ldap_return_attributes' into 'master' 2016-09-09 18:59:33 +00:00
tasks/gitlab Use `File::exist?` instead of `File::exists?` 2016-08-11 13:54:45 +03:00
uploaders
views add feature test 2016-09-06 14:42:43 +02:00
workers Added cron to prune events older than 12 months. 2016-09-07 19:41:25 +02:00
factories_spec.rb adds second batch of tests changed to active tense 2016-08-09 15:11:39 +01:00
rails_helper.rb
simplecov_env.rb Bump SimpleCov merge timeout to 365 days 2016-08-22 13:44:14 +02:00
spec_helper.rb Merge remote-tracking branch 'upstream/master' into artifacts-from-ref-and-build-name 2016-08-24 20:56:30 +08:00
teaspoon_env.rb Add test coverage analysis for CoffeeScript (!5052) 2016-08-07 21:52:37 +02:00