FrankChen021 commented on code in PR #18613:
URL: https://github.com/apache/druid/pull/18613#discussion_r2425111187
##########
docs/querying/sql-metadata-tables.md:
##########
@@ -237,6 +237,9 @@ Servers table lists all discovered servers in the cluster.
|is_leader|BIGINT|1 if the server is currently the 'leader' (for services
which have the concept of leadership), otherwise 0 if the server is not the
leader, or null if the server type does not have the concept of leadership|
|start_time|STRING|Timestamp in ISO8601 format when the server was announced
in the cluster|
|version|VARCHAR|Druid version running on the server|
+|available_processors|BIGINT|Total number of processors available to the
server|
Review Comment:
```suggestion
|available_processors|BIGINT|Total number of CPU processors available to the
server|
```
##########
server/src/main/java/org/apache/druid/discovery/DiscoveryDruidNode.java:
##########
@@ -96,6 +120,8 @@ private static DiscoveryDruidNode fromJson(
@JsonProperty("nodeType") NodeRole nodeRole,
@JsonProperty("services") Map<String, StringObjectPairList> rawServices,
@JsonProperty("startTime") DateTime startTime,
+ @JsonProperty("availableProcessors") Integer availableProcessors,
Review Comment:
if the `availableProcessors` is NULL, how is it processed? will it result in
some problems at web-console side?
the null case may happens during upgrade, like coordinator/overlord are
generally updated after brokers.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]