backend.ai icon indicating copy to clipboard operation
backend.ai copied to clipboard

A feature to query the actual resource allocation time for compute sessions

Open adrysn opened this issue 3 years ago • 2 comments

Compute sessions have three status-related time fields: created_at, status_changed, and terminated_at. With these fields, we can query the total session lifetime, the time between PENDING and TERMINATED statuses, but unable to get the actual resource allocation time (PREPARING ~ TERMINATED). If a session stays long in PENDING status, the actual resource allocation time can greatly differ compared to the result of terminated_at - created_at.

Since the actual resource allocation time is useful to calculate the billing metric in cloud and on-premise sites, it would be good to support this feature.

adrysn avatar Jun 14 '22 07:06 adrysn

Work in progress @ branch feature/469-actual-resource-allocation-time. I temporarily added a command backend.ai session resource-allocation-time and it gives back a time info elapsed from PREPARING to TERMINATED.

스크린샷 2022-06-20 오후 3 43 35

rapsealk avatar Jun 20 '22 06:06 rapsealk

GUI counterpart should also be implemented.

adrysn avatar Jul 14 '22 02:07 adrysn