Skip to content

Commit

Permalink
k6 fixes (#4841)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakoush authored May 11, 2023
1 parent 37cedf8 commit 9de2bc6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/k6/components/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function setupBase(config ) {
for (let j = 0; j < config.maxNumModels.length; j++) {
const n = config.maxNumModels[j] - 1
const modelName = config.modelNamePrefix[j] + n.toString()
const modelNameWithVersion = modelName + getVersionSuffix(config) // first version
const modelNameWithVersion = modelName + getVersionSuffix(config.isSchedulerProxy) // first version
while (modelStatusHttp(config.inferHttpEndpoint, config.isEnvoy?modelName:modelNameWithVersion, config.isEnvoy) !== 200) {
sleep(1)
}
Expand All @@ -63,7 +63,7 @@ export function setupBase(config ) {
for (let i = 0; i < config.maxNumModels[j]; i++) {
const modelName = config.modelNamePrefix[j] + i.toString()

const modelNameWithVersion = modelName + getVersionSuffix(config) // first version
const modelNameWithVersion = modelName + getVersionSuffix(config.isSchedulerProxy) // first version

const model = generateModel(config.modelType[j], modelNameWithVersion, 1, 1, config.isSchedulerProxy, config.modelMemoryBytes[j])

Expand Down
2 changes: 1 addition & 1 deletion tests/k6/scenarios/infer_constant_rate.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function (config) {
const modelId = Math.floor(Math.random() * config.maxNumModels[idx])
const modelName = config.modelNamePrefix[idx] + modelId.toString()

const modelNameWithVersion = modelName + getVersionSuffix(config) // first version
const modelNameWithVersion = modelName + getVersionSuffix(config.isSchedulerProxy) // first version

if (config.inferType === "REST") {
doInfer(modelName, modelNameWithVersion, config, true, idx)
Expand Down
2 changes: 1 addition & 1 deletion tests/k6/scenarios/predict_agent_oc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function (config) {
for (let i = 0; i < config.maxNumModels[idx]; i++) {
var modelName = config.modelNamePrefix[idx] + i.toString()

var modelNameWithVersion = modelName + getVersionSuffix(config) // first version
var modelNameWithVersion = modelName + getVersionSuffix(config.isSchedulerProxy) // first version
doInfer(modelName, modelNameWithVersion, config, false, idx)
}
}
Expand Down

0 comments on commit 9de2bc6

Please sign in to comment.