tarantool 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/tarantool/em_db.rb +4 -2
- data/lib/tarantool/version.rb +1 -1
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDI3ZWEwOTQ1YTc4ZGE5Zjc3ZTE2YzM3YzA5ZTNmMjczYjM3OWVmMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2UzZjNkNTUxZTU1N2M1NGY1MzY0ZjZlZDRlNzk4NTIxMGViZDEzMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTUyZDg3MGUwZjhmNjE0ZDI2NWUwYzEyYjY0N2ZjMzM4YzA4MzM0MWQxYmI4
|
10
|
+
YzM3NDIyMjMyZDRmZjIzZjI3NTAxOGU3NjFiYWY2YjgyOTdlNTQ5ODg1ZTUz
|
11
|
+
MWI3OTEzNDI4NTI3ZDFkOWVmNmM5MDk0M2I5NjIwM2M5ZGRkYWU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODY2OTQ2ZTZjNWZlMDQyODVhZjNhYzc1ODg5YzU4OTBjNDM2NDQ0NTFiNmY3
|
14
|
+
MDI1ZTlmMzlmY2I4M2VhOWI2YjI4MDZiNTNlYWEwYmY0Y2EwODA3MTM2MGQ1
|
15
|
+
ODA2Y2JhZWIyZDdjZGM5YTQ4MDM0NDI0Yzc0OTEyNmQ5YWZlY2E=
|
data/lib/tarantool/em_db.rb
CHANGED
@@ -61,9 +61,11 @@ module Tarantool
|
|
61
61
|
elsif read_write == :read
|
62
62
|
case @replica_strategy
|
63
63
|
when :round_robin
|
64
|
-
replicas = replicas.shuffle
|
64
|
+
replicas = replicas.shuffle.sort_by!{|con| con.waiting_requests_size/5}
|
65
65
|
when :prefer_slave
|
66
|
-
|
66
|
+
master = replicas[0]
|
67
|
+
replicas = replicas[1..-1].shuffle.sort_by!{|con| con.waiting_requests_size/5}
|
68
|
+
replicas << master
|
67
69
|
end
|
68
70
|
EM.next_tick OneShardRead.new(replicas, response, feed)
|
69
71
|
else
|
data/lib/tarantool/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tarantool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Rudenko
|
@@ -9,28 +9,23 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-11-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
version_requirements: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ! '>='
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 0.3.15
|
20
15
|
prerelease: false
|
21
16
|
requirement: !ruby/object:Gem::Requirement
|
22
17
|
requirements:
|
23
18
|
- - ! '>='
|
24
19
|
- !ruby/object:Gem::Version
|
25
|
-
version: 0.3.
|
20
|
+
version: 0.3.17
|
26
21
|
type: :runtime
|
27
22
|
name: iproto
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
23
|
version_requirements: !ruby/object:Gem::Requirement
|
30
24
|
requirements:
|
31
25
|
- - ! '>='
|
32
26
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
27
|
+
version: 0.3.17
|
28
|
+
- !ruby/object:Gem::Dependency
|
34
29
|
prerelease: false
|
35
30
|
requirement: !ruby/object:Gem::Requirement
|
36
31
|
requirements:
|
@@ -39,12 +34,12 @@ dependencies:
|
|
39
34
|
version: 0.1.1
|
40
35
|
type: :runtime
|
41
36
|
name: murmurhash3
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
37
|
version_requirements: !ruby/object:Gem::Requirement
|
44
38
|
requirements:
|
45
39
|
- - ! '>='
|
46
40
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
41
|
+
version: 0.1.1
|
42
|
+
- !ruby/object:Gem::Dependency
|
48
43
|
prerelease: false
|
49
44
|
requirement: !ruby/object:Gem::Requirement
|
50
45
|
requirements:
|
@@ -53,12 +48,12 @@ dependencies:
|
|
53
48
|
version: 0.0.2
|
54
49
|
type: :runtime
|
55
50
|
name: sumbur
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
51
|
version_requirements: !ruby/object:Gem::Requirement
|
58
52
|
requirements:
|
59
|
-
- -
|
53
|
+
- - ! '>='
|
60
54
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.0.
|
55
|
+
version: 0.0.2
|
56
|
+
- !ruby/object:Gem::Dependency
|
62
57
|
prerelease: false
|
63
58
|
requirement: !ruby/object:Gem::Requirement
|
64
59
|
requirements:
|
@@ -67,6 +62,11 @@ dependencies:
|
|
67
62
|
version: 0.0.3
|
68
63
|
type: :runtime
|
69
64
|
name: bin_utils
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 0.0.3
|
70
70
|
description: Tarantool KV-storage client.
|
71
71
|
email:
|
72
72
|
- ceo@prepor.ru
|