fluent-plugin-multiprocess 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/fluent-plugin-multiprocess.gemspec +1 -1
- data/lib/fluent/plugin/in_multiprocess.rb +7 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjMyZjczODc2OThlMzRmYWEyZDAzM2ZjMDQxZDZjYTM3MWI2NTQ3ZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzQ1ZTUyOGE3NTdhMDE1NTkyODM0YjZkOWZjOGVlNDBjMTFlNzg0Nw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2YyM2Q2MmNlNWM3ZmQ3ZTJjOWRjODRkZjZmNjcwYWExZDE2YTY2MjYzMjgz
|
10
|
+
MWZlOThiMDdiZTZhOTljMjhhM2EyYjhjYjkzMjhkMjEyNjgzM2NlMTFkMjMx
|
11
|
+
OGU5MjA3ZGRmN2EyN2Q0OTliNTQ3MjA3NTg3Y2YxMzMyYmJhN2I=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDZiZTZiZDk2ZjU3NGFhMzg3MTk3NmU4ZDU4YjFhZjA2ZjgwYWRjMGJjMzY5
|
14
|
+
M2E3MjlmZmZhYjk2Mzk5ZDEyNzFjOWE5ZmNhMzY4MWY5ODVjYTM5MmRmYjJk
|
15
|
+
OGQ5MDQ5ODEyNGY3YTg3NWZkMmIyZDkwNTA4NjU4NTRjODYxYWE=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
@@ -4,7 +4,7 @@ $:.push File.expand_path('../lib', __FILE__)
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.name = "fluent-plugin-multiprocess"
|
6
6
|
gem.description = "Multiprocess agent plugin for Fluentd event collector"
|
7
|
-
gem.homepage = "https://github.com/
|
7
|
+
gem.homepage = "https://github.com/fluent/fluent-plugin-multiprocess"
|
8
8
|
gem.summary = gem.description
|
9
9
|
gem.version = File.read("VERSION").strip
|
10
10
|
gem.authors = ["Sadayuki Furuhashi"]
|
@@ -26,6 +26,7 @@ module Fluent
|
|
26
26
|
config_param :graceful_kill_interval, :time, :default => 2
|
27
27
|
config_param :graceful_kill_interval_increment, :time, :default => 3
|
28
28
|
config_param :graceful_kill_timeout, :time, :default => 60
|
29
|
+
config_param :keep_file_descriptors, :bool, :default => nil
|
29
30
|
|
30
31
|
class ProcessElement
|
31
32
|
include Configurable
|
@@ -33,11 +34,14 @@ module Fluent
|
|
33
34
|
config_param :cmdline, :string
|
34
35
|
config_param :sleep_before_start, :time, :default => 0
|
35
36
|
config_param :sleep_before_shutdown, :time, :default => 0
|
37
|
+
config_param :keep_file_descriptors, :bool, :default => nil
|
36
38
|
|
37
39
|
attr_accessor :process_monitor
|
38
40
|
end
|
39
41
|
|
40
42
|
def configure(conf)
|
43
|
+
super
|
44
|
+
|
41
45
|
@processes = conf.elements.select {|e|
|
42
46
|
e.name == 'process'
|
43
47
|
}.map {|e|
|
@@ -65,7 +69,9 @@ module Fluent
|
|
65
69
|
cmd = "#{Shellwords.shellescape(RbConfig.ruby)} #{Shellwords.shellescape(fluentd_rb)} #{pe.cmdline}"
|
66
70
|
sleep pe.sleep_before_start if pe.sleep_before_start > 0
|
67
71
|
$log.info "launching child fluentd #{pe.cmdline}"
|
68
|
-
pe.
|
72
|
+
keep_file_descriptors = pe.keep_file_descriptors.nil? ? @keep_file_descriptors : pe.keep_file_descriptors
|
73
|
+
options = {:close_others => !keep_file_descriptors}
|
74
|
+
pe.process_monitor = @pm.spawn(cmd, options)
|
69
75
|
end
|
70
76
|
end
|
71
77
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-multiprocess
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -72,7 +72,7 @@ files:
|
|
72
72
|
- example_child2.conf
|
73
73
|
- fluent-plugin-multiprocess.gemspec
|
74
74
|
- lib/fluent/plugin/in_multiprocess.rb
|
75
|
-
homepage: https://github.com/
|
75
|
+
homepage: https://github.com/fluent/fluent-plugin-multiprocess
|
76
76
|
licenses:
|
77
77
|
- Apache 2.0
|
78
78
|
metadata: {}
|