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.
- checksums.yaml +4 -4
- data/README.md +16 -5
- data/lib/mongo_ha/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4aa81772c8c5cd34ccff8300c4dcac2f74f4626
|
4
|
+
data.tar.gz: 6b663baa042cb9af89ea6fe6707b3af0e0af0a3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/mongo_ha/version.rb
CHANGED
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
|
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-
|
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:
|
58
|
+
version: '0'
|
59
59
|
requirements: []
|
60
60
|
rubyforge_project:
|
61
61
|
rubygems_version: 2.4.5
|