Open westrachel opened 1 year ago
Ideally, let's switch to a event-driven approach, but polling every 30 seconds sounds ok to me for now.
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
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