Skip to content

Commit a4c2894

Browse files
committed
Update
1 parent 49a495a commit a4c2894

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

model_serving/caip-load-testing/02-perf-testing.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -637,10 +637,10 @@
637637
"source": [
638638
"You can try using the following parameter configurations:\n",
639639
"1. Number of total users to simulate: 152\n",
640-
"2. Hatch rate: 1\n",
641-
"3. Host: http://ml.googleapis.com\n",
642-
"4. Number of users to increase by step: 8\n",
643-
"5. Step duration: 1m "
640+
"2. Spawn rate: 1\n",
641+
"3. Host: `http://[your-region]-ml.googleapis.com`\n",
642+
"\n",
643+
"**NOTE**: `[your-region]` is the region for deploying the model that you configured as `REGION` in the first notebook. "
644644
]
645645
},
646646
{

model_serving/caip-load-testing/03-analyze-results.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -402,11 +402,11 @@
402402
"outputs": [],
403403
"source": [
404404
"logging_client = MetricsServiceV2Client(credentials=creds)\n",
405-
"parent = logging_client.project_path(PROJECT_ID)\n",
405+
"parent = logging_client.common_project_path(PROJECT_ID)\n",
406406
"\n",
407-
"for element in logging_client.list_log_metrics(parent):\n",
408-
" metric_path = logging_client.metric_path(PROJECT_ID, element.name)\n",
409-
" logging_client.delete_log_metric(metric_path)\n",
407+
"for element in logging_client.list_log_metrics({'parent': parent}):\n",
408+
" metric_path = logging_client.log_metric_path(PROJECT_ID, element.name)\n",
409+
" logging_client.delete_log_metric({'metric_name': metric_path})\n",
410410
" print(\"Deleted metric: \", metric_path)"
411411
]
412412
},
@@ -419,9 +419,9 @@
419419
"display_name = 'AI Platform Prediction and Locust'\n",
420420
"dashboard_service_client = DashboardsServiceClient(credentials=creds)\n",
421421
"parent = 'projects/{}'.format(PROJECT_ID)\n",
422-
"for dashboard in dashboard_service_client.list_dashboards(parent):\n",
422+
"for dashboard in dashboard_service_client.list_dashboards({'parent': parent}):\n",
423423
" if dashboard.display_name == display_name:\n",
424-
" dashboard_service_client.delete_dashboard(dashboard.name)\n",
424+
" dashboard_service_client.delete_dashboard({'name': dashboard.name})\n",
425425
" print(\"Deleted dashboard:\", dashboard.name)"
426426
]
427427
},

0 commit comments

Comments
 (0)