Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-1609

Make API factory and Informer timeouts configurable

    XMLWordPrintableJSON

Details

    Description

      Right now there are a few places I was able to find with a hard coded 30 second timeout. It would be nice if those timeouts were user configurable. 

      These are the 2 places in the scheduler that need to be updated to fix the 30 second timeout:

      https://github.com/apache/yunikorn-k8shim/blob/master/pkg/client/apifactory.go#L217

      https://github.com/apache/yunikorn-k8shim/blob/master/pkg/client/apifactory.go#L224

       

      Context:

      Yunikorn slack thread

      I was seeing error/warning logs like `nodes recovery failed {"error": "timeout waiting for condition"}`, `scheduler recovery failed {"error": "timeout waiting for condition"}`, and `Failed to sync informers    {"error": "timeout waiting for condition"}`.

      Attachments

        Activity

          People

            elischiff Eli Schiff
            elischiff Eli Schiff
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: