You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2023/01/19 06:53:10 UTC

[GitHub] [incubator-seatunnel] liugddx opened a new pull request, #3982: [Improve][Zeta] Statistics server job and system resource usage #3980

liugddx opened a new pull request, #3982:
URL: https://github.com/apache/incubator-seatunnel/pull/3982

   close #3980
   <!--
   
   Thank you for contributing to SeaTunnel! Please make sure that your code changes
   are covered with tests. And in case of new features or big changes
   remember to adjust the documentation.
   
   Feel free to ping committers for the review!
   
   ## Contribution Checklist
   
     - Make sure that the pull request corresponds to a [GITHUB issue](https://github.com/apache/incubator-seatunnel/issues).
   
     - Name the pull request in the form "[Feature] [component] Title of the pull request", where *Feature* can be replaced by `Hotfix`, `Bug`, etc.
   
     - Minor fixes should be named following this pattern: `[hotfix] [docs] Fix typo in README.md doc`.
   
   -->
   
   ## Purpose of this pull request
   
   <!-- Describe the purpose of this pull request. For example: This pull request adds checkstyle plugin.-->
   
   ## Check list
   
   * [ ] Code changed are covered with tests, or it does not need tests for reason:
   * [ ] If any new Jar binary package adding in your PR, please add License Notice according
     [New License Guide](https://github.com/apache/incubator-seatunnel/blob/dev/docs/en/contribution/new-license.md)
   * [ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/incubator-seatunnel/tree/dev/docs
   * [ ] If you are contributing the connector code, please check that the following files are updated:
     1. Update change log that in connector document. For more details you can refer to [connector-v2](https://github.com/apache/incubator-seatunnel/tree/dev/docs/en/connector-v2)
     2. Update [plugin-mapping.properties](https://github.com/apache/incubator-seatunnel/blob/dev/plugin-mapping.properties) and add new connector information in it
     3. Update the pom file of [seatunnel-dist](https://github.com/apache/incubator-seatunnel/blob/dev/seatunnel-dist/pom.xml)
   * [ ] Update the [`release-note`](https://github.com/apache/incubator-seatunnel/blob/dev/release-note.md).


-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] EricJoy2048 commented on pull request #3982: [Improve][Zeta] Statistics server job and system resource usage #3980

Posted by "EricJoy2048 (via GitHub)" <gi...@apache.org>.
EricJoy2048 commented on PR #3982:
URL: https://github.com/apache/incubator-seatunnel/pull/3982#issuecomment-1410266114

   > ![image](https://user-images.githubusercontent.com/48236177/215243340-d7a9091b-7f10-43a4-b8c9-8c7cf68ef2a3.png)
   
   I'm worried that if there are many slots in a single node, will the log output here take up too much space? Will this affect the problem we define through the log?


-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] Hisoka-X commented on a diff in pull request #3982: [Improve][Zeta] Statistics server job and system resource usage #3980

Posted by "Hisoka-X (via GitHub)" <gi...@apache.org>.
Hisoka-X commented on code in PR #3982:
URL: https://github.com/apache/incubator-seatunnel/pull/3982#discussion_r1084848542


##########
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/CoordinatorService.java:
##########
@@ -519,24 +524,129 @@ public void printExecutionInfo() {
         int poolSize = threadPoolExecutor.getPoolSize();
         long completedTaskCount = threadPoolExecutor.getCompletedTaskCount();
         long taskCount = threadPoolExecutor.getTaskCount();
+
+        AtomicLong createdJobCount = new AtomicLong();

Review Comment:
   I think maybe we should change the time to print the info. If only print when job done, streaming job will never print this info.



-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] Hisoka-X commented on a diff in pull request #3982: [Improve][Zeta] Statistics server job and system resource usage #3980

Posted by "Hisoka-X (via GitHub)" <gi...@apache.org>.
Hisoka-X commented on code in PR #3982:
URL: https://github.com/apache/incubator-seatunnel/pull/3982#discussion_r1091352544


##########
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/CoordinatorService.java:
##########
@@ -120,13 +126,14 @@ public class CoordinatorService {
     /**
      * If this node is a master node
      */
+    @Getter

Review Comment:
   Just use `CoordinatorService::isCoordinatorActive`.



-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] Hisoka-X merged pull request #3982: [Improve][Zeta] Statistics server job and system resource usage #3980

Posted by "Hisoka-X (via GitHub)" <gi...@apache.org>.
Hisoka-X merged PR #3982:
URL: https://github.com/apache/incubator-seatunnel/pull/3982


-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] liugddx commented on a diff in pull request #3982: [Improve][Zeta] Statistics server job and system resource usage #3980

Posted by "liugddx (via GitHub)" <gi...@apache.org>.
liugddx commented on code in PR #3982:
URL: https://github.com/apache/incubator-seatunnel/pull/3982#discussion_r1089642984


##########
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/CoordinatorService.java:
##########
@@ -519,24 +524,129 @@ public void printExecutionInfo() {
         int poolSize = threadPoolExecutor.getPoolSize();
         long completedTaskCount = threadPoolExecutor.getCompletedTaskCount();
         long taskCount = threadPoolExecutor.getTaskCount();
+
+        AtomicLong createdJobCount = new AtomicLong();

Review Comment:
   I understand that this is a server-side tasks regularly, have nothing to do with specific jobs.



-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] liugddx commented on a diff in pull request #3982: [Improve][Zeta] Statistics server job and system resource usage #3980

Posted by "liugddx (via GitHub)" <gi...@apache.org>.
liugddx commented on code in PR #3982:
URL: https://github.com/apache/incubator-seatunnel/pull/3982#discussion_r1089645890


##########
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/CoordinatorService.java:
##########
@@ -519,24 +524,129 @@ public void printExecutionInfo() {
         int poolSize = threadPoolExecutor.getPoolSize();
         long completedTaskCount = threadPoolExecutor.getCompletedTaskCount();
         long taskCount = threadPoolExecutor.getTaskCount();
+
+        AtomicLong createdJobCount = new AtomicLong();

Review Comment:
   > I think maybe we should change the time to print the info. If only print when job done, streaming job will never print this info.
   
   Done.



-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] liugddx commented on pull request #3982: [Improve][Zeta] Statistics server job and system resource usage #3980

Posted by "liugddx (via GitHub)" <gi...@apache.org>.
liugddx commented on PR #3982:
URL: https://github.com/apache/incubator-seatunnel/pull/3982#issuecomment-1411694126

   ![image](https://user-images.githubusercontent.com/48236177/215997876-4347a28d-46bb-4c00-a068-117f154cacbf.png)
   


-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] 2000liux commented on pull request #3982: [Improve][Zeta] Statistics server job and system resource usage #3980

Posted by GitBox <gi...@apache.org>.
2000liux commented on PR #3982:
URL: https://github.com/apache/incubator-seatunnel/pull/3982#issuecomment-1398096612

   nice


-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] liugddx commented on a diff in pull request #3982: [Improve][Zeta] Statistics server job and system resource usage #3980

Posted by "liugddx (via GitHub)" <gi...@apache.org>.
liugddx commented on code in PR #3982:
URL: https://github.com/apache/incubator-seatunnel/pull/3982#discussion_r1089642984


##########
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/CoordinatorService.java:
##########
@@ -519,24 +524,129 @@ public void printExecutionInfo() {
         int poolSize = threadPoolExecutor.getPoolSize();
         long completedTaskCount = threadPoolExecutor.getCompletedTaskCount();
         long taskCount = threadPoolExecutor.getTaskCount();
+
+        AtomicLong createdJobCount = new AtomicLong();

Review Comment:
   I understand that this is a server-side tasks regularly, have nothing to do with specific jobs.



-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] liugddx commented on pull request #3982: [Improve][Zeta] Statistics server job and system resource usage #3980

Posted by "liugddx (via GitHub)" <gi...@apache.org>.
liugddx commented on PR #3982:
URL: https://github.com/apache/incubator-seatunnel/pull/3982#issuecomment-1411853107

   please wait #4028 


-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] liugddx commented on pull request #3982: [Improve][Zeta] Statistics server job and system resource usage #3980

Posted by "liugddx (via GitHub)" <gi...@apache.org>.
liugddx commented on PR #3982:
URL: https://github.com/apache/incubator-seatunnel/pull/3982#issuecomment-1407295727

   ![image](https://user-images.githubusercontent.com/48236177/215243340-d7a9091b-7f10-43a4-b8c9-8c7cf68ef2a3.png)
   


-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] Hisoka-X commented on a diff in pull request #3982: [Improve][Zeta] Statistics server job and system resource usage #3980

Posted by "Hisoka-X (via GitHub)" <gi...@apache.org>.
Hisoka-X commented on code in PR #3982:
URL: https://github.com/apache/incubator-seatunnel/pull/3982#discussion_r1090146931


##########
seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/CoordinatorService.java:
##########
@@ -141,6 +148,8 @@ public CoordinatorService(@NonNull NodeEngineImpl nodeEngine, @NonNull SeaTunnel
         this.engineConfig = engineConfig;
         masterActiveListener = Executors.newSingleThreadScheduledExecutor();
         masterActiveListener.scheduleAtFixedRate(this::checkNewActiveMaster, 0, 100, TimeUnit.MILLISECONDS);
+        monitorJob = Executors.newSingleThreadScheduledExecutor();

Review Comment:
   Hi, we already have `monitorService` in SeaTunnelServer.java, please use it to printJobDetailInfo. Don't create new ScheduledExecutor. Judging that if it is the master node, just print the corresponding information in `printExecutionInfo`.



-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] liugddx commented on pull request #3982: [Improve][Zeta] Statistics server job and system resource usage #3980

Posted by "liugddx (via GitHub)" <gi...@apache.org>.
liugddx commented on PR #3982:
URL: https://github.com/apache/incubator-seatunnel/pull/3982#issuecomment-1410406971

   > slots
   I agree. I will provide other ways to get system resources.
   


-- 
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: commits-unsubscribe@seatunnel.apache.org

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