istox 0.1.141.pre.5 → 0.1.141
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +14 -14
- data/istox.gemspec +1 -1
- data/lib/istox/helpers/grpc_client.rb +1 -19
- data/lib/istox/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5960b0edcef4b7286660d13b8c1d38b78f34985234cf715bd318bea25a1d2a5
|
4
|
+
data.tar.gz: d60fe2c3ecc0c9dad7cdcd5299b22a0ee5389456ee39c3b68e7061d511f1f752
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 934e26dc5c767d122f403e1d940a49cc26c6c6dbd414b408efc8e2a77ac1ab92136f7e029117e462b40f57b62f002db67522ff8562ea5b81c528ac25c08139b5
|
7
|
+
data.tar.gz: b97f58c74986bd450e3b030c86c20fd4e9455502294913768b22d783c65b2befb1acdba1a971954ebb1e583f750f270ff27d3a2e4c74a31736396b060038ca9b
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
istox (0.1.
|
4
|
+
istox (0.1.140)
|
5
5
|
awesome_print
|
6
6
|
binding_of_caller
|
7
7
|
bunny (>= 2.12.0)
|
8
8
|
graphlient
|
9
9
|
gruf
|
10
10
|
hashie (~> 3.5.7)
|
11
|
-
istox_gruf
|
11
|
+
istox_gruf
|
12
12
|
listen (~> 3.0.5)
|
13
13
|
ougai
|
14
14
|
paranoia (~> 2.2)
|
@@ -61,10 +61,10 @@ GEM
|
|
61
61
|
i18n (>= 0.7, < 2)
|
62
62
|
minitest (~> 5.1)
|
63
63
|
tzinfo (~> 1.1)
|
64
|
-
amq-protocol (2.3.
|
64
|
+
amq-protocol (2.3.0)
|
65
65
|
arel (9.0.0)
|
66
66
|
awesome_print (1.8.0)
|
67
|
-
aws-eventstream (1.
|
67
|
+
aws-eventstream (1.0.3)
|
68
68
|
aws-sigv4 (1.1.1)
|
69
69
|
aws-eventstream (~> 1.0, >= 1.0.2)
|
70
70
|
binding_of_caller (0.8.0)
|
@@ -73,8 +73,8 @@ GEM
|
|
73
73
|
bullet (5.7.6)
|
74
74
|
activesupport (>= 3.0.0)
|
75
75
|
uniform_notifier (~> 1.11.0)
|
76
|
-
bunny (2.
|
77
|
-
amq-protocol (~> 2.3, >= 2.3.
|
76
|
+
bunny (2.14.4)
|
77
|
+
amq-protocol (~> 2.3, >= 2.3.0)
|
78
78
|
coderay (1.1.2)
|
79
79
|
concurrent-ruby (1.1.6)
|
80
80
|
crass (1.0.6)
|
@@ -98,21 +98,21 @@ GEM
|
|
98
98
|
ffi (1.12.2)
|
99
99
|
globalid (0.4.2)
|
100
100
|
activesupport (>= 4.2.0)
|
101
|
-
google-protobuf (3.11.4)
|
102
|
-
googleapis-common-protos-types (1.0.
|
103
|
-
google-protobuf (~> 3.
|
101
|
+
google-protobuf (3.11.4-universal-darwin)
|
102
|
+
googleapis-common-protos-types (1.0.4)
|
103
|
+
google-protobuf (~> 3.0)
|
104
104
|
graphlient (0.3.7)
|
105
105
|
faraday
|
106
106
|
faraday_middleware
|
107
107
|
graphql-client
|
108
|
-
graphql (1.10.
|
108
|
+
graphql (1.10.5)
|
109
109
|
graphql-client (0.16.0)
|
110
110
|
activesupport (>= 3.0)
|
111
111
|
graphql (~> 1.8)
|
112
|
-
grpc (1.
|
112
|
+
grpc (1.27.0-universal-darwin)
|
113
113
|
google-protobuf (~> 3.11)
|
114
114
|
googleapis-common-protos-types (~> 1.0)
|
115
|
-
grpc-tools (1.
|
115
|
+
grpc-tools (1.27.0)
|
116
116
|
gruf (2.8.1)
|
117
117
|
activesupport (> 4)
|
118
118
|
concurrent-ruby (> 1)
|
@@ -122,7 +122,7 @@ GEM
|
|
122
122
|
hashie (3.5.7)
|
123
123
|
i18n (0.9.5)
|
124
124
|
concurrent-ruby (~> 1.0)
|
125
|
-
istox_gruf (2.7.
|
125
|
+
istox_gruf (2.7.1)
|
126
126
|
activesupport (> 4)
|
127
127
|
concurrent-ruby (> 1)
|
128
128
|
grpc (~> 1.10)
|
@@ -147,7 +147,7 @@ GEM
|
|
147
147
|
nio4r (2.3.1)
|
148
148
|
nokogiri (1.10.9)
|
149
149
|
mini_portile2 (~> 2.4.0)
|
150
|
-
oj (3.10.
|
150
|
+
oj (3.10.5)
|
151
151
|
ougai (1.8.3)
|
152
152
|
oj (~> 3.10)
|
153
153
|
paranoia (2.4.2)
|
data/istox.gemspec
CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.add_dependency 'graphlient'
|
37
37
|
spec.add_dependency 'gruf'
|
38
38
|
spec.add_dependency 'hashie', '~> 3.5.7'
|
39
|
-
spec.add_dependency 'istox_gruf'
|
39
|
+
spec.add_dependency 'istox_gruf'
|
40
40
|
spec.add_dependency 'listen', '~> 3.0.5'
|
41
41
|
spec.add_dependency 'ougai'
|
42
42
|
spec.add_dependency 'paranoia', '~> 2.2'
|
@@ -17,18 +17,6 @@ module Istox
|
|
17
17
|
# execute(host_type, service, method, **keyword_args)
|
18
18
|
end
|
19
19
|
|
20
|
-
def default_channel_options
|
21
|
-
{
|
22
|
-
'grpc.keepalive_time_ms' => 10_000, # send keepalive ping every 10 second, default is 2 hours
|
23
|
-
'grpc.keepalive_timeout_ms' => 5000, # keepalive ping time out after 5 seconds, default is 20 seoncds
|
24
|
-
'grpc.keepalive_permit_without_calls' => 1, # allow keepalive pings when there's no gRPC calls
|
25
|
-
'grpc.http2.max_pings_without_data' => 0, # allow unlimited amount of keepalive pings without data
|
26
|
-
'grpc.http2.min_time_between_pings_ms' => 10_000, # allow grpc pings from client every 10 seconds
|
27
|
-
'grpc.http2.min_ping_interval_without_data_ms' => 5000, # allow grpc pings from client without data every 5 seconds
|
28
|
-
'grpc.http2.max_ping_strikes' => 2 # How many misbehaving pings the server can bear before sending goaway and closing the transport
|
29
|
-
}
|
30
|
-
end
|
31
|
-
|
32
20
|
private
|
33
21
|
|
34
22
|
def execute(host_type, service, method, **keyword_args)
|
@@ -65,19 +53,13 @@ module Istox
|
|
65
53
|
|
66
54
|
log.info 'Reinitiating to grpc host at ' + host_url
|
67
55
|
t1 = Time.now
|
68
|
-
@@services[get_key(host_type, service)] = ::Gruf::Client.new(service: service, options: { hostname: host_url }
|
56
|
+
@@services[get_key(host_type, service)] = ::Gruf::Client.new(service: service, options: { hostname: host_url })
|
69
57
|
log.info "Time taken for reinitiating grpc host: #{Time.now - t1} seconds"
|
70
58
|
end
|
71
59
|
|
72
60
|
def get_key(host_type, service)
|
73
61
|
host_type.to_s + service.to_s
|
74
62
|
end
|
75
|
-
|
76
|
-
def channel_options
|
77
|
-
{
|
78
|
-
channel_args: default_channel_options
|
79
|
-
}
|
80
|
-
end
|
81
63
|
end
|
82
64
|
end
|
83
65
|
end
|
data/lib/istox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: istox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.141
|
4
|
+
version: 0.1.141
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Siong Leng
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -98,16 +98,16 @@ dependencies:
|
|
98
98
|
name: istox_gruf
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: '0'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: listen
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -471,9 +471,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
471
471
|
version: '0'
|
472
472
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
473
473
|
requirements:
|
474
|
-
- - "
|
474
|
+
- - ">="
|
475
475
|
- !ruby/object:Gem::Version
|
476
|
-
version:
|
476
|
+
version: '0'
|
477
477
|
requirements: []
|
478
478
|
rubygems_version: 3.0.6
|
479
479
|
signing_key:
|