Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-19568

Offload creating TM launch contexts to the IO executor

    XMLWordPrintableJSON

Details

    Description

      Currently, for launching each TM container on Yarn, Flink creates a container launch context in RM's PRC main thread. This includes accessing file status from remote file systems, which may blocks the RM's main thread, especially when remote file system is slow. See this thread.

      The creating of TM context does not access nor change any RM's internal states. Therefore, I propose to offload the work to the IO executor. To be specific, I think the entire YarnResourceManagerDriver#createTaskExecutorLaunchContext can be invoked on the IO executor.

      Attachments

        Issue Links

          Activity

            People

              xtsong Xintong Song
              xtsong Xintong Song
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: