You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Clone git repositories into sibling directories to the `loki-benchmarks` one.
19
-
* Recommended cluster size: `m4.16xlarge`
18
+
* Clone git repositories into sibling directories to the `loki-benchmarks` one.
19
+
* Recommended cluster size: `m4.16xlarge`
20
20
21
21
## Configuring Tests
22
22
23
23
To change the testing configuration, see the files in the [config](./config) directory.
24
24
25
-
Use the `scenarios/benchmarks.yaml` file to add, modify, or remove configurations. Modify the `generator.yaml`, `metrics.yaml`, or `querier.yaml` in the prefered deployment method directory to change these soruces.
25
+
Different scenarios can be customized under `config/benchmarks/scenarios/benchmarks`. Current the benchmarks support two testing scenarios:
26
+
27
+
* Ingestion path scenarios: [suppored configuration](https://github.com/observatorium/loki-benchmarks/blob/1a0a9e8f6190475b6c1bfacb5a31a88bd76cbb36/internal/config/config.go#L76-L81), this test will generate X amount of logs throughout a 30 minute window that's supposed to represent a full day of log ingestion.
28
+
* Query path scenarios: [supported configuration](https://github.com/observatorium/loki-benchmarks/blob/1a0a9e8f6190475b6c1bfacb5a31a88bd76cbb36/internal/config/config.go#L102-L108), the theory behind this test is to generate the amount of data that would be queried before it starts running the queries.
26
29
27
30
## Running Benchmarks
28
31
29
-
Use the `make run-rhobs-benchmarks` or `make run-operator-benchmarks` to execute the benchmark program with the RHOBS or operator deployment styles on OpenShift respectively. Upon successful completion, a JSON and XML file will be created in the `reports/date+time` directory with the results of the tests.
32
+
### Prerequisites
30
33
31
-
## Troubleshooting
34
+
The `run-operator-benchmarks` expects the following two env vars to be set `LOKI_OPERATOR_REGISTRY``LOKI_STORAGE_BUCKET`.
During benchmark execution, use [hack/scripts/ocp-deploy-grafana.sh](hack/scripts/ocp-deploy-grafana.sh) to deploy grafna and connect to Loki as a datasource:
34
-
- Use a web browser to access grafana UI. The URL, username and password are printed by the script
35
-
- In the UI, under settings -> data-sources hit `Save & test` to verify that Loki data-source is connected and that there are no errors
36
-
- In explore tab change the data-source to `Loki` and use `{client="promtail"}` query to visualize log lines
37
-
- Use additional queries such as `rate({client="promtail"}[1m])` to verify the behaviour of Loki and the benchmark
42
+
### Steps
43
+
44
+
1. Use the `make run-rhobs-benchmarks` or `make run-operator-benchmarks` to execute the benchmark program with the RHOBS or operator deployment styles on OpenShift respectively.
45
+
Both commands will run all the scenarios under `config/benchmarks/scenarios/benchmarks`.
46
+
2. Upon successful completion of each scenario, a JSON and XML file will be created in the `reports/date+time/schenario_name` directory with the results of the tests.
47
+
3. Once all scenarios have been run we can run `python3 hack/scripts/generate_report.py $PATH_TO_SCENARIO_1 $PATH_TO_SCENARIO_2 $PATH_TO_SCENARIO_...` to compile a report that helps compare the different scenarios.
48
+
4. To share the report on gDoc you can run `pthon3 hack/scripts/create-gdoc.py $PATH_TO_THE_REPORT` this will generate a docx file that can then be shared.
49
+
50
+
## Troubleshooting
38
51
52
+
During benchmark execution, use [hack/scripts/ocp-deploy-grafana.sh](hack/scripts/ocp-deploy-grafana.sh) to deploy grafna and connect to Loki as a datasource:
39
53
54
+
* Use a web browser to access grafana UI. The URL, username and password are printed by the script
55
+
* In the UI, under settings -> data-sources hit `Save & test` to verify that Loki data-source is connected and that there are no errors
56
+
* In explore tab change the data-source to `Loki` and use `{client="promtail"}` query to visualize log lines
57
+
* Use additional queries such as `rate({client="promtail"}[1m])` to verify the behaviour of Loki and the benchmark
0 commit comments