garbageman 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjkwMDg1MjVjODdjZWYyOWE3M2M1ZTRmMTBlYjA0YTk3NmY3NDJhZA==
4
+ ZWI2MjdiMzYwOGU4M2I0YjZlZmVhMTA2ZjIzMTZjYjg4NTJiY2I0Zg==
5
5
  data.tar.gz: !binary |-
6
- YzAxNTNhNjBkNDQ0NDdmYjg1NDNiYTVlYTM0NjZiZTFkMjZkYTJkMA==
6
+ OWE1MzJhYjRhZmFjZGM1ZTgyYjg1NDZhMWI2NDExY2RmN2Y5MWRiMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Y2M4NDIzMjRiNTlhYThlZWEzYjBjNjFjYmEzYWE5MTEzY2UwMmE5Y2RkMDg2
10
- MmYxZDA0YTA0Mzg3MTJhZTZlZWY3YTczMDUxMzFlMDJkMzQ4NmU2MWNmNjQ4
11
- M2E2OWE1OThmMjkzNDQ0ODA2Yjk1MTk4YjM0YjY1ODBmMTg5MmQ=
9
+ MjlkOTRkZDI3NDMzZDA4OWFkZmQ4YjA0NmU0NzdhMzU5YzQxYTViZWQ3YzU1
10
+ ZGUyNWMwZDMwMjc3NTMwZTEzNzM5ODBkZThhOTE3MWEwOGE5YzQ0NWY2NzJk
11
+ NzBjMmMwOGMwMWRhNzUxZWI0MTU3OGQ0MWUyNGUyMGU5YzU0Yjk=
12
12
  data.tar.gz: !binary |-
13
- ZmYwMjI1OWIyYWMzMWY4NDUyZjAzMzlhNjVlMWUzY2M1YWY2NTcwOWI5NDdj
14
- OWU3NmYxNmJiOWVkMzBmN2QxNzA4YWJhNTBmYjA4MjEzYjdiZjkyMTFiNThi
15
- NDRhMDM5NjliN2IzNzI5NGJhY2YyMDcyZGQ0MmUzM2I5YjMyMTY=
13
+ MGViZTE1MzUwZjg5YWM0Yzg0ZGQxYzUxYTM4NGMwNWRkZDQzMTRlZjZiY2E0
14
+ NGRlMGQ5N2UyYzkwZmFjZGNjMjkxOWRlNTU0YTViNmE0YmRlZTY5ZDQ1NzM0
15
+ ODJlOGJmMDc4Mjc3M2QyMDk0YmY5YjhkZDI0OWFlYTI2OTAxNzk=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
data/garbageman.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "garbageman"
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Doug Youch"]
@@ -25,8 +25,8 @@ module GarbageMan
25
25
  @@enable_gc_file = "./data/enable_gc"
26
26
  def self.enable_gc_file; @@enable_gc_file; end
27
27
 
28
- @@num_request_before_collecting = nil
29
- def self.num_request_before_collecting; @@num_request_before_collecting ||= 40; end
28
+ @@num_request_before_collecting = 20
29
+ def self.num_request_before_collecting; @@num_request_before_collecting; end
30
30
  def self.num_request_before_collecting=(val); @@num_request_before_collecting = val; end
31
31
 
32
32
  # can configure to turn on gc if server starts queuing requests
@@ -35,9 +35,17 @@ module GarbageMan
35
35
  def self.check_request_queue=(val); @@check_request_queue = val; end
36
36
 
37
37
  # absolutely make sure we are in the pool again before selecting next server
38
- def self.num_request_before_selecting_next_server; 10; end
39
- def self.min_servers_to_disable_gc; 3; end
40
- # if we have not GC in 20 seconds turn back on GC
41
- def self.max_time_without_gc; 20; end
38
+ @@num_request_before_selecting_next_server = 5
39
+ def self.num_request_before_selecting_next_server; @@num_request_before_selecting_next_server; end
40
+ def self.num_request_before_selecting_next_server=(n); @@num_request_before_selecting_next_server = n; end
41
+
42
+ @@min_servers_to_disable_gc = 3
43
+ def self.min_servers_to_disable_gc; @@min_servers_to_disable_gc; end
44
+ def self.min_servers_to_disable_gc=(n); @@min_servers_to_disable_gc = n; end
45
+
46
+ # if we have not GC in 40 seconds turn back on GC
47
+ @@max_time_without_gc = 40
48
+ def self.max_time_without_gc; @@max_time_without_gc; end
49
+ def self.max_time_without_gc=(time); @max_time_without_gc = time; end
42
50
  end
43
51
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: garbageman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doug Youch