mixed_gauge 1.2.0.beta1 → 1.2.0.beta2

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: 488697e190a7afe02458ee70c2a9ef24a9b2489ff4cb5c34963590a1c34053dc
4
- data.tar.gz: 6c7216031832ceadee0f6f81bd863bf931d45a83848b3dc45c19d77c6b4d6f99
3
+ metadata.gz: beab801efa14406f04a67cfcb1fc3cc998fb65c9394d7695cee2357e50607474
4
+ data.tar.gz: 11cf9c5164b085f5d6b9d9255bc132d6229693d318ef420070defa5bcbb61cb8
5
5
  SHA512:
6
- metadata.gz: 6e99abf20bd5594fb4c568baedfd5263653740d353fe8261f84758bb45c82e373f7d11ffbd2acdadf3e12256e49a644f4f70d23e6a6eb02ee676b51418c42e42
7
- data.tar.gz: 06142ae97b316aff0e63b68c9401322734e487f00d5f0128025ae5d78ae52cb35abc6e52419a4b622827ab2226658d517eeccad2b2448b1b86c9af832ea986f2
6
+ metadata.gz: ffe6fab2ded554fc2a7e3e23d98933caaca074b9d781c7dc8fa06262827bf6516304599e8146e84475ce9490218da5668e163745771609b309e232848b41711f
7
+ data.tar.gz: 81d08dec954e130890a5e4097cbb9fde6b51012e44161fb51ce7dc2e8a67d0aa9d378aab83886ecc32c3ec8375e892310dc5ec37461d8c4593de4dfb59d19ef5
@@ -30,11 +30,11 @@ module MixedGauge
30
30
  module ClassMethods
31
31
  # The cluster config must be defined before `use_cluster`.
32
32
  # @param [Symbol] name A cluster name which is set by MixedGauge.configure
33
- def use_cluster(name)
33
+ def use_cluster(name, thread_pool_size_base: 3)
34
34
  config = MixedGauge.config.fetch_cluster_config(name)
35
35
  self.cluster_routing = MixedGauge::Routing.new(config)
36
36
  self.shard_repository = MixedGauge::ShardRepository.new(config, self)
37
- thread_size = (shard_repository.all.size * 100)
37
+ thread_size = (shard_repository.all.size * thread_pool_size_base)
38
38
  self.service = Expeditor::Service.new(
39
39
  executor: Concurrent::ThreadPoolExecutor.new(
40
40
  min_threads: thread_size,
@@ -1,3 +1,3 @@
1
1
  module MixedGauge
2
- VERSION = '1.2.0.beta1'.freeze
2
+ VERSION = '1.2.0.beta2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixed_gauge
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0.beta1
4
+ version: 1.2.0.beta2
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-01-12 00:00:00.000000000 Z
11
+ date: 2018-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord