Slackbot
02/13/2024, 5:02 PMSean Sall
02/13/2024, 5:06 PMcpu amount given to the runner was 1, and I also tried changing it to 0.5. In both cases, the runner was still able to use > 200% of CPU 🤔 .
◦ It seems when I allow for two runners of that same type, CPU percentage is able to hold above that ~230% for both runners and not throw these errors.
• Looked at memory usage - there's plenty of free RAM left both on the machine as a whole but also in the individual runner process (it uses ~10% of RAM).
• These errors don't occur when I turn off batching.
◦ I still get errors, but they are not errors with response code 0 and EOF (which seem somewhat non sensible).Chaoyu
02/13/2024, 6:35 PMSean Sall
02/14/2024, 11:09 PMSean Sall
02/19/2024, 4:08 PMsauyon
02/20/2024, 12:29 AMSean Sall
02/20/2024, 12:32 AMsauyon
02/20/2024, 12:32 AMSean Sall
02/20/2024, 12:38 AMimport http from 'k6/http';
import { sleep } from 'k6';
import { Counter } from 'k6/metrics';
export const CounterErrors = new Counter('Errors');
export const options = {
// Key configurations for avg load test in this section
thresholds: {
'Errors': [
{
threshold: 'count<5',
abortOnFail: true,
delayAbortEval: "1s"
}
]
},
stages: [
{ duration: '4800s', target: 480 }
{ duration: '60s', target: 480 }
{ duration: '60s', target: 0 }
],
};
export default () => {
const urlRes = <http://http.post|http.post>('<http://127.0.0.1:8000/analyze>', JSON.stringify({
"s3Path": [insert path to S3 URL],
"modelsToRun": [insert list of strings that specify what models to run in BentoML]
}), { headers: { 'Content-Type': 'application/json' }, timeout: '120s' });
const contentOK = (
urlRes.status === 200
)
if ( contentOK === false ) {
console.log(urlRes.status, urlRes.body)
}
CounterErrors.add(!contentOK)
sleep(0.001);
};
As for the service code, I'm looking at it and it looks like I'd have to cut ~90% of it. Are there questions about it I could answer that would help?
Also, FWIW, I did file an issue with k6 : https://github.com/grafana/k6/issues/3597. I haven't had a chance to track down what they had proposed - wanted to try to lump in any suggestions y'all had and do all the work at the same time. But want to at least pass that on here.Sean Sall
02/20/2024, 12:39 AMsauyon
02/20/2024, 12:59 AMSean Sall
02/20/2024, 1:01 AMChaoyu
02/20/2024, 2:24 AMsauyon
02/20/2024, 2:39 AMSean Sall
02/20/2024, 3:58 AMSean Sall
02/23/2024, 6:04 PM