diff --git a/benchmarks/benchmark/tools/profile-generator/main.tf b/benchmarks/benchmark/tools/profile-generator/main.tf index 292b6122e..0fb5c3b2b 100644 --- a/benchmarks/benchmark/tools/profile-generator/main.tf +++ b/benchmarks/benchmark/tools/profile-generator/main.tf @@ -51,8 +51,9 @@ resource "google_project_service" "cloudbuild" { # ----- Manual Benchmarking ----- module "latency-profile" { - count = var.targets.manual != null ? 1 : 0 - source = "./modules/latency-profile" + depends_on = [resource.null_resource.build_and_push_image] + count = var.targets.manual != null ? 1 : 0 + source = "./modules/latency-profile" credentials_config = var.credentials_config namespace = var.namespace diff --git a/benchmarks/benchmark/tools/profile-generator/sample.tfvars b/benchmarks/benchmark/tools/profile-generator/sample.tfvars index de2be79ec..b2e888ff6 100644 --- a/benchmarks/benchmark/tools/profile-generator/sample.tfvars +++ b/benchmarks/benchmark/tools/profile-generator/sample.tfvars @@ -22,8 +22,11 @@ credentials_config = { project_id = "your_project_id" +namespace = "benchmark" + # Latency profile generator service configuration -build_latency_profile_generator_image = false +# set build_latency_profile_generator_image to false to save 20 min build if no rebuild needed, eg. +# build_latency_profile_generator_image = false latency_profile_kubernetes_service_account = "prom-frontend-sa" output_bucket = "your_project_id-benchmark-output-bucket" k8s_hf_secret = "hf-token"