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

Add caching #315

Merged
merged 7 commits into from
Aug 15, 2024
Merged

Add caching #315

merged 7 commits into from
Aug 15, 2024

Conversation

tobiscr
Copy link
Contributor

@tobiscr tobiscr commented Aug 6, 2024

Description

Add caching for secrets and applications.

Related issue(s)
#150

@tobiscr tobiscr requested a review from a team as a code owner August 6, 2024 10:21
@kyma-bot kyma-bot added cla: yes Indicates the PR's author has signed the CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 6, 2024
@kyma-bot kyma-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 6, 2024
@koala7659
Copy link
Contributor

koala7659 commented Aug 14, 2024

Measurement results:

Hyperscaler: Azure
Region: westeurope
Landscape: kyma-dev

Gateway scaled to 1 replica:

  • At 20 req / sec - 100% requests processed with no error with average latency 0.00393s.
  • At 40 req / sec - 100% requests processed with no error with average latency 0.0065s.
  • At 100 req / sec - 100% requests processed with no error with average latency 0.0133s.
  • At 150 req / sec - 99% requests processed with no error with average latency 0.0160s.
    Success Count 149980 (99%) Failed Count: 20 (1%). At increased pod resources
  • At 200 req / sec - 99% requests processed with no error with average latency 0.0207s
    Success Count 199940 (99%) Failed Count: 60 (1%). At Increased pod resources
  • At 500 req / sec - 77% requests processed with no error with average latency 0.3906s
    Success Count 386429 (77%) 113571 (23%). CPU Saturation max 140% At increased pod resources

Gateway scaled to 5 replicas:

  • At 500 req / sec all requests was processed with no error with average latency 0.0354s At increased pod resources

Increased pod resources

          limits:
            cpu: "1"
            memory: 512Mi
          requests:
            cpu: 20m
            memory: 256Mi 

The safe value for a load seems to be between 100 req /sec - 150 req /sec

Copy link
Contributor

@koala7659 koala7659 left a comment

Choose a reason for hiding this comment

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

Please check my comments and provide cache retention values from application parameters

@kyma-bot kyma-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 15, 2024
@kyma-bot kyma-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 15, 2024
Copy link
Contributor

@koala7659 koala7659 left a comment

Choose a reason for hiding this comment

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

LGTM

@kyma-bot kyma-bot added the lgtm Looks good to me! label Aug 15, 2024
@kyma-bot kyma-bot merged commit dd78f57 into kyma-project:main Aug 15, 2024
19 checks passed
@koala7659 koala7659 added this to the Release 1.1.7 milestone Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates the PR's author has signed the CLA. lgtm Looks good to me! size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants