Sha256: ebaa4f885828b43b4c82e31a0e1c4c1bec2be903ec713412a6bc0517dc786e93
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 KB
Contents
module GarbageMan class Config @@gc_health_check_request_path = '/gc_health_check' def self.gc_health_check_request_path; @@gc_health_check_request_path; end @@gc_yaml_file = nil def self.gc_yaml_file; @@gc_yaml_file ||= "./data/gc.yml"; end def self.gc_yaml_file=(file); @@gc_yaml_file = file; end @@gc_yaml_tmp_file = nil def self.gc_yaml_tmp_file; @@gc_yaml_tmp_file ||= "./data/.tmp.gc.yml"; end def self.gc_yaml_tmp_file=(file); @@gc_yaml_tmp_file = file; end def self.gc_config begin File.exists?(self.gc_yaml_file) ? YAML.load_file(self.gc_yaml_file) : nil rescue Exception => e nil end end @@thin_config = nil def self.thin_config; @@thin_config ||= YAML.load_file("./config/thin.yml"); end @@enable_gc_file = "./data/enable_gc" def self.enable_gc_file; @@enable_gc_file; end @@num_request_before_collecting = nil def self.num_request_before_collecting; @@num_request_before_collecting ||= 40; end def self.num_request_before_collecting=(val); @@num_request_before_collecting = val; end # absolutely make sure we are in the pool again before selecting next server def self.num_request_before_selecting_next_server; 10; end def self.min_servers_to_disable_gc; 2; end # if we have not GC in 20 seconds turn back on GC def self.max_time_without_gc; 20; end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
garbageman-0.1.20 | lib/garbageman/config.rb |