edamame-load-test / edamame

A distributed load testing framework for real-time collaboration apps (HTTP and WebSockets)
5 stars 1 forks source link

Switch to event-driven approach from polling to check whether tests are done #16

Open westrachel opened 1 year ago

westrachel commented 1 year ago

Right now, the status of all the k6 load generators is polled every 30 seconds. Once all load generators are complete, the phase out process starts where statsite is removed, the load generator node group is scaled down to 0, and configmaps are removed. Do we want to poll more/less frequently? Even better, can we switch to an event-driven approach so that we don't have to continuously poll

lukeoguro commented 1 year ago

Ideally, let's switch to a event-driven approach, but polling every 30 seconds sounds ok to me for now.

lukeoguro commented 1 year ago

I might spend today looking into the k8s API — looks like it'll make many things easier for us. For example, there's a "watch" API that lets us switch to a more event-driven approach. See: https://github.com/kubernetes-client/javascript/blob/07e40a1c51ce0c527aca9dc5344849f2bdaeb332/examples/typescript/watch/watch-example.ts#L3