rservicebus 0.0.53 → 0.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/rservicebus/MQ/Beanstalk.rb +6 -0
- metadata +1 -1
|
@@ -15,6 +15,12 @@ module RServiceBus
|
|
|
15
15
|
|
|
16
16
|
begin
|
|
17
17
|
@beanstalk = Beanstalk::Pool.new([string])
|
|
18
|
+
|
|
19
|
+
current = @beanstalk.stats["max-job-size"]
|
|
20
|
+
if current < 4194304 then
|
|
21
|
+
puts "***WARNING: Lowest recommended.max-job-size is 4m, current max-job-size, #{current.to_f / (1024*1024)}m"
|
|
22
|
+
puts "***WARNING: Set the job size with the -z switch, eg /usr/local/bin/beanstalkd -z 4194304"
|
|
23
|
+
end
|
|
18
24
|
rescue Exception => e
|
|
19
25
|
puts "Error connecting to Beanstalk"
|
|
20
26
|
puts "Host string, #{string}"
|