Class Mongo::PoolManager
In: lib/mongo/util/pool_manager.rb
Parent: Object

Methods

Included Modules

Mongo::ReadPreference ThreadLocalVariableManager

Attributes

arbiters  [R] 
client  [R] 
hosts  [R] 
max_bson_size  [R] 
members  [R] 
nodes  [R] 
primary  [R] 
primary_pool  [R] 
secondaries  [R] 
secondary_pool  [R] 
secondary_pools  [R] 
seeds  [R] 

Public Class methods

Create a new set of connection pools.

The pool manager will by default use the original seed list passed to the connection objects, accessible via connection.seeds. In addition, the user may pass an additional list of seeds nodes discovered in real time. The union of these lists will be used when attempting to connect, with the newly-discovered nodes being used first.

Public Instance methods

We‘re healthy if all members are pingable and if the view of the replica set returned by isMaster is equivalent to our view. If any of these isn‘t the case, set @refresh_required to true, and return.

The replica set connection should initiate a full refresh.

[Validate]