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 +4 -4
- data/lib/mixed_gauge/model.rb +2 -2
- data/lib/mixed_gauge/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: beab801efa14406f04a67cfcb1fc3cc998fb65c9394d7695cee2357e50607474
|
4
|
+
data.tar.gz: 11cf9c5164b085f5d6b9d9255bc132d6229693d318ef420070defa5bcbb61cb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffe6fab2ded554fc2a7e3e23d98933caaca074b9d781c7dc8fa06262827bf6516304599e8146e84475ce9490218da5668e163745771609b309e232848b41711f
|
7
|
+
data.tar.gz: 81d08dec954e130890a5e4097cbb9fde6b51012e44161fb51ce7dc2e8a67d0aa9d378aab83886ecc32c3ec8375e892310dc5ec37461d8c4593de4dfb59d19ef5
|
data/lib/mixed_gauge/model.rb
CHANGED
@@ -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 *
|
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,
|
data/lib/mixed_gauge/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|