Skip to content

Commit f8cec6f

Browse files
update links & env var
1 parent 34577b6 commit f8cec6f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ include .bingo/Variables.mk
77

88
LOKI_NAMESPACE := observatorium-logs-test
99

10-
LOKI_OPERATOR_REGISTRY ?= openshift-logging
10+
LOKI_OPERATOR_REGISTRY_BASE ?= quay.io/openshift-logging
1111
LOKI_STORAGE_BUCKET ?= loki-benchmark-storage
1212

1313
LOKI_CONFIG_FILE ?= hack/rhobs-loki-parameters.yaml
@@ -64,5 +64,5 @@ run-operator-benchmarks: $(GINKGO) $(PROMETHEUS) ## Run benchmark on an OpenShif
6464
BENCHMARK_NAMESPACE=$(LOKI_NAMESPACE) \
6565
LOKI_COMPONENT_PREFIX="lokistack-dev" \
6666
BENCHMARKING_CONFIGURATION_DIRECTORY="operator" \
67-
./run.sh operator $(LOKI_OPERATOR_REGISTRY) $(LOKI_STORAGE_BUCKET)
67+
./run.sh operator $(LOKI_OPERATOR_REGISTRY_BASE) $(LOKI_STORAGE_BUCKET)
6868
.PHONY: run-benchmarks

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ To change the testing configuration, see the files in the [config](./config) dir
2424

2525
Different scenarios can be customized under `config/benchmarks/scenarios/benchmarks`. Current the benchmarks support two testing scenarios:
2626

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.
27+
* Ingestion path scenarios: [suppored configuration](./internal/config/config.go#L77), 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](./internal/config/config.go#L103), the theory behind this test is to generate the amount of data that would be queried before it starts running the queries.
2929

3030
## Running Benchmarks
3131

3232
### Prerequisites
3333

34-
The `run-operator-benchmarks` expects the following two env vars to be set `LOKI_OPERATOR_REGISTRY` `LOKI_STORAGE_BUCKET`.
34+
The `run-operator-benchmarks` expects the following two env vars to be set `LOKI_OPERATOR_REGISTRY_BASE` `LOKI_STORAGE_BUCKET`.
3535
E.g
3636

3737
```shell
38-
export LOKI_OPERATOR_REGISTRY=jmarcal
39-
export LOKI_STORAGE_BUCKET=jmarcal-loki-benchmark-storage
38+
export LOKI_OPERATOR_REGISTRY_BASE=quay.io/myorg
39+
export LOKI_STORAGE_BUCKET=myname-loki-benchmark-storage
4040
```
4141

4242
### Steps

run.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ rhobs() {
7777
# Deploy Loki with the Red Hat Loki Operator
7878
# Intended to work on a OpenShift cluster for benchmarking
7979
operator() {
80-
operator_registry=$1
80+
operator_registry_base=$1
8181
storage_bucket=$2
8282

8383
if $IS_OPENSHIFT; then
@@ -97,11 +97,11 @@ operator() {
9797
kubectl label ns/openshift-operators-redhat openshift.io/cluster-monitoring=true --overwrite
9898
kubectl label ns/$BENCHMARK_NAMESPACE openshift.io/cluster-monitoring=true --overwrite
9999

100-
make olm-deploy "REGISTRY_BASE=quay.io/$operator_registry" "VERSION=0.0.1-$(git rev-parse --short HEAD)" VARIANT=openshift
100+
make olm-deploy "REGISTRY_BASE=$operator_registry_base" "VERSION=0.0.1-$(git rev-parse --short HEAD)" VARIANT=openshift
101101
./hack/deploy-aws-storage-secret.sh $storage_bucket
102102
kubectl -n $BENCHMARK_NAMESPACE apply -f hack/lokistack_gateway_ocp.yaml
103103
else
104-
make olm-deploy "REGISTRY_BASE=quay.io/$operator_registry" "VERSION=0.0.1-$(git rev-parse --short HEAD)"
104+
make olm-deploy "REGISTRY_BASE=$operator_registry_base" "VERSION=0.0.1-$(git rev-parse --short HEAD)"
105105
kubectl -n $BENCHMARK_NAMESPACE apply -f hack/lokistack_gateway_dev.yaml
106106
fi
107107
popd

0 commit comments

Comments
 (0)