Module: Sequel

Defined in:
lib/sequel/schema-sharding/extensions/migrations_ext.rb,
lib/sequel/schema-sharding.rb,
lib/sequel/schema-sharding/ring.rb,
lib/sequel/schema-sharding/model.rb,
lib/sequel/schema-sharding/finder.rb,
lib/sequel/schema-sharding/version.rb,
lib/sequel/plugins/dataset_shard_id.rb,
lib/sequel/schema-sharding/logger_proxy.rb,
lib/sequel/schema-sharding/configuration.rb,
lib/sequel/schema-sharding/dtrace_provider.rb,
lib/sequel/schema-sharding/database_manager.rb,
lib/sequel/schema-sharding/connection_manager.rb,
lib/sequel/schema-sharding/extensions/sequel_ext.rb,
lib/sequel/schema-sharding/extensions/migrations_ext.rb,
lib/sequel/schema-sharding/extensions/postgres/dataset.rb,
lib/sequel/schema-sharding/connection_strategies/random.rb,
lib/sequel/schema-sharding/connection_strategies/primary_with_failover.rb

Overview

This strategy is used for choosing a :read_only server to connect to.

It will default to the first server in the list. In the event that the first server is unavailable, the remaining replicas will be randomly chosen from.

Defined Under Namespace

Modules: Plugins, Postgres, SchemaSharding Classes: Database