[ 
https://issues.apache.org/jira/browse/YUNIKORN-2406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17816972#comment-17816972
 ] 

Ryan Lo commented on YUNIKORN-2406:
-----------------------------------

I also tested the latest version, and my testing steps are following:

1. deploy nginx app
{code:java}
kubectl apply -f yunikorn-k8shim/deployments/examples/nginx/nginx.yaml{code}

2. try container history endpoint (/ws/v1/history/containers)
{code:java}
[
  {
    "timestamp": 1707824440925032294,
    "totalContainers": "1"
  }
] {code}

3. restart the scheduler
{code:java}
kubectl rollout restart deploy/yunikorn-scheduler{code}

4. try /ws/v1/history/containers again, see the "totalContainers" is zero but 
nginx app is running
{code:java}
[
  {
    "timestamp": 1707824260926341294,
    "totalContainers": "0"
  },
  {
    "timestamp": 1707824320926063169,
    "totalContainers": "0"
  },
  {
    "timestamp": 1707824380925316419,
    "totalContainers": "0"
  }
]{code}
5. try /ws/v1/metrics, see the count of containers is correct
{code:java}
yunikorn_root_default_queue_container{state="allocated"} 1 {code}
 

> the count of allocated containers is not updated in adding recovered 
> allocation
> -------------------------------------------------------------------------------
>
>                 Key: YUNIKORN-2406
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-2406
>             Project: Apache YuniKorn
>          Issue Type: Bug
>          Components: core - scheduler
>            Reporter: Chia-Ping Tsai
>            Priority: Major
>
> The following events will update the count of allocated containers.
> 1. release allocation
> 2. schedule new allocation
> 3. remove a node
> Unfortunately, the event of recovering allocations does not update the count. 
> Hence, the restarted scheduler shows zero value of allocated containers even 
> though there are a bunch of running containers.
> This bug cause the restful API of showing container history will return zero, 
> and so the dashboard of WEB UI shows zero also.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@yunikorn.apache.org
For additional commands, e-mail: issues-h...@yunikorn.apache.org

Reply via email to