xintongsong opened a new pull request #10146: [FLINK-14188][runtime] 
TaskExecutor derive and register with default slot resource profile
URL: https://github.com/apache/flink/pull/10146
 
 
   ## What is the purpose of the change
   
   This PR is a subtask of FLIP-56. It makes task executor to derive the 
default slot resource profile, and register it to the resource manager.
   
   This PR is based on #9910 and #10141.
   
   ## Brief change log
   
   - 
8f633ca0096ea14ff885025ab6e62115e5529992..88f393794eb6a39c05bc520589fc4ddc2b894d6b:
 Commits of previous PRs.
   - e661a3e4bb0dafc3d5c96850e6005460851a1ca2: Introduce config option for 
default slot resource fraction.
   - fd1f894e5356184d8371bb9b4512b6d8fd6b7a68: Set container cpu cores into 
`TaskExecutorResourceSpec`. This will be used for deriving cpu cores of the 
default slot resource profiles.
   - 96cb75d13001c6d53861853dc6a1cc18b4d6bb31: Task executor derive default 
slot resource profile.
   - 25f9e4b87846e5a736aa329c834f82962e1f50c4: Task executor register default 
slot resource profile to RM.
   
   ## Verifying this change
   
   This change added tests and can be verified as follows:
   
   - `TaskExecutorResourceUtilsTest#testConfigCpuCores`
   - `TaskExecutorResourceUtilsTest#testConfigNoCpuCores`
   - `TaskExecutorResourceUtilsTest#testConfigDefaultSlotFraction`
   - `TaskExecutorResourceUtilsTest#testConfigDefaultSlotFractionLegacyNumSlots`
   - `TaskExecutorResourceUtilsTest#testConfigDefaultSlotFractionFailure`
   - `TaskExecutorTest#testRegisterWithDefaultSlotResourceProfile`
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: (yes)
     - The serializers: (no)
     - The runtime per-record code paths (performance sensitive): (no)
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Yarn/Mesos, ZooKeeper: (no)
     - The S3 file system connector: (no)
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (no)
     - If yes, how is the feature documented? (not applicable)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to