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 +8 -8
- data/VERSION +1 -1
- data/garbageman.gemspec +1 -1
- data/lib/garbageman/config.rb +14 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZWI2MjdiMzYwOGU4M2I0YjZlZmVhMTA2ZjIzMTZjYjg4NTJiY2I0Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWE1MzJhYjRhZmFjZGM1ZTgyYjg1NDZhMWI2NDExY2RmN2Y5MWRiMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjlkOTRkZDI3NDMzZDA4OWFkZmQ4YjA0NmU0NzdhMzU5YzQxYTViZWQ3YzU1
|
10
|
+
ZGUyNWMwZDMwMjc3NTMwZTEzNzM5ODBkZThhOTE3MWEwOGE5YzQ0NWY2NzJk
|
11
|
+
NzBjMmMwOGMwMWRhNzUxZWI0MTU3OGQ0MWUyNGUyMGU5YzU0Yjk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MGViZTE1MzUwZjg5YWM0Yzg0ZGQxYzUxYTM4NGMwNWRkZDQzMTRlZjZiY2E0
|
14
|
+
NGRlMGQ5N2UyYzkwZmFjZGNjMjkxOWRlNTU0YTViNmE0YmRlZTY5ZDQ1NzM0
|
15
|
+
ODJlOGJmMDc4Mjc3M2QyMDk0YmY5YjhkZDI0OWFlYTI2OTAxNzk=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
data/garbageman.gemspec
CHANGED
data/lib/garbageman/config.rb
CHANGED
@@ -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 =
|
29
|
-
def self.num_request_before_collecting; @@num_request_before_collecting
|
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
|
-
|
39
|
-
def self.
|
40
|
-
|
41
|
-
|
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
|