-
Notifications
You must be signed in to change notification settings - Fork 397
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add file-to-blackhole performance test
- Loading branch information
1 parent
762a3f3
commit 09dc837
Showing
24 changed files
with
378 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
14 changes: 14 additions & 0 deletions
14
test/benchmark/test_cases/performance_file_to_blackhole_filebeat/case.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@input | ||
Feature: performance file to blackhole filebeat | ||
Performance file to blackhole filebeat | ||
|
||
@e2e-performance @docker-compose | ||
Scenario: PerformanceFileToBlackholeFilebeat | ||
Given {docker-compose} environment | ||
Given docker-compose type {benchmark} | ||
When start docker-compose {performance_file_to_blackhole_filebeat} | ||
When start monitor {e2e-filebeat-1} | ||
When generate logs to file, speed {10}MB/s, total {3}min, to file {./a.log}, template | ||
""" | ||
{"url": "POST /PutData?Category=YunOsAccountOpLog HTTP/1.1", "ip": "10.200.98.220", "user-agent": "aliyun-sdk-java", "request": {"status": "200", "latency": "18204"}, "time": "07/Jul/2022:10:30:28"} | ||
""" |
32 changes: 32 additions & 0 deletions
32
test/benchmark/test_cases/performance_file_to_blackhole_filebeat/docker-compose.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
version: '3.8' | ||
|
||
services: | ||
elasticsearch: | ||
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.2 | ||
environment: | ||
- ELASTIC_PASSWORD=elastic | ||
- discovery.type=single-node | ||
- xpack.security.http.ssl.enabled=false | ||
- xpack.license.self_generated.type=trial | ||
ports: | ||
- 9200:9200 | ||
healthcheck: | ||
test: ["CMD-SHELL", "curl -u elastic:elastic -s http://localhost:9200/_cluster/health | grep -q '\"status\":\"green\"'"] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 3 | ||
restart: always | ||
|
||
filebeat: | ||
image: docker.elastic.co/beats/filebeat:8.14.2 | ||
user: root | ||
volumes: | ||
- ./filebeat.yml:/usr/share/filebeat/filebeat.yml:ro | ||
- ./a.log:/home/filebeat/a.log:ro | ||
command: filebeat -e --strict.perms=false | ||
environment: | ||
- OUTPUT_ELASTICSEARCH_HOSTS=["elasticsearch:9200"] | ||
depends_on: | ||
elasticsearch: | ||
condition: service_healthy | ||
restart: always |
11 changes: 11 additions & 0 deletions
11
test/benchmark/test_cases/performance_file_to_blackhole_filebeat/filebeat.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
filebeat.inputs: | ||
- type: filestream | ||
id: input-file | ||
paths: | ||
- /home/filebeat/a.log | ||
- decode_json_fields: | ||
fields: ["message"] | ||
target: "json" | ||
|
||
output.discard: | ||
enabled: true |
Empty file.
14 changes: 14 additions & 0 deletions
14
test/benchmark/test_cases/performance_file_to_blackhole_fluentbit/case.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@input | ||
Feature: performance file to blackhole fluentbit | ||
Performance file to blackhole fluentbit | ||
|
||
@e2e-performance @docker-compose | ||
Scenario: PerformanceFileToBlackholeFluentbit | ||
Given {docker-compose} environment | ||
Given docker-compose type {benchmark} | ||
When start docker-compose {performance_file_to_blackhole_fluentbit} | ||
When start monitor {e2e-fluent-bit-1} | ||
When generate logs to file, speed {10}MB/s, total {3}min, to file {./a.log}, template | ||
""" | ||
{"url": "POST /PutData?Category=YunOsAccountOpLog HTTP/1.1", "ip": "10.200.98.220", "user-agent": "aliyun-sdk-java", "request": {"status": "200", "latency": "18204"}, "time": "07/Jul/2022:10:30:28"} | ||
""" |
14 changes: 14 additions & 0 deletions
14
test/benchmark/test_cases/performance_file_to_blackhole_fluentbit/docker-compose.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: '3.8' | ||
|
||
services: | ||
|
||
fluent-bit: | ||
image: cr.fluentbit.io/fluent/fluent-bit | ||
command: ["-c", "/tmp/main.conf"] | ||
volumes: | ||
- ./main.conf:/tmp/main.conf | ||
- ./parsers.conf:/tmp/parsers.conf | ||
- ./a.log:/home/fluentbit/a.log | ||
restart: always | ||
|
||
|
10 changes: 10 additions & 0 deletions
10
test/benchmark/test_cases/performance_file_to_blackhole_fluentbit/main.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[SERVICE] | ||
Parsers+File /tmp/parsers.conf | ||
|
||
[INPUT] | ||
Name tail | ||
Path /home/fluentbit/a.log | ||
|
||
[OUTPUT] | ||
Name stdout | ||
Match non |
3 changes: 3 additions & 0 deletions
3
test/benchmark/test_cases/performance_file_to_blackhole_fluentbit/parsers.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[PARSER] | ||
Name docker | ||
Format json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,4 @@ services: | |
privileged: true | ||
devices: | ||
- /dev/kmsg | ||
restart: unless-stopped | ||
restart: always |
Empty file.
14 changes: 14 additions & 0 deletions
14
test/benchmark/test_cases/performance_file_to_blackhole_vector/case.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@input | ||
Feature: performance file to blackhole vector | ||
Performance file to blackhole vector | ||
|
||
@e2e-performance @docker-compose | ||
Scenario: PerformanceFileToBlackholeVector | ||
Given {docker-compose} environment | ||
Given docker-compose type {benchmark} | ||
When start docker-compose {performance_file_to_blackhole_vector} | ||
When start monitor {e2e-vector-1} | ||
When generate logs to file, speed {10}MB/s, total {3}min, to file {./a.log}, template | ||
""" | ||
{"url": "POST /PutData?Category=YunOsAccountOpLog HTTP/1.1", "ip": "10.200.98.220", "user-agent": "aliyun-sdk-java", "request": {"status": "200", "latency": "18204"}, "time": "07/Jul/2022:10:30:28"} | ||
""" |
9 changes: 9 additions & 0 deletions
9
test/benchmark/test_cases/performance_file_to_blackhole_vector/docker-compose.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: '3.8' | ||
|
||
services: | ||
vector: | ||
image: timberio/vector:0.39.0-debian | ||
volumes: | ||
- ./vector.yaml:/etc/vector/vector.yaml | ||
- ./a.log:/home/vector-log/a.log | ||
restart: always |
11 changes: 11 additions & 0 deletions
11
test/benchmark/test_cases/performance_file_to_blackhole_vector/vector.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
sources: | ||
input_file: | ||
type: file | ||
include: | ||
- /home/vector-log/*.log | ||
|
||
sinks: | ||
my_sink_id: | ||
type: blackhole | ||
inputs: | ||
- input_file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.