dummer 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +6 -0
- data/README.md +3 -3
- data/bin/dummer +1 -14
- data/lib/dummer/generator/abstract_mode.rb +0 -5
- data/lib/dummer/generator/field_mode.rb +3 -0
- data/lib/dummer/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 25f03555f6f64f5d58b534ec7f5c5720197492aa510da6a87605278c53cc9943
|
4
|
+
data.tar.gz: da74b423d01d007747f2c3bc34803da43fddf22f96d92f48cd9bc308eaaaab53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9aa981206c29924050bfe39bdbeed82d9de092e3deed64b76fa2007de808ac4e9010796e97c7f176b029b7b78fcc9460498f4b7e0b44f5571d7ff4c26cdb0d0
|
7
|
+
data.tar.gz: ee89bbd84d6e52174dff8b876974aa827dddf54d364c2d49ecef915f34d0898fb8c1a4af2d43d55efab450ebf34f8493593b7ec7879f84a381ed9b22a7670261
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Dummer
|
2
2
|
|
3
|
-
Dummer is a set of tools to generate dummy log data for Fluentd benchmark.
|
3
|
+
Dummer is a set of tools to generate dummy log data. I made this for Fluentd benchmark.
|
4
4
|
|
5
5
|
This gem includes three executable commands
|
6
6
|
|
@@ -84,7 +84,7 @@ configure 'sample' do
|
|
84
84
|
host "localhost" # define `host` and `port` instead of `output`
|
85
85
|
port 24224
|
86
86
|
rate 500
|
87
|
-
tag type: string, any: %w[raw.syslog raw.message raw.nginx] # configure tag
|
87
|
+
tag type: :string, any: %w[raw.syslog raw.message raw.nginx] # configure tag
|
88
88
|
field :id, type: :integer, countup: true, format: "%04d"
|
89
89
|
field :level, type: :string, any: %w[DEBUG INFO WARN ERROR]
|
90
90
|
field :method, type: :string, any: %w[GET POST PUT]
|
@@ -251,7 +251,7 @@ You can specify following data types to your `tag` and `field` parameters:
|
|
251
251
|
|
252
252
|
## dummer\_simple
|
253
253
|
|
254
|
-
I created a simple version of `dummer` since
|
254
|
+
I created a simple version of `dummer` since `dummer` could not achieve the maximum system I/O throughputs because of its rich features.
|
255
255
|
This simple version, `dummer_simple` could achieve the system I/O limit in my environment.
|
256
256
|
|
257
257
|
Sorry, but this simple script cannot post data to fluentd process, supports only writing to a file.
|
data/bin/dummer
CHANGED
@@ -1,16 +1,3 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
#
|
3
|
-
# This file was generated by Bundler.
|
4
|
-
#
|
5
|
-
# The application 'yohoushi' is installed as part of a gem, and
|
6
|
-
# this file is here to facilitate running it.
|
7
|
-
#
|
8
2
|
|
9
|
-
|
10
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
-
Pathname.new(__FILE__).realpath)
|
12
|
-
|
13
|
-
require 'rubygems'
|
14
|
-
require 'bundler/setup'
|
15
|
-
|
16
|
-
load File.expand_path("../../lib/dummer/cli.rb", __FILE__)
|
3
|
+
require_relative "../lib/dummer/cli"
|
@@ -1,6 +1,7 @@
|
|
1
1
|
module Dummer
|
2
2
|
class Generator
|
3
3
|
class FieldMode < AbstractMode
|
4
|
+
# file
|
4
5
|
def self.message_proc(fields, labeled, delimiter, label_delimiter)
|
5
6
|
format_proc = format_proc(labeled, delimiter, label_delimiter)
|
6
7
|
record_proc = record_proc(fields)
|
@@ -11,6 +12,7 @@ module Dummer
|
|
11
12
|
}
|
12
13
|
end
|
13
14
|
|
15
|
+
# fluent-logger
|
14
16
|
def self.record_proc(fields)
|
15
17
|
field_procs = field_procs(fields)
|
16
18
|
|
@@ -27,6 +29,7 @@ module Dummer
|
|
27
29
|
}
|
28
30
|
end
|
29
31
|
|
32
|
+
# fluent-logger
|
30
33
|
def self.tag_proc(tag_opts)
|
31
34
|
proc = field_procs({"tag" => tag_opts})["tag"]
|
32
35
|
prev = -1
|
data/lib/dummer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dummer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sonots
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -186,8 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: '0'
|
188
188
|
requirements: []
|
189
|
-
|
190
|
-
rubygems_version: 2.2.2
|
189
|
+
rubygems_version: 3.0.3
|
191
190
|
signing_key:
|
192
191
|
specification_version: 4
|
193
192
|
summary: Generates dummy log data for Fluentd benchmark
|