Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-30926 [Umbrella] Test Flink Release 1.17
  3. FLINK-30938

Release Testing: Verify FLINK-29766 Adaptive Batch Scheduler should also work with hybrid shuffle mode

    XMLWordPrintableJSON

Details

    Description

      This ticket aims for verifying FLINK-29766: Adaptive Batch Scheduler should also work with hybrid shuffle mode.

      More details about this feature and how to use it can be found in this documentation.

      The verification is divided into two parts:

      Part I: Verify hybrid shuffle can work with AdaptiveBatchScheduler

      Write a simple Flink batch job using hybrid shuffle mode and submit this job. Note that in flink-1.17, AdaptiveBatchScheduler is the default scheduler for batch job, so you do not need other configuration.

      Suppose your job's topology like source -> map -> sink, if your cluster have enough slots, you should find that source and map are running at the same time.

      Part II: Verify hybrid shuffle can work with Speculative Execution

      Write a Flink batch job using hybrid shuffle mode which has a subtask running much slower than others (e.g. sleep indefinitely if it runs on a certain host, the hostname can be retrieved via InetAddress.getLocalHost().getHostName(), or if its (subtaskIndex + attemptNumer) % 2 == 0)

      Modify Flink configuration file to enable speculative execution and tune the configuration as you like

      Submit the job. Checking the web UI, logs, metrics and produced result.

      You should find that once a producer task's one subtask finished, all its consumer tasks can be scheduled in log.

      Attachments

        1. testSpeculativeExecution
          2 kB
          Weijie Guo
        2. testAdaptiveBatchJob
          1 kB
          Weijie Guo
        3. taskmanager-slots.png
          224 kB
          Yufan Sheng
        4. Speculative-Execution-timeline.png
          96 kB
          Yufan Sheng
        5. flink-dashborad-version.png
          39 kB
          Yufan Sheng
        6. flink-1.17-branch-log.png
          109 kB
          Yufan Sheng
        7. AdaptiveBatchScheduler-timeline.png
          103 kB
          Yufan Sheng
        8. AdaptiveBatchScheduler-job-graph.png
          184 kB
          Yufan Sheng

        Issue Links

          Activity

            People

              syhily Yufan Sheng
              Weijie Guo Weijie Guo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: