XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.5.0
    • 1.6.0, 1.5.1
    • None
    • None
    • Yunikorn: 1.5
      AWS EKS: v1.28.6-eks-508b6b3

    Description

      Discussion on Yunikorn slack: https://yunikornworkspace.slack.com/archives/CLNUW68MU/p1711048995187179

      Occasionally, Yunikorn will deadlock and prevent any new pods from starting. All pods stay in Pending. There are no error logs inside of the Yunikorn scheduler indicating any issue. 

      Additionally, the pods all have the correct annotations / labels from the admission service, so they are at least getting put into k8s correctly. 

      The issue was seen intermittently on Yunikorn version 1.5 in EKS, using version `v1.28.6-eks-508b6b3`. 

      At least for me, we run about 25-50 nodes and 200-400 pods. Pods and nodes are added and removed pretty frequently as we do ML workloads. 

      Attached is the goroutine dump. We were not able to get a statedump as the endpoint kept timing out. 

      You can fix it by restarting the Yunikorn scheduler pod. Sometimes you also have to delete any "Pending" pods that got stuck while the scheduler was deadlocked as well, for them to get picked up by the new scheduler pod. 

      Attachments

        1. 0001-YUNIKORN-2539-core.patch
          43 kB
          Craig Condit
        2. 0002-YUNIKORN-2539-k8shim.patch
          31 kB
          Craig Condit
        3. 4_4_goroutine-1.txt
          85 kB
          Noah Yoshida
        4. 4_4_goroutine-2.txt
          85 kB
          Noah Yoshida
        5. 4_4_goroutine-3.txt
          86 kB
          Noah Yoshida
        6. 4_4_goroutine-4.txt
          86 kB
          Noah Yoshida
        7. 4_4_goroutine-5-state-dump.txt
          88 kB
          Noah Yoshida
        8. 4_4_profile001.png
          407 kB
          Noah Yoshida
        9. 4_4_profile002.png
          508 kB
          Noah Yoshida
        10. 4_4_profile003.png
          449 kB
          Noah Yoshida
        11. 4_4_scheduler-logs.txt
          180 kB
          Noah Yoshida
        12. deadlock_2024-04-18.log
          11 kB
          Xi Chen
        13. goroutine-4-3.out
          1.16 MB
          Shravan Achar
        14. goroutine-4-3-1.out
          8 kB
          Shravan Achar
        15. goroutine-4-3-2.out
          8 kB
          Shravan Achar
        16. goroutine-4-3-3.out
          1.39 MB
          Shravan Achar
        17. goroutine-4-5.out
          991 kB
          Shravan Achar
        18. goroutine-dump.txt
          32 kB
          Noah Yoshida
        19. goroutine-while-blocking.out
          1.53 MB
          Shravan Achar
        20. goroutine-while-blocking-2.out
          8 kB
          Shravan Achar
        21. logs-potential-deadlock.txt
          14 kB
          Shravan Achar
        22. logs-potential-deadlock-2.txt
          14 kB
          Shravan Achar
        23. logs-splunk.txt
          47.77 MB
          Shravan Achar
        24. logs-splunk-ordered.txt
          15.92 MB
          Shravan Achar
        25. profile001-4-5.gif
          192 kB
          Shravan Achar
        26. profile012.gif
          184 kB
          Shravan Achar
        27. profile013.gif
          184 kB
          Shravan Achar
        28. running-logs.txt
          48.88 MB
          Shravan Achar
        29. running-logs-2.txt
          6.25 MB
          Shravan Achar

        Issue Links

          Activity

            People

              pbacsko Peter Bacsko
              nyoshida Noah Yoshida
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: