'ec2.ap-‐northeast-‐1.amazonaws.com') ret = @ec2.instances.map do |instance| next if instance.tags[tag_key] != tag_value next if instance.status != :running instance.dns_name.empty? ? instance.ip_address : instance.dns_name end.compact return default if ret.empty? ret end def tag(tag_value, *args) AWS.memoize { tagged_servers(tag_key, tag_value).each do |host| server(host, *args) end } end # config/deploy/environment.rb tag 'app', :web, :app σϓϩΠ 137݄20༵
require 'unicorn/worker_killer' # ϦΫΤετΛ࣮ߦ͍ͯ͠Δͱ͖GC͠ͳ͍ use Unicorn::OobGC # 3072~4096ϦΫΤετ࣮ߦͨ͠Β࠶ىಈ͢Δ use Unicorn::WorkerKiller::MaxRequests, 3072, 4096 run XXXXXXX::Application 137݄20༵