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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MmM2OTBiNjJhNzdhNWEyZGY3ODc5NmY2OGZiNmRiOTMyMTI5ZmI0Mw==
4
+ MDI3ZWEwOTQ1YTc4ZGE5Zjc3ZTE2YzM3YzA5ZTNmMjczYjM3OWVmMA==
5
5
  data.tar.gz: !binary |-
6
- Y2I2MDI0Y2NlNTU3NDcxMzJkMWUxMzdlYzkwZTFlMDA1MzJiZDE3OQ==
6
+ N2UzZjNkNTUxZTU1N2M1NGY1MzY0ZjZlZDRlNzk4NTIxMGViZDEzMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzVhMTVjNTYwNjUxY2Q3ZWFlNGMxYTNkYzVhMDE1MDliYjBhMjVjYzNhNzY2
10
- NDE3ODQ4ODVmN2I3YmJiYjJjNGM4NzA4ZmEwYTFjZDkyYzRjNGNhZDNkMzJh
11
- ZmIyN2I1NzUyMTRhZjdkMzZkMzdmYTgzM2YyNjc2MDAyMjkxMjY=
9
+ NTUyZDg3MGUwZjhmNjE0ZDI2NWUwYzEyYjY0N2ZjMzM4YzA4MzM0MWQxYmI4
10
+ YzM3NDIyMjMyZDRmZjIzZjI3NTAxOGU3NjFiYWY2YjgyOTdlNTQ5ODg1ZTUz
11
+ MWI3OTEzNDI4NTI3ZDFkOWVmNmM5MDk0M2I5NjIwM2M5ZGRkYWU=
12
12
  data.tar.gz: !binary |-
13
- ZWNlZWMwM2FjNDhhMTY1MDI4NGY0NDVhMGU5NGMwMWU3ZWRkMmQ4NjBjM2Ji
14
- OGUzNTljOTNjYTk0Y2RlOWRkZjZkOWQwMGMxNzg4ODQxZWM2MmE4ZGQ0NWY4
15
- OGIyZDUzMGViMDc0MmViOThkNzc3NTNkZTZiNDM3MDE5MzA5NDc=
13
+ ODY2OTQ2ZTZjNWZlMDQyODVhZjNhYzc1ODg5YzU4OTBjNDM2NDQ0NTFiNmY3
14
+ MDI1ZTlmMzlmY2I4M2VhOWI2YjI4MDZiNTNlYWEwYmY0Y2EwODA3MTM2MGQ1
15
+ ODA2Y2JhZWIyZDdjZGM5YTQ4MDM0NDI0Yzc0OTEyNmQ5YWZlY2E=
@@ -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
- replicas = replicas[1..-1].shuffle << replicas[0]
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
@@ -1,4 +1,4 @@
1
1
  module Tarantool
2
- VERSION = "0.5.3"
2
+ VERSION = "0.5.4"
3
3
  RECORD_VERSION = "0.4.3"
4
4
  end
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.3
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-10-28 00:00:00.000000000 Z
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.15
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.1.1
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.0.2
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.3
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