Method: Sequel::ShardedSingleConnectionPool#add_servers

Defined in:
lib/sequel/connection_pool/sharded_single.rb

#add_servers(servers) ⇒ Object

Adds new servers to the connection pool. Primarily used in conjunction with primary/replica or sharded configurations. Allows for dynamic expansion of the potential replicas/shards at runtime. servers argument should be an array of symbols.


25
26
27
# File 'lib/sequel/connection_pool/sharded_single.rb', line 25

def add_servers(servers)
  servers.each{|s| @servers[s] = s}
end