Add CronJobs for running broker-imc regularly#1969
Conversation
ko apply -f continuous/ to create CronJobs that will run the broker-imc test every 15 minutes. The continuous config runs in default namespace because we expect prod to run one benchmark per cluster.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: grantr The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Caveat: we can only use this to run the broker-imc perf test right now. |
The 3000rps pacer takes slightly longer than 9 minutes
| @@ -0,0 +1,182 @@ | |||
| # Copyright 2019 The Knative Authors | |||
There was a problem hiding this comment.
Is this setup file the same as the existing one under broker-imc?
There was a problem hiding this comment.
same here, @grantr why did you duplicated configs?
Hmm, it seems I missed something, why are the mako config files under the shared test image, instead of the benchmark folder? |
This could be solved by splitting the aggregator and sender-receiver in two different images? |
| kind: Broker | ||
| metadata: | ||
| name: imc | ||
| namespace: default |
There was a problem hiding this comment.
@chizhg @slinkydeveloper well, it DIFFs in name/namespace.
But I agree, it's good to potentially reuse "common" setup yaml files...
| ref: | ||
| apiVersion: v1 | ||
| kind: Service | ||
| name: broker-imc-receiver |
There was a problem hiding this comment.
| export TEST_ROOT_PATH="$GOPATH/src/knative.dev/eventing/test/performance" | ||
| export KO_DOCKER_REPO="gcr.io/knative-eventing-performance" | ||
| export TEST_CONFIG_VARIANT="continuous" | ||
| export TEST_NAMESPACE="default" |
|
/hold perhaps let's see to not duplicate configs? |
Currently there is no benchmark-specific main. All the benchmark execution code is in the shared test image. Due to the way mako.Setup works, the mako config files must be in the kodata for that image. This is a known issue that will require either mako.Setup to change or the eventing test image(s) to change (knative/pkg#721). @grac3gao is actively looking into this. For now, this PR puts config files under the shared test image to allow Mako to run one test instead of zero tests. |
I'm fine with making We should consider this: |
|
thanks for clarifying!
feel free to cancel the hold
/lgtm
On Fri 27. Sep 2019 at 21:20, Grant Rodgers ***@***.***> wrote:
perhaps let's see to not duplicate configs?
I'm fine with making continuous/broker-imc-setup.yaml a symlink to
./broker-imc-setup.yaml.
We should consider this: continuous/broker-imc.yaml is tightly coupled to
continuous/broker-imc-setup.yaml, *but ./broker-imc.yaml file has
different content than continuous/broker-imc.yaml.* If we have a shared
setup file, and someone makes a change to that shared file and
./broker-imc.yaml, we need to make sure they also update
continuous/broker-imc.yaml. So the developer must understand the coupling
between the configurations and update the continuous config on every change
to the shared setup config.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1969?email_source=notifications&email_token=AABGPTU3WDPZXOVOVVEGPILQLZMJDA5CNFSM4I3ABFP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7Z3SMA#issuecomment-536066352>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABGPTSYPMQGCP6GPF5MQTLQLZMJDANCNFSM4I3ABFPQ>
.
--
Sent from Gmail Mobile
|
|
Thanks @matzew! I expect all of this to be refactored several times before we're happy with it, but this PR at least makes some progress. /hold cancel |
Redo of #1863. This PR drops the
singlevariant, leaving that config in the parent ofcontinuous.Run
ko apply -f test/performance/broker-imc/continuous/to create CronJobs that will run the broker-imc test every 15 minutes.We expect CI to run one benchmark per cluster and have access to mako credentials, so the continuous config runs in
defaultnamespace and uses the real mako sidecar instead of the stub.Fixes #1700.
Proposed Changes
continuousdirectory containing the yaml config to apply to the perf cluster./area performance
/project Perf/Measurement To do