mongo_ha 1.11.0.rc1 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +16 -5
  3. data/lib/mongo_ha/version.rb +1 -1
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40d6a7af7f740daf8f07e5f79713ae0b2ad76e2d
4
- data.tar.gz: 1a0ba4bdda6f79ea283d1544f926d1901b500a1f
3
+ metadata.gz: c4aa81772c8c5cd34ccff8300c4dcac2f74f4626
4
+ data.tar.gz: 6b663baa042cb9af89ea6fe6707b3af0e0af0a3a
5
5
  SHA512:
6
- metadata.gz: 58f85d47132a40bf22cad95bc38044590b3fbcb0dbf1a78171f3dc3ae29aa559a7ff836867f3926465ecb2fdc5809de3447d50318112fc7665e39313c21ce355
7
- data.tar.gz: a9e5aae3321e9e17f5ed1f401a952c8e39a60c1bea47345c4c5a461135a95f10e56411bb087fbc07a115882facaca62b010b6d17640cd35140d646116645de87
6
+ metadata.gz: aa0d2d6f0ff144023e1126863f5630a38afb51cc4164e5938a3dde0251aad517626b44561896dca1c05f3ebec1b7976a582260a981dfb02fb0023157b9a8f6af
7
+ data.tar.gz: 766b15cde4551b05a6e0936626a34f26e8178fc1ef16fa5267823491d101eb800bbc63371cb16b76b85598e02dc9b954d4de41c1acd52bcf76d519df1a6c8333
data/README.md CHANGED
@@ -9,19 +9,30 @@ remote data centers.
9
9
 
10
10
  ## Overview
11
11
 
12
- Adds methods to the Mongo Ruby driver to support retries on connection failure.
12
+ Tired of the mongo ruby driver throwing exceptions just because a server in the
13
+ replica-set starts or stops?
14
+
15
+ `mongo_ha` quietly handles replica-set changes, replica-set master re-election,
16
+ and transient network failures without blowing up your application.
17
+
18
+ This gem does not replace the `mongo` ruby driver, it adds methods and patches
19
+ others in the Mongo Ruby driver to make it support automatic reconnection and
20
+ retries on connection failure.
13
21
 
14
22
  In the event of a connection failure, only one thread will attempt to re-establish
15
23
  connectivity to the Mongo server(s). This is to prevent swamping the mongo
16
24
  servers with reconnect attempts.
17
25
 
18
- Retries are initially performed quickly in case it is brief network issue
26
+ Retries are initially performed quickly in case it is a brief network issue
19
27
  and then backs off to give the replica-set time to elect a new master.
20
28
 
21
- Currently Only Supports Ruby Mongo driver v1.11.x
29
+ Currently Only Supports Ruby Mongo driver v1.11.x. Submit an issue if other versions
30
+ need support too.
22
31
 
23
- mongo_ha transparently supports MongoMapper since it uses the mongo ruby driver
24
- that is patched by loading this gem.
32
+ `mongo_ha` transparently supports `MongoMapper` since it uses the mongo ruby driver
33
+ that is patched by loading this gem. Earlier versions of Mongoid will also benefit
34
+ from `mongo_ha`, the latest version of Mongoid uses Moped that should be avoided and is
35
+ due to be replaced.
25
36
 
26
37
  Mongo Router processes will often return a connection failure on their side
27
38
  as an OperationFailure. This code will also retry automatically when the router
@@ -1,3 +1,3 @@
1
1
  module MongoHA #:nodoc
2
- VERSION = "1.11.0.rc1"
2
+ VERSION = "1.11.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongo_ha
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0.rc1
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reid Morrison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-01 00:00:00.000000000 Z
11
+ date: 2015-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongo
@@ -53,9 +53,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
53
53
  version: '0'
54
54
  required_rubygems_version: !ruby/object:Gem::Requirement
55
55
  requirements:
56
- - - ">"
56
+ - - ">="
57
57
  - !ruby/object:Gem::Version
58
- version: 1.3.1
58
+ version: '0'
59
59
  requirements: []
60
60
  rubyforge_project:
61
61
  rubygems_version: 2.4.5