Skip to content

fix: after the machine reboot, vNPU cannot be deleted, resulting in idle resource occupation#54

Open
dartagnanli wants to merge 2 commits intoProject-HAMi:mainfrom
dartagnanli:main
Open

fix: after the machine reboot, vNPU cannot be deleted, resulting in idle resource occupation#54
dartagnanli wants to merge 2 commits intoProject-HAMi:mainfrom
dartagnanli:main

Conversation

@dartagnanli
Copy link

After the machine restarts, there is no time to execute the destroy method of Ascend, resulting in the vNPU being idle. When the model is rescheduled, a new vNPU will be created. This situation can lead to the model service pod not starting up when resources are insufficient. It is necessary to manually delete the vNPU that was not deleted before the last restart. Here, I have added a logic to periodically check for idle vNPU. When an idle vNPU is found, the deletion logic will be executed.

In the image below, the vNPU with a status of 0 represents the idle vNPU left after a restart. These vNPU were used before the model restart, and kubelet did not have enough time to execute the post-hook method of the container during the restart
image

@hami-robot
Copy link
Contributor

hami-robot bot commented Jan 30, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dartagnanli
Once this PR has been reviewed and has the lgtm label, please assign archlitchi for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hami-robot
Copy link
Contributor

hami-robot bot commented Jan 30, 2026

Welcome @dartagnanli! It looks like this is your first PR to Project-HAMi/ascend-device-plugin 🎉

@hami-robot hami-robot bot added the size/L label Jan 30, 2026
@DSFans2014
Copy link
Contributor

please sign-off your commit

…dle resource occupation

Signed-off-by: libin18 <libin18@kingsoft.com>
…pus code

Signed-off-by: libin18 <libin18@kingsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants