You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by "SpriCoder (via GitHub)" <gi...@apache.org> on 2023/02/23 04:15:05 UTC

[GitHub] [iotdb] SpriCoder opened a new pull request, #9124: [IOTDB-5458] Add Session Idle Time Metrics and Upgrade Thrift related Metrics

SpriCoder opened a new pull request, #9124:
URL: https://github.com/apache/iotdb/pull/9124

   1. Add Session Idle Time Metrics: introduce a timer to statistic the distribution of idle time.
   2. Upgrade thrift related metrics from the important level to the core level.
   3. Fix some code smells.


-- 
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: reviews-unsubscribe@iotdb.apache.org

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


[GitHub] [iotdb] SpriCoder commented on pull request #9124: [IOTDB-5458] Add Session Idle Time Metrics and Upgrade Thrift related Metrics

Posted by "SpriCoder (via GitHub)" <gi...@apache.org>.
SpriCoder commented on PR #9124:
URL: https://github.com/apache/iotdb/pull/9124#issuecomment-1443949867

   <img width="1728" alt="image" src="https://user-images.githubusercontent.com/46039728/221231964-f553b774-acec-49a8-b26b-b5664197f145.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: reviews-unsubscribe@iotdb.apache.org

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


[GitHub] [iotdb] OneSizeFitsQuorum commented on a diff in pull request #9124: [IOTDB-5458] Add Session Idle Time Metrics and Upgrade Thrift related Metrics

Posted by "OneSizeFitsQuorum (via GitHub)" <gi...@apache.org>.
OneSizeFitsQuorum commented on code in PR #9124:
URL: https://github.com/apache/iotdb/pull/9124#discussion_r1116476625


##########
server/src/main/java/org/apache/iotdb/db/service/thrift/impl/ClientRPCServiceImpl.java:
##########
@@ -261,40 +260,41 @@ private TSExecuteStatementResp executeStatementInternal(
         }
         COORDINATOR.cleanupQueryExecution(queryId);
       }
+      SESSION_MANAGER.updateIdleTime();

Review Comment:
   move to the `finally` closure



##########
docs/UserGuide/Monitor-Alert/Metric-Tool.md:
##########
@@ -121,15 +121,29 @@ carefully evaluated. The current Core-level metrics are as follows:
 | entry                     | name="{{interface}}"                              | Timer     | The time consumed of thrift operations              |
 | mem                       | name="IoTConsensus"                               | AutoGauge | The memory usage of IoTConsensus, Unit: byte        |
 
-#### 4.1.2. Node Statistics
+#### 4.1.2. Interface
+
+| Metric                | Tags                               | Type      | Description                                                    |
+| --------------------- | ---------------------------------- | --------- | -------------------------------------------------------------- |
+| thrift_connections    | name="ConfigNodeRPC"               | AutoGauge | The number of thrift internal connections in ConfigNode        |
+| thrift_connections    | name="Internal"                    | AutoGauge | The number of thrift internal connections in DataNode          |
+| thrift_connections    | name="MPPDataExchange"             | AutoGauge | The number of thrift internal connections in MPP               |
+| thrift_connections    | name="RPC"                         | AutoGauge | The number of thrift connections of Client                     |

Review Comment:
   ClientRPC?



-- 
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: reviews-unsubscribe@iotdb.apache.org

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


[GitHub] [iotdb] SpriCoder merged pull request #9124: [IOTDB-5458] Add Session Idle Time Metrics and Upgrade Thrift related Metrics

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


-- 
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: reviews-unsubscribe@iotdb.apache.org

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