Coder Social home page Coder Social logo

eventing-tools's People

Contributors

ajinkyapatil8190 avatar dependabot[bot] avatar friedrichwilken avatar k15r avatar kyma-bot avatar kyma-eventing-bot avatar marcobebway avatar the1bit avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

eventing-tools's Issues

Loadtest publisher does not sent pending events while in shutdown mode

Description

The loadtest publisher does not send pending events while in shutdown mode, this confuses the loadtest subscriber which reports missing events.

Expected result

The loadtest publisher sends pending events while shutting down.

Steps to reproduce

  1. Provision a Kyma cluster.
  2. Deploy the loadtest, and wait for the loadtest publisher and subscriber apps to be running.
  3. Scale the loadtest publisher app to zero.
  4. Check the loadtest subscriber logs.

Troubleshooting

The loadtest publisher logs:

$ stern -n tunas loadtest-publisher -c loadtest-publisher

loadtest-publisher-7dd96fbf97-9cbf4 loadtest-publisher 2023/02/22 12:30:14 | eps:1000 | undelivered:0000 | ack:1000 | nack:0000 | sum:1000 |
loadtest-publisher-7dd96fbf97-9cbf4 loadtest-publisher 2023-02-10T11:13:25.sap.kyma.custom.commerce.order.created.v0500: TotalMissing: 0 Min: 0 Max: 520,699,999 Min Missing: 0 Missing: []
loadtest-publisher-7dd96fbf97-9cbf4 loadtest-publisher 2023-02-10T11:13:25.sap.kyma.custom.commerce.order.updated.v0500: TotalMissing: 0 Min: 0 Max: 520,699,999 Min Missing: 0 Missing: []

The loadtest subscriber logs:

$ stern -n tunas loadtest-subscriber -c loadtest-subscriber

2023-02-10T11:13:25.sap.kyma.custom.commerce.order.created.v0500: TotalMissing: 0 Min: 0 Max: 520,703,006 Min Missing: 0 Missing: []
2023-02-10T11:13:25.sap.kyma.custom.commerce.order.updated.v0500: TotalMissing: 3 Min: 0 Max: 520,703,178 Min Missing: 520,703,019 Missing: [[520,703,019] [520,703,022] [520,703,030]]

Loadtest configuration using custom resource

Description

With the latest refactorings the loadtest-publisher lost its ability to setup loadtests.
To ease running loadtests we need to implement the following functionality:

  • Define a load test scenario using a custom resource

    • subscription configuration
      • event types
      • event formats
      • load
      • sinks
    • load test duration
  • run the loadtest scenario

    • setup the subscriptions
    • setup the sinks
    • start the load test
    • stop the test after the configured duration
    • the current state of the load test must be reflected in the custom resource
  • validate the scenario

    • delivered / missing events per event type
    • update the status of the custom resource to reflect the validation

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.