We already have a tools to do stress tests on Fleet APIs, but these kind of test are slow and are not ideal to get quick feedback if a code change improve perfomance or not.
This project allow to run some quick load test based on cibled scenarios.
You need k6
to run these load tests
Than after just run the scenario you want and provided the required config variables
ENROLLMENT_TOKEN=cGJWdEozUUJmN3Bsbmh6VDRHZ3M6YkJUNzFNTElTc3FieTEzR3hLLUZPQQ== k6 run scenarios/agent-ack.js
scenarios/agent-checkin.js
This scenario will test an agent that perform two checkin (first one is going to be longer as we create the configuration for the agent). This scenario provided two metricscheckin_first_time_duration
andcheckin_second_time_duration
.