You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@horaedb.apache.org by "ShiKaiWi (via GitHub)" <gi...@apache.org> on 2024/01/22 07:17:05 UTC
[PR] feat: support collect statistics about the engine [incubator-horaedb]
ShiKaiWi opened a new pull request, #1451:
URL: https://github.com/apache/incubator-horaedb/pull/1451
## Rationale
Close #1438.
## Detailed Changes
Support report statistics on shard level.
## Test Plan
New unit tests is added and the CI should pass.
--
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@horaedb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@horaedb.apache.org
For additional commands, e-mail: commits-help@horaedb.apache.org
Re: [PR] feat: support collect statistics about the engine [incubator-horaedb]
Posted by "jiacai2050 (via GitHub)" <gi...@apache.org>.
jiacai2050 commented on code in PR #1451:
URL: https://github.com/apache/incubator-horaedb/pull/1451#discussion_r1467161651
##########
src/analytic_engine/src/engine.rs:
##########
@@ -234,6 +242,63 @@ impl TableEngine for TableEngineImpl {
self.close_tables_of_shard(close_requests).await
}
+
+ async fn report_statistics(&self) -> Result<Option<TableEngineStats>> {
Review Comment:
OK, a better way I can think of is to register those metrics when open shard, and unregister them when close shard.
--
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@horaedb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@horaedb.apache.org
For additional commands, e-mail: commits-help@horaedb.apache.org
Re: [PR] feat: support collect statistics about the engine [incubator-horaedb]
Posted by "ShiKaiWi (via GitHub)" <gi...@apache.org>.
ShiKaiWi merged PR #1451:
URL: https://github.com/apache/incubator-horaedb/pull/1451
--
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@horaedb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@horaedb.apache.org
For additional commands, e-mail: commits-help@horaedb.apache.org
Re: [PR] feat: support collect statistics about the engine [incubator-horaedb]
Posted by "jiacai2050 (via GitHub)" <gi...@apache.org>.
jiacai2050 commented on code in PR #1451:
URL: https://github.com/apache/incubator-horaedb/pull/1451#discussion_r1465751466
##########
src/analytic_engine/src/engine.rs:
##########
@@ -234,6 +242,63 @@ impl TableEngine for TableEngineImpl {
self.close_tables_of_shard(close_requests).await
}
+
+ async fn report_statistics(&self) -> Result<Option<TableEngineStats>> {
Review Comment:
I think of one issue when using prometheus metrics to collect stats here, when a shard is transferred to another node, this metrics will remain, so you may collect those table twice.
--
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@horaedb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@horaedb.apache.org
For additional commands, e-mail: commits-help@horaedb.apache.org
Re: [PR] feat: support collect statistics about the engine [incubator-horaedb]
Posted by "ShiKaiWi (via GitHub)" <gi...@apache.org>.
ShiKaiWi commented on code in PR #1451:
URL: https://github.com/apache/incubator-horaedb/pull/1451#discussion_r1465876491
##########
src/analytic_engine/src/engine.rs:
##########
@@ -234,6 +242,63 @@ impl TableEngine for TableEngineImpl {
self.close_tables_of_shard(close_requests).await
}
+
+ async fn report_statistics(&self) -> Result<Option<TableEngineStats>> {
Review Comment:
This case has been taken into consideration, and the solution is that a filter based on shards will be applied when reporting to meta.
--
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@horaedb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@horaedb.apache.org
For additional commands, e-mail: commits-help@horaedb.apache.org