Skip to content

Commit

Permalink
Bumped total_connections_threshold to 500 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Sep 3, 2018
1 parent 9efe0ee commit 48d0740
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
## 2.1.2 [unreleased]
## 2.2.0 [unreleased]

- Improved duplicate index logic to detect more duplicates
- Don't report concurrent indexes in-progress as invalid on dashboard
- Fixed error with large number of sequences
- Bumped `total_connections_threshold` to 500 by default

## 2.1.1

Expand Down
2 changes: 1 addition & 1 deletion guides/Heroku.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ heroku config:set PGHERO_SLOW_QUERY_CALLS=100 # default
Minimum connections for high connections warning

```sh
heroku config:set PGHERO_TOTAL_CONNECTIONS_THRESHOLD=100 # default
heroku config:set PGHERO_TOTAL_CONNECTIONS_THRESHOLD=500 # default
```

Statement timeout for explain
Expand Down
2 changes: 1 addition & 1 deletion guides/Linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ sudo pghero config:set PGHERO_SLOW_QUERY_CALLS=100 # default
Minimum connections for high connections warning

```sh
sudo pghero config:set PGHERO_TOTAL_CONNECTIONS_THRESHOLD=100 # default
sudo pghero config:set PGHERO_TOTAL_CONNECTIONS_THRESHOLD=500 # default
```

Statement timeout for explain
Expand Down
2 changes: 1 addition & 1 deletion guides/Rails.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ PgHero.slow_query_calls = 100 # default
Minimum connections for high connections warning

```ruby
PgHero.total_connections_threshold = 100 # default
PgHero.total_connections_threshold = 500 # default
```

Statement timeout for explain
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/pghero/templates/config.yml.tt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ databases:
# slow_query_calls: 100

# Minimum connections for high connections warning
# total_connections_threshold: 100
# total_connections_threshold: 500

# Statement timeout for explain
# explain_timeout_sec: 10
Expand Down
2 changes: 1 addition & 1 deletion lib/pghero.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class << self
self.slow_query_ms = (ENV["PGHERO_SLOW_QUERY_MS"] || 20).to_i
self.slow_query_calls = (ENV["PGHERO_SLOW_QUERY_CALLS"] || 100).to_i
self.explain_timeout_sec = (ENV["PGHERO_EXPLAIN_TIMEOUT_SEC"] || 10).to_i
self.total_connections_threshold = (ENV["PGHERO_TOTAL_CONNECTIONS_THRESHOLD"] || 100).to_i
self.total_connections_threshold = (ENV["PGHERO_TOTAL_CONNECTIONS_THRESHOLD"] || 500).to_i
self.cache_hit_rate_threshold = 99
self.env = ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development"
self.show_migrations = true
Expand Down

0 comments on commit 48d0740

Please sign in to comment.