Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perf tests #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ data:
value.deserializer=io.cloudevents.kafka.CloudEventDeserializer
fetch.min.bytes=1
heartbeat.interval.ms=3000
max.partition.fetch.bytes=1048576
# max.partition.fetch.bytes=1048576
max.partition.fetch.bytes=128
session.timeout.ms=10000
# ssl.key.password=
# ssl.keystore.location=
Expand Down Expand Up @@ -130,7 +131,7 @@ data:
# ssl.keystore.type=
# ssl.protocol=
# ssl.provider=
auto.commit.interval.ms=5000
auto.commit.interval.ms=500
check.crcs=true
# client.rack=
fetch.max.wait.ms=500
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,5 @@ private static final class Task {
this.task = task;
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;

import static org.assertj.core.api.Assertions.assertThat;

import dev.knative.eventing.kafka.broker.contract.DataPlaneContract;

import static org.assertj.core.api.Assertions.assertThat;

@ExtendWith(VertxExtension.class)
public class OrderedAsyncExecutorTest {

Expand Down
6 changes: 3 additions & 3 deletions hack/data-plane.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ function data_plane_build_push() {
function replace_images() {
local file=$1

sed -i "s|\${KNATIVE_KAFKA_DISPATCHER_IMAGE}|${KNATIVE_KAFKA_DISPATCHER_IMAGE}|g" "${file}" &&
sed -i "s|\${KNATIVE_KAFKA_RECEIVER_IMAGE}|${KNATIVE_KAFKA_RECEIVER_IMAGE}|g" "${file}"
/usr/bin/sed -i '' "s|\${KNATIVE_KAFKA_DISPATCHER_IMAGE}|${KNATIVE_KAFKA_DISPATCHER_IMAGE}|g" "${file}" &&
/usr/bin/sed -i '' "s|\${KNATIVE_KAFKA_RECEIVER_IMAGE}|${KNATIVE_KAFKA_RECEIVER_IMAGE}|g" "${file}"

return $?
}
Expand Down Expand Up @@ -142,7 +142,7 @@ function data_plane_source_setup() {

ko resolve ${KO_FLAGS} -Rf ${SOURCE_DATA_PLANE_CONFIG_DIR} | "${LABEL_YAML_CMD[@]}" >>"${EVENTING_KAFKA_SOURCE_BUNDLE_ARTIFACT}"

sed -i "s|\${KNATIVE_KAFKA_DISPATCHER_IMAGE}|${KNATIVE_KAFKA_DISPATCHER_IMAGE}|g" "${EVENTING_KAFKA_SOURCE_BUNDLE_ARTIFACT}"
/usr/bin/sed -i '' "s|\${KNATIVE_KAFKA_DISPATCHER_IMAGE}|${KNATIVE_KAFKA_DISPATCHER_IMAGE}|g" "${EVENTING_KAFKA_SOURCE_BUNDLE_ARTIFACT}"

return $?
}
2 changes: 1 addition & 1 deletion hack/generate-proto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -o nounset
set -o pipefail

REPO_ROOT=$(dirname $0)/..
REPO_ROOT=$(readlink -m $REPO_ROOT)
REPO_ROOT=$(greadlink -f $REPO_ROOT)

DATA_PLANE_OUTPUT_DIR=${REPO_ROOT}/data-plane/contract/src/main/java
CONTROL_PLANE_OUTPUT_DIR=${REPO_ROOT}
Expand Down
7 changes: 7 additions & 0 deletions prometheus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
global:
scrape_interval: 1s

scrape_configs:
- job_name: "prometheus"
static_configs:
- targets: ["localhost:8001"]