diff options
author | Sean McGivern <sean@gitlab.com> | 2019-03-12 10:29:54 +0000 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-03-12 10:29:54 +0000 |
commit | de61dc4ca60a6510d59c5817257920cda7fdefbe (patch) | |
tree | 017119210b0b4598f78f03690c4aca474fcf90ad | |
parent | 6fd7149e655113f187160a143af5ebd8a87fab25 (diff) | |
parent | de54e4f9c7b7babf09fdc3451f17c18fa5fef445 (diff) | |
download | gitlab-ce-de61dc4ca60a6510d59c5817257920cda7fdefbe.tar.gz |
Merge branch 'revert-b923d1b5' into 'master'
Revert "Merge branch 'check_pg_stat_activity' into 'master'"
See merge request gitlab-org/gitlab-ce!26016
-rw-r--r-- | spec/support/pg_stat_activity.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/spec/support/pg_stat_activity.rb b/spec/support/pg_stat_activity.rb deleted file mode 100644 index f93fba08a19..00000000000 --- a/spec/support/pg_stat_activity.rb +++ /dev/null @@ -1,19 +0,0 @@ -# frozen_string_literal: true - -RSpec.configure do |config| - config.before do - if Gitlab::Database.postgresql? && ENV['PG_STAT_WARNING_THRESHOLD'] - warning_threshold = ENV['PG_STAT_WARNING_THRESHOLD'].to_i - results = ActiveRecord::Base.connection.execute('SELECT * FROM pg_stat_activity') - ntuples = results.ntuples - - warn("pg_stat_activity count: #{ntuples}") - - if ntuples > warning_threshold - results.each do |result| - warn result.inspect - end - end - end - end -end |