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

Support to configure cpu resource request and limit in pod template

    XMLWordPrintableJSON

Details

    Description

      Why Flink needs to overwrite memory resource defined in pod template?
      The major reason is that Flink need to ensure the consistency between Flink configuration
      (taskmanager.memory.process.size , kubernetes.taskmanager.cpu) and pod template resource settings. Since users could specify the total process memory or detailed memory[2], Flink will calculate the pod resource internally.
       
      For the CPU case the template’s requests/limits should have priority if they are specified. The factor could still be used if the template doesn’t specify anything. The logic could be something like this:

      1. To choose CPU request
      2. Read pod template first
      3. If template doesn’t have anything, read from kubernetes.taskmanager.cpu
      4. If configuration is not specified, fall back to default
      1. To choose CPU limit
      2. Read from template first
      3. If template doesn’t have anything, apply factor to what was chosen in step 1, where the default factor is 1.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wangyang0918 Yang Wang
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated: