Yu-Lin Chen created YUNIKORN-2010:
-------------------------------------
Summary: Yunikorn web shows negative number of applications in
application history
Key: YUNIKORN-2010
URL: https://issues.apache.org/jira/browse/YUNIKORN-2010
Project: Apache YuniKorn
Issue Type: Bug
Components: core - scheduler
Reporter: Yu-Lin Chen
Assignee: Yu-Lin Chen
Attachments: Nagative Running Application Count - UI Screenshot.png,
YUNIKORN2010-Application State.png
{*}Observed{*}: Please refer to the attached screenshot.
{*}Root Cause{*}:
* When application state[1] in core transite from Completing to Running, we
should increase the total running application count. (Please refer to
application state flow in attachment.)
{*}Reproduce Steps{*}:
# Create trigger_sleep_pods.sh
{code:java}
#!/bin/bash
kubectl delete -f sleeppods.yaml
while true; do
kubectl apply -f sleeppods.yaml
sleep 5
kubectl delete -f sleeppods.yaml
done {code}
# Create sleeppods.yaml
{code:java}
apiVersion: v1
kind: Pod
metadata:
labels:
app: sleep
applicationId: "application-sleep-0001"
queue: "root.sandbox"
name: task-sleep
spec:
schedulerName: yunikorn
restartPolicy: Never
containers:
- name: sleep-300s
image: "alpine:latest"
command: ["sleep", "300"]
resources:
requests:
cpu: "100m"
memory: "500M" {code}
# bash trigger_sleep_pods.sh
{*}Will fix{*}:
# Increase running application when
** Completing -> Running
# We shuold also decrese running applicatio when
** Starting -> Failing
** Running -> Failing
[1]
[https://yunikorn.apache.org/docs/next/design/scheduler_object_states/#application-state]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]