unicorn_wrangler 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9bc650286ed195d169cc671badd483392764a89
4
- data.tar.gz: 93edb5fc2480c7234f787e3bc69341eb952ad9c0
3
+ metadata.gz: 54d7b9a72c24b04921b1166ba43b368c42165a2e
4
+ data.tar.gz: df7a4c53a340a8399f0463a71f35be907d0b6785
5
5
  SHA512:
6
- metadata.gz: 947a5a76a418ad1ee71b18246b04d8a3264f1485426f5499424f346dbe596ffdd1b987e50486a376221fe01cfd00e31df27d5e6f3a18290936ad6a846d838c9c
7
- data.tar.gz: 86bede236627be26a1ea6f85d1a3c577cac936dbabaeb97ab5e2dec3a9c62a015ec2c68333c998ea12620bf839e7de6470804e689d9f542620e5288152cf860a
6
+ metadata.gz: 9890df840242eddf6cb7e4f7843240436cfc0b9eef194f40ac35b9f42d42b24966a9c57e6cedd34d09d6d38dc5dab0839a9410e750a86658a12bbc34f81b0e74
7
+ data.tar.gz: 2089a8b26d54f74e90bafaf1cffe558c5290c835460765b06ed1abcb19eae935f43d49a683344729b76ac6b2e59501c52283121b50be8c3cf963901a158841ac
@@ -1,3 +1,3 @@
1
1
  module UnicornWrangler
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -60,11 +60,11 @@ module UnicornWrangler
60
60
  # Possible issue: kill_worker is not meant to kill the server pid ... might have strange side effects
61
61
  def kill(reason, memory, requests, request_time)
62
62
  if @stats
63
- @stats.increment("unicorn.kill.#{reason}")
63
+ @stats.increment("#{STATS_NAMESPACE}.kill.#{reason}")
64
64
 
65
- @stats.histogram('unicorn.kill.memory', request_time)
66
- @stats.histogram('unicorn.kill.total_requests', requests)
67
- @stats.histogram('unicorn.kill.total_request_time', request_time)
65
+ @stats.histogram("#{STATS_NAMESPACE}.kill.memory", memory)
66
+ @stats.histogram("#{STATS_NAMESPACE}.kill.total_requests", requests)
67
+ @stats.histogram("#{STATS_NAMESPACE}.kill.total_request_time", request_time)
68
68
  end
69
69
 
70
70
  @logger.info "Killing unicorn worker ##{Process.pid} for #{reason}. Requests: #{requests}, Time: #{request_time}, Memory: #{memory}MB"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicorn_wrangler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-20 00:00:00.000000000 Z
11
+ date: 2017-02-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: michael@grosser.it