franz 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/Readme.md +1 -0
- data/VERSION +1 -1
- data/lib/franz/output/http.rb +5 -4
- data/test/Dockerfile +16 -0
- data/test/test_performance.rb +5 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98e3643c3a665282fa261b24ffc11703d31b7d4f
|
4
|
+
data.tar.gz: 3ffac79b8b665635a53daf79a5a45fea8c95085a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6528dc6195f95e35a67e7266af4ace7a5bbbaa0b5181f7141839008bd769c4f59fe090d4d1badd2adc35058aa4605f52c1fc099c57b03dcbef0ab2f3279fcb0c
|
7
|
+
data.tar.gz: 42d947ca88f7afa6ed88e284a951aa79df4d8155389856fda1c76a2a98acb4adbe089d0e74dc14a2e1d8a33a9dc7a8222e6cb999704651543f37be3a63875fd1
|
data/Readme.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2.
|
1
|
+
2.2.2
|
data/lib/franz/output/http.rb
CHANGED
@@ -24,7 +24,7 @@ module Franz
|
|
24
24
|
tags: [],
|
25
25
|
input: [],
|
26
26
|
output: {
|
27
|
-
|
27
|
+
uri: 'http://user:pass@localhost:3000/v2/.theon',
|
28
28
|
flush_size: 500,
|
29
29
|
flush_interval: 10,
|
30
30
|
ssl: {
|
@@ -44,9 +44,9 @@ module Franz
|
|
44
44
|
@stop = false
|
45
45
|
@foreground = opts[:foreground]
|
46
46
|
|
47
|
-
|
48
|
-
@uri
|
49
|
-
@ssl
|
47
|
+
uri = opts[:output].delete(:uri) || opts[:output].delete(:server)
|
48
|
+
@uri = URI(uri)
|
49
|
+
@ssl = if @uri.scheme =~ /https/
|
50
50
|
opts[:output].delete :ssl
|
51
51
|
end
|
52
52
|
open_uri
|
@@ -164,6 +164,7 @@ module Franz
|
|
164
164
|
|
165
165
|
def emit body
|
166
166
|
request = Net::HTTP::Post.new(@uri)
|
167
|
+
request.basic_auth @uri.user, @uri.password if @uri.user
|
167
168
|
request.body = body
|
168
169
|
@http.request(request)
|
169
170
|
rescue EOFError, Errno::ECONNREFUSED, Errno::EPIPE
|
data/test/Dockerfile
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
FROM phusion/baseimage:0.9.18
|
2
|
+
|
3
|
+
MAINTAINER Sean Clemmer <sczizzo@gmail.com>
|
4
|
+
|
5
|
+
ENV DEBIAN_FRONTEND=noninteractive
|
6
|
+
|
7
|
+
COPY ./ /tmp/franz/
|
8
|
+
|
9
|
+
RUN apt-get update \
|
10
|
+
&& apt-get install -y libtool libsnappy1 libsnappy-dev \
|
11
|
+
&& rm -rf /tmp/* \
|
12
|
+
&& rm -rf /var/lib/apt/lists/*
|
13
|
+
|
14
|
+
RUN ls -la /tmp/franz
|
15
|
+
|
16
|
+
CMD [ "whoami" ]
|
data/test/test_performance.rb
CHANGED
@@ -12,9 +12,13 @@ require_relative '../lib/franz'
|
|
12
12
|
|
13
13
|
Thread.abort_on_exception = true
|
14
14
|
|
15
|
+
# Work around Docker limits
|
16
|
+
def docker? ; File.exist? '.docker' end
|
17
|
+
|
18
|
+
|
15
19
|
class TestPerformance < MiniTest::Test
|
16
20
|
def setup
|
17
|
-
@ulimit = Process.getrlimit(:NOFILE).first
|
21
|
+
@ulimit = docker? ? 512 : Process.getrlimit(:NOFILE).first
|
18
22
|
|
19
23
|
@discover_interval = 2
|
20
24
|
@watch_interval = 2
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: franz
|
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
|
- Sean Clemmer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slog
|
@@ -149,6 +149,7 @@ files:
|
|
149
149
|
- lib/franz/stats.rb
|
150
150
|
- lib/franz/tail.rb
|
151
151
|
- lib/franz/watch.rb
|
152
|
+
- test/Dockerfile
|
152
153
|
- test/test_franz_agg.rb
|
153
154
|
- test/test_franz_discover.rb
|
154
155
|
- test/test_franz_tail.rb
|
@@ -179,6 +180,7 @@ signing_key:
|
|
179
180
|
specification_version: 4
|
180
181
|
summary: Aggregate log file events and send them elsewhere
|
181
182
|
test_files:
|
183
|
+
- test/Dockerfile
|
182
184
|
- test/test_franz_agg.rb
|
183
185
|
- test/test_franz_discover.rb
|
184
186
|
- test/test_franz_tail.rb
|