kumonos 0.20.0 → 0.20.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ad040ff88bc587db10a06df3f1e3fd9602367844128a2cdbe972947a45daed29
4
- data.tar.gz: f9d50ca49042413de737cb82c5ea4b21c049bc413f0594967ab08d78eda2f2a9
3
+ metadata.gz: b08508478931c5ac93c059adbbf98db8633109883589199d8fd5e2326853e154
4
+ data.tar.gz: e969b4479d6339c417d2812b8fb190472f6dbc486397b4a874e518a012997fb6
5
5
  SHA512:
6
- metadata.gz: 010a3278a0febfab40be16d8ecfb481f059053e23a96d02ec90a9b7683cb77b45df53f63abe6d91b0801d145864eec9d794cbf01df26160028deaf6a7819c473
7
- data.tar.gz: 78b88839d966af871e0ba85072dc67e7be28ca88bafafb50022ef85278339215745cd3075e1ae31077150ff9f84a3059d7ec4d0cd245c0789c45f3c84cfa8205
6
+ metadata.gz: e0f8b2c454cc869c485efd97b75190acfb47b8ce8523fa070ce8e75c1fae2fbb33eb0617962461bc8ce3ff6048c11ec5bdb42becfcdd84b754e53212bcc26efb
7
+ data.tar.gz: '093301dbb2362ac28494b5418971682f2d0c692394c6d0d92e6625f22294264be14128b75762dfd357b86fdeede4818ae6d7c6b3f0da3ad9fda7853921339d54'
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Kumonos
2
- [![Build Status](https://travis-ci.org/taiki45/kumonos.svg?branch=master)](https://travis-ci.org/taiki45/kumonos)
2
+ [![Build Status](https://travis-ci.org/cookpad/kumonos.svg?branch=master)](https://travis-ci.org/cookpad/kumonos)
3
3
  [![Gem Version](https://badge.fury.io/rb/kumonos.svg)](https://badge.fury.io/rb/kumonos)
4
4
 
5
5
  A "control plane" for Microservices "service mesh".
@@ -13,7 +13,7 @@ gem install kumonos
13
13
  TODO
14
14
 
15
15
  ## Contributing
16
- Bug reports and pull requests are welcome on GitHub at https://github.com/taiki45/kumonos.
16
+ Bug reports and pull requests are welcome on GitHub at https://github.com/cookpad/kumonos.
17
17
 
18
18
  ## License
19
19
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -9,11 +9,11 @@ discovery_service:
9
9
  lb: nginx:80
10
10
  tls: false
11
11
  refresh_delay_ms: 10000
12
- connect_timeout_ms: 1000
12
+ connect_timeout_ms: 100
13
13
  sds:
14
14
  lb: sds:8080
15
15
  tls: false
16
16
  refresh_delay_ms: 1000
17
- connect_timeout_ms: 1000
17
+ connect_timeout_ms: 1500
18
18
  statsd:
19
19
  address: statsd-exporter:9125
data/lib/kumonos/envoy.rb CHANGED
@@ -184,6 +184,8 @@ module Kumonos
184
184
  end
185
185
  end
186
186
 
187
+ ONE_SECONDS_IN_NANOS = 1_000_000_000
188
+ ONE_MSEC_IN_NANOS = 1_000_000
187
189
  def to_h
188
190
  h = super
189
191
  h[:type] = type.upcase
@@ -191,10 +193,14 @@ module Kumonos
191
193
  h[:lb_policy] = lb_type.upcase
192
194
  h.delete(:tls)
193
195
  h[:tls_context] = {} if tls
196
+
197
+ sec, nanos = (connect_timeout_ms * ONE_MSEC_IN_NANOS).divmod(ONE_SECONDS_IN_NANOS)
194
198
  h.delete(:connect_timeout_ms)
195
199
  h[:connect_timeout] = {
196
- seconds: connect_timeout_ms / 1000.0
200
+ seconds: sec,
201
+ nanos: nanos
197
202
  }
203
+
198
204
  # Just work-around, it could be configurable.
199
205
  h[:dns_lookup_family] = 'V4_ONLY'
200
206
  h
@@ -1,3 +1,3 @@
1
1
  module Kumonos
2
- VERSION = '0.20.0'.freeze
2
+ VERSION = '0.20.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kumonos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.20.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taiki Ono
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-11 00:00:00.000000000 Z
11
+ date: 2018-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json-schema