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

Feat: add load testing script (batch apply applications) #5506

Merged
merged 1 commit into from
Feb 16, 2023

Conversation

Somefive
Copy link
Collaborator

Description of your changes

Fixes #

I have:

  • Read and followed KubeVela's contribution process.
  • Related Docs updated properly. In a new feature or configuration option, an update to the documentation is necessary.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Special notes for your reviewer

@codecov
Copy link

codecov bot commented Feb 15, 2023

Codecov Report

Base: 61.38% // Head: 61.40% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (03468ef) compared to base (5c9e109).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5506      +/-   ##
==========================================
+ Coverage   61.38%   61.40%   +0.01%     
==========================================
  Files         310      310              
  Lines       47158    47311     +153     
==========================================
+ Hits        28950    29049      +99     
- Misses      15225    15263      +38     
- Partials     2983     2999      +16     
Flag Coverage Δ
apiserver-e2etests 35.82% <0.00%> (+0.06%) ⬆️
apiserver-unittests 36.04% <ø> (-0.24%) ⬇️
core-unittests 55.33% <0.00%> (-0.02%) ⬇️
e2e-multicluster-test 19.09% <0.00%> (+0.01%) ⬆️
e2e-rollout-tests 21.02% <0.00%> (+0.05%) ⬆️
e2etests 26.58% <0.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/utils/pprof.go 0.00% <0.00%> (ø)
pkg/apiserver/domain/service/helm.go 49.07% <0.00%> (-14.67%) ⬇️
pkg/apiserver/event/sync/cr2ux.go 48.31% <0.00%> (-12.36%) ⬇️
...aits/traitdefinition/traitdefinition_controller.go 69.41% <0.00%> (-7.06%) ⬇️
pkg/apiserver/event/sync/worker.go 72.30% <0.00%> (-4.62%) ⬇️
pkg/apiserver/event/sync/store.go 71.49% <0.00%> (-1.36%) ⬇️
pkg/config/factory.go 70.12% <0.00%> (-0.96%) ⬇️
...server/infrastructure/datastore/kubeapi/kubeapi.go 64.05% <0.00%> (-0.82%) ⬇️
pkg/resourcekeeper/cache.go 100.00% <0.00%> (ø)
pkg/controller/utils/capability.go 81.21% <0.00%> (ø)
... and 15 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Signed-off-by: Somefive <yd219913@alibaba-inc.com>

Run `BEGIN=0 SIZE=1000 SHARD=3 WORKER=6 VERSION=0 bash deploy.sh` to deploy 1000 application (id from 0 to 1000) to 3 shard in 6 parallel threads.

Without sharding mode, `SHARD` variable will not be used. You can update application version by setting the `VERSION` variable.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will there be some sample result data?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the load testing performance result will be recorded as blogs in kubevela.io. If you prefer to add some simple results in the README here, we can add it later as well.

@wonderflow wonderflow merged commit f008411 into kubevela:master Feb 16, 2023
zhaohuiweixiao pushed a commit to zhaohuiweixiao/kubevela that referenced this pull request Mar 7, 2023
Signed-off-by: Somefive <yd219913@alibaba-inc.com>
@Somefive Somefive deleted the feat/load-testing-script branch June 20, 2023 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants