You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "xiangyuf (via GitHub)" <gi...@apache.org> on 2023/08/17 11:59:07 UTC

[GitHub] [flink] xiangyuf opened a new pull request, #23231: [FLINK-32880][flink-runtime]Ignore slotmanager.max-total-resource.cpu…

xiangyuf opened a new pull request, #23231:
URL: https://github.com/apache/flink/pull/23231

   ## What is the purpose of the change
   
   Just as slotmanager.number-of-slots.max, we should also ignore the cpu and memory limitation in standalone mode.
   
   ## Brief change log
   
   - Add StandaloneResourceManagerFactory#overwriteMaxResourceNumConfig to remove both max slot/cpu/memory limit option.
   
   ## Verifying this change
   
   This change added tests and can be verified as follows:
   
   
   ## 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)`: no
     - The serializers: no
     - The runtime per-record code paths (performance sensitive): no
     - Anything that affects deployment or recovery: JobManager(StandaloneResourceManagerFactory)
     - The S3 file system connector: no
   
   ## Documentation
   
     - Does this pull request introduce a new feature? no
     - If yes, how is the feature documented? 


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [flink] KarmaGYZ commented on a diff in pull request #23231: [FLINK-32880][flink-runtime]Ignore slotmanager.max-total-resource.cpu…

Posted by "KarmaGYZ (via GitHub)" <gi...@apache.org>.
KarmaGYZ commented on code in PR #23231:
URL: https://github.com/apache/flink/pull/23231#discussion_r1297125240


##########
flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/StandaloneResourceManagerFactory.java:
##########
@@ -109,17 +109,35 @@ protected ResourceManager<ResourceID> createResourceManager(
      * @return the configuration for standalone ResourceManager
      */
     @VisibleForTesting
-    public static Configuration getConfigurationWithoutMaxSlotNumberIfSet(
+    public static Configuration getConfigurationWithoutMaxResourceNumIfSet(

Review Comment:
   ```suggestion
       public static Configuration getConfigurationWithoutMaxResourceIfSet(
   ```



##########
flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/StandaloneResourceManagerFactory.java:
##########
@@ -109,17 +109,35 @@ protected ResourceManager<ResourceID> createResourceManager(
      * @return the configuration for standalone ResourceManager
      */
     @VisibleForTesting
-    public static Configuration getConfigurationWithoutMaxSlotNumberIfSet(
+    public static Configuration getConfigurationWithoutMaxResourceNumIfSet(
             Configuration configuration) {
         final Configuration copiedConfig = new Configuration(configuration);
-        // The max slot limit should not take effect for standalone cluster, we overwrite the
+        overwriteMaxResourceNumConfig(copiedConfig);
+
+        return copiedConfig;
+    }
+
+    private static void overwriteMaxResourceNumConfig(Configuration configuration) {

Review Comment:
   ```suggestion
       private static void removeMaxResourceConfig(Configuration configuration) {
   ```



-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [flink] xiangyuf commented on pull request #23231: [FLINK-32879][flink-runtime]Ignore slotmanager.max-total-resource.cpu…

Posted by "xiangyuf (via GitHub)" <gi...@apache.org>.
xiangyuf commented on PR #23231:
URL: https://github.com/apache/flink/pull/23231#issuecomment-1683277093

   > Hi, @xiangyuf , this pr belongs to https://issues.apache.org/jira/browse/FLINK-32879, Please update the commit message and PR title
   
   Hi @huwh , thanks for reply. Commit message and pr tittle has updated.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [flink] huwh commented on pull request #23231: [FLINK-32880][flink-runtime]Ignore slotmanager.max-total-resource.cpu…

Posted by "huwh (via GitHub)" <gi...@apache.org>.
huwh commented on PR #23231:
URL: https://github.com/apache/flink/pull/23231#issuecomment-1682389949

   Hi, @xiangyuf , this pr belongs to https://issues.apache.org/jira/browse/FLINK-32879, Please update the commit message and PR title


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [flink] huwh merged pull request #23231: [FLINK-32879][flink-runtime]Ignore slotmanager.max-total-resource.cpu…

Posted by "huwh (via GitHub)" <gi...@apache.org>.
huwh merged PR #23231:
URL: https://github.com/apache/flink/pull/23231


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [flink] flinkbot commented on pull request #23231: [FLINK-32880][flink-runtime]Ignore slotmanager.max-total-resource.cpu…

Posted by "flinkbot (via GitHub)" <gi...@apache.org>.
flinkbot commented on PR #23231:
URL: https://github.com/apache/flink/pull/23231#issuecomment-1682164857

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "8e42b776f803b8f4dc6b82fd29b04c481da3d62b",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "8e42b776f803b8f4dc6b82fd29b04c481da3d62b",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 8e42b776f803b8f4dc6b82fd29b04c481da3d62b UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [flink] xiangyuf commented on pull request #23231: [FLINK-32880][flink-runtime]Ignore slotmanager.max-total-resource.cpu…

Posted by "xiangyuf (via GitHub)" <gi...@apache.org>.
xiangyuf commented on PR #23231:
URL: https://github.com/apache/flink/pull/23231#issuecomment-1682223131

   Hi @KarmaGYZ , all comments have been resolved, thx again for reviewing.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org