class Puma::Cluster::WorkerHandle
def ping!(status)
def ping!(status) hsh = {} k, v = nil, nil status.tr('}{"', '').strip.split(", ") do |kv| cntr = 0 kv.split(':') do |t| if cntr == 0 k = t cntr = 1 else v = t end end hsh[k.to_sym] = v.to_i end # check stat max values, we can't signal workers to reset the max values, # so we do so here WORKER_MAX_KEYS.each_with_index do |key, idx| next unless hsh[key] if hsh[key] < @worker_max[idx] hsh[key] = @worker_max[idx] else @worker_max[idx] = hsh[key] end end @last_checkin = Time.now @last_status = hsh end