beetle 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/RELEASE_NOTES.rdoc +8 -0
- data/Rakefile +2 -1
- data/beetle.gemspec +1 -2
- data/lib/beetle/configuration.rb +6 -1
- data/lib/beetle/publisher.rb +1 -0
- data/lib/beetle/version.rb +1 -1
- data/test/beetle/publisher_test.rb +1 -0
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06b0f197efd399ed1714cdbe89657e091e129dd5ccc55fa5eb1d52b0726e3cf5
|
4
|
+
data.tar.gz: e0d259da5e1882bbb695ea0cf9f0b0e21775e41fd86318bd0ded3a4a2856c7c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a55308b8e35bf17a59c6f3b4bad1d65cd1201388b8a624173685461b705e7c8c02512cde2283033c0e89dd492b77e3b2ece876bcfaee013e28f03be71474cbca
|
7
|
+
data.tar.gz: 13294eb823a02c5b4b0ec0a93eaf115dbd01bd1f6825fd44bb779cfc10c727f59c435bc5b7203108a1d6febc563ebb30fd8830511189df68e78ed6f6fd9f7c04
|
data/RELEASE_NOTES.rdoc
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
= Release Notes
|
2
2
|
|
3
|
+
== Version 2.2.2
|
4
|
+
|
5
|
+
* Reset redis configuration server state when master becomes available during
|
6
|
+
pinging or invalidating. Unlike the former ruby implementation, the go code
|
7
|
+
continues checking redis availability during pinging or invalidating. However,
|
8
|
+
the code did not reset state properly, leading the UI to display 'switch in
|
9
|
+
progress' when in fact there wasn't.
|
10
|
+
|
3
11
|
== Version 2.2.1
|
4
12
|
* Subscriber exits with meaningful error log on possible authentication failures.
|
5
13
|
|
data/Rakefile
CHANGED
@@ -42,6 +42,7 @@ namespace :rabbit do
|
|
42
42
|
def create_config_file(config_file, web_port)
|
43
43
|
File.open("#{config_file}.config",'w') do |f|
|
44
44
|
f.puts "["
|
45
|
+
f.puts " {rabbit, [{channel_max, 1000}]},"
|
45
46
|
f.puts " {rabbitmq_management, [{listener, [{port, #{web_port}}]}]}"
|
46
47
|
f.puts "]."
|
47
48
|
end
|
@@ -112,5 +113,5 @@ RDoc::Task.new do |rdoc|
|
|
112
113
|
end
|
113
114
|
|
114
115
|
task :clean do
|
115
|
-
system('rm -f tmp/*.output tmp/*.log tmp/master/* tmp/slave/* tmp/*lock tmp/*pid')
|
116
|
+
system('rm -f tmp/*.output tmp/*.log tmp/master/* tmp/slave/* tmp/*lock tmp/*pid test.log')
|
116
117
|
end
|
data/beetle.gemspec
CHANGED
@@ -8,14 +8,13 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.required_rubygems_version = ">= 1.3.7"
|
9
9
|
s.authors = ["Stefan Kaes", "Pascal Friederich", "Ali Jelveh", "Sebastian Roebke", "Larry Baltz"]
|
10
10
|
s.date = Time.now.strftime('%Y-%m-%d')
|
11
|
-
s.default_executable = "beetle"
|
12
11
|
s.description = "A highly available, reliable messaging infrastructure"
|
13
12
|
s.summary = "High Availability AMQP Messaging with Redundant Queues"
|
14
13
|
s.email = "opensource@xing.com"
|
15
14
|
s.executables = []
|
16
15
|
s.extra_rdoc_files = Dir['**/*.rdoc'] + %w(MIT-LICENSE)
|
17
16
|
s.files = Dir['{examples,lib}/**/*.rb'] + Dir['{features,script}/**/*'] + %w(beetle.gemspec Rakefile)
|
18
|
-
s.homepage = "
|
17
|
+
s.homepage = "https://xing.github.com/beetle/"
|
19
18
|
s.rdoc_options = ["--charset=UTF-8"]
|
20
19
|
s.require_paths = ["lib"]
|
21
20
|
s.test_files = Dir['test/**/*.rb']
|
data/lib/beetle/configuration.rb
CHANGED
@@ -55,8 +55,12 @@ module Beetle
|
|
55
55
|
attr_accessor :user
|
56
56
|
# the password to use when connectiong to the AMQP servers (defaults to <tt>"guest"</tt>)
|
57
57
|
attr_accessor :password
|
58
|
-
# the maximum permissible size of a frame (in bytes).
|
58
|
+
# the maximum permissible size of a frame (in bytes). defaults to 128 KB
|
59
59
|
attr_accessor :frame_max
|
60
|
+
# the max number of channels the publisher tries to negotiate with the server. Defaults
|
61
|
+
# to 2047, which is the RabbitMQ default in 3.7. We can't set this to 0 because of a bug
|
62
|
+
# in bunny.
|
63
|
+
attr_accessor :channel_max
|
60
64
|
|
61
65
|
# In contrast to RabbitMQ 2.x, RabbitMQ 3.x preserves message order when requeing a message. This can lead to
|
62
66
|
# throughput degradation (when rejected messages block the processing of other messages
|
@@ -127,6 +131,7 @@ module Beetle
|
|
127
131
|
self.password = "guest"
|
128
132
|
self.api_port = 15672
|
129
133
|
self.frame_max = 131072
|
134
|
+
self.channel_max = 2047
|
130
135
|
self.prefetch_count = 1
|
131
136
|
|
132
137
|
self.dead_lettering_enabled = false
|
data/lib/beetle/publisher.rb
CHANGED
@@ -166,6 +166,7 @@ module Beetle
|
|
166
166
|
:pass => @client.config.password,
|
167
167
|
:vhost => @client.config.vhost,
|
168
168
|
:frame_max => @client.config.frame_max,
|
169
|
+
:channel_max => @client.config.channel_max,
|
169
170
|
:socket_timeout => @client.config.publishing_timeout,
|
170
171
|
:spec => '09')
|
171
172
|
b.start
|
data/lib/beetle/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beetle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Kaes
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date:
|
15
|
+
date: 2019-02-17 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: uuid4r
|
@@ -373,7 +373,7 @@ files:
|
|
373
373
|
- test/beetle/subscriber_test.rb
|
374
374
|
- test/beetle_test.rb
|
375
375
|
- test/test_helper.rb
|
376
|
-
homepage:
|
376
|
+
homepage: https://xing.github.com/beetle/
|
377
377
|
licenses: []
|
378
378
|
metadata: {}
|
379
379
|
post_install_message:
|
@@ -392,8 +392,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
392
392
|
- !ruby/object:Gem::Version
|
393
393
|
version: 1.3.7
|
394
394
|
requirements: []
|
395
|
-
|
396
|
-
rubygems_version: 2.7.6
|
395
|
+
rubygems_version: 3.0.2
|
397
396
|
signing_key:
|
398
397
|
specification_version: 3
|
399
398
|
summary: High Availability AMQP Messaging with Redundant Queues
|