add ingress-perf config template to be overwirte#634
add ingress-perf config template to be overwirte#634qiliRedHat wants to merge 3 commits intocloud-bulldozer:masterfrom
Conversation
|
I want to do two changes for ‘tuningPatch’ for a same test config, e.g. |
|
@rsevilla87 PTAL, in some of the tests such as more ingress replicas, I hope to be able to customize the parameters in the configuration files and avoid adding new configuration files for each non-standard tests configurations. |
|
The change looks good technically, but I wonder, that if what you need new configurations, why don't you add more config files rather than templating the existing... |
|
As an alternative, what do you think about adding new script |
@rsevilla87 Thanks for the comment, I'll consider to use new configurations. I can overwrite config as env var so no need to use custom-run.sh. Please let me know if you have some suggestion for #634 (comment) |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: qiliRedHat The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
| OS=$(uname -s) | ||
| HARDWARE=$(uname -m) | ||
|
|
||
| export TUNING_PATCH=${TUNING_PATCH:-"'{\"spec\":{\"nodePlacement\": {\"nodeSelector\": {\"matchLabels\": {\"node-role.kubernetes.io/infra\": \"\"}}}, \"replicas\": 2}}'"} |
There was a problem hiding this comment.
Rather than modifying run.sh, can you push this changes into a new file custom-run.sh? that way we won't touch any of the current logic in CPT
There was a problem hiding this comment.
I have used new configurations to run different replica numbers. I find t is more easier than custom-run.sh for me that I can just provide the new config file as an env var, no need to update the CI to use a new cmd like custom-run.sh. So I think I can close this one.
@rsevilla87 If you have any suggestion to
#634 (comment), it could be helpful. Now to tune the thread number, I do it outside of ingress-perf with oc command before the ingress-perf test.
Type of change
Description
Customize the ingress-perf config file, for example for tuningPatch, use different ingress replica numbers, thread numbers.
Related Tickets & Documents
Related Issue # https://issues.redhat.com/browse/OCPQE-17275
I have performed a self-review of my code.
If it is a core feature, I have added thorough tests.
Testing
example ENV_VARS:
CONFIG_TEMPLATE=config/standard-template.yml
TUNING_PATCH="'{"spec":{"nodePlacement": {"nodeSelector": {"matchLabels": {"node-role.kubernetes.io/infra": ""}}}, "replicas": 3}}'"
CONNECTIONS=100
SAMPLES=1
DURATION=1m
CONCURRENCY=10
SERVER_REPLICAS=40
REQUEST_TIMEOUT=20s
DELAY=20s