cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

How best to measure the time-spent-waiting-for-an-instance?

mrstevegross
Contributor

I'm exploring using an instance pool. Can someone clarify for me which job event log tells me the time-spent-waiting-for-an-instance? I've found 2 candidates:

1. The delta between "waitingForCluster" and "started" on the "run events" log, accessible via "View Run Events" button on the Runs page (e.g.: `https://tecton-dev-shared-databricks.cloud.databricks.com/jobs/12345/runs/12345`):

mrstevegross_0-1741800626468.png

2. The delta between "CREATING" and "INIT_SCRIPTS_STARTED" on the "run events" tab on the Compute page (e.g.: `https://tecton-dev-shared-databricks.cloud.databricks.com/compute/clusters/12345/events?o=12345`: 

mrstevegross_1-1741800790749.png

Which delta should I use to assess time-spent-waiting-for-an-instance?

1 ACCEPTED SOLUTION

Accepted Solutions

Isi
Contributor

Hey @mrstevegross 

I think you are reading the “View Run Events” log in reverse order.
I’m attaching an example where I compare the View Run Events (Right) with the Run Events from the Compute Page (Left).

Captura de pantalla 2025-03-17 a las 22.54.01.png

As you can see, both logs contain the same information, but in the correct order:

CREATING → INIT_SCRIPTS_STARTED (20:44:54 → 20:46:58) ≈ 2 min

If your setup doesn’t include init scripts, the time should be slightly lower, as the cluster wouldn’t need to execute those steps.

Hope this helps 🙂

Isi

View solution in original post

4 REPLIES 4

Isi
Contributor

Hey @mrstevegross 

I think you are reading the “View Run Events” log in reverse order.
I’m attaching an example where I compare the View Run Events (Right) with the Run Events from the Compute Page (Left).

Captura de pantalla 2025-03-17 a las 22.54.01.png

As you can see, both logs contain the same information, but in the correct order:

CREATING → INIT_SCRIPTS_STARTED (20:44:54 → 20:46:58) ≈ 2 min

If your setup doesn’t include init scripts, the time should be slightly lower, as the cluster wouldn’t need to execute those steps.

Hope this helps 🙂

Isi

Awesome, we're always using init scripts. So we should measure the delta between "creating" and "init_scripts_started". Cool, I'll do that!

Hey @mrstevegross 

Great! Consider mark my answer as Solution to help future users.

Thanks,

Isi

julieAnderson
New Contributor

 

System Logs or Event Timings

Visit website PASS4CERTS.COM For real Exam Question

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group