mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
(RE-15162) Update OTEL gems.
This commit is contained in:
parent
46156fd85f
commit
ac578eef15
4 changed files with 58 additions and 45 deletions
|
|
@ -209,7 +209,13 @@ module Vmpooler
|
|||
end
|
||||
|
||||
def self.new_redis(host = 'localhost', port = nil, password = nil, redis_reconnect_attempts = 10)
|
||||
Redis.new(host: host, port: port, password: password, reconnect_attempts: redis_reconnect_attempts, timeout: 5)
|
||||
Redis.new(
|
||||
host: host,
|
||||
port: port,
|
||||
password: password,
|
||||
reconnect_attempts: redis_reconnect_attempts,
|
||||
connect_timeout: 300,
|
||||
)
|
||||
end
|
||||
|
||||
def self.pools(conf)
|
||||
|
|
|
|||
|
|
@ -1442,13 +1442,15 @@ module Vmpooler
|
|||
end
|
||||
|
||||
def create_dns_object(config, logger, metrics, redis_connection_pool, dns_class, dns_name, options)
|
||||
dns_klass = Vmpooler::PoolManager::Dns
|
||||
dns_klass.constants.each do |classname|
|
||||
next unless classname.to_s.casecmp(dns_class) == 0
|
||||
if defined?(Vmpooler::PoolManager::Dns)
|
||||
dns_klass = Vmpooler::PoolManager::Dns
|
||||
dns_klass.constants.each do |classname|
|
||||
next unless classname.to_s.casecmp(dns_class) == 0
|
||||
|
||||
return dns_klass.const_get(classname).new(config, logger, metrics, redis_connection_pool, dns_name, options)
|
||||
return dns_klass.const_get(classname).new(config, logger, metrics, redis_connection_pool, dns_name, options)
|
||||
end
|
||||
raise("DNS '#{dns_class}' is unknown for pool with dns name '#{dns_name}'") if dns_klass.nil?
|
||||
end
|
||||
raise("DNS '#{dns_class}' is unknown for pool with dns name '#{dns_name}'") if dns_klass.nil?
|
||||
end
|
||||
|
||||
def check_ondemand_requests(maxloop = 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue