Retrieve serverless build hash from nodes info API#1756
Retrieve serverless build hash from nodes info API#1756gbanasiak merged 7 commits intoelastic:masterfrom
Conversation
inqueue
left a comment
There was a problem hiding this comment.
I left one suggestion. Otherwise, another review round is not needed. LGTM
|
Thank you for the change! Does it make sense to add a test in |
dliappis
left a comment
There was a problem hiding this comment.
Thank you. This seems to work but I have some questions around populating the retrieved field in the remote metric store.
| if serverless_mode and serverless_operator: | ||
| build_hash = self.retrieve_build_hash_from_nodes_info(es_clients) | ||
| self.logger.info("Retrieved actual build hash [%s] from serverless cluster.", build_hash) | ||
| self.target.cluster_details["version"]["build_hash"] = build_hash |
There was a problem hiding this comment.
What about the stats in the metric store?
There is some code in
Lines 1778 to 1781 in c3b04f4
(correctly)
but
whereas I see in the logs Retrieved actual build hash [ad5c80e1b49f10b42d438253d7cc0b9753c156b9] from serverless cluster.
Additionally, shouldn't it also be collected by the node stats telemetry device?
There was a problem hiding this comment.
Telemetry device modifications are scoped separately in ES-6459, but after discussion with @dliappis we concluded the necessary changes to override build hash (revision) in ClusterEnvironmentInfo are small, so I went ahead and added da34a7d. PTAL.
Edit: Additional changes to telemetry devices will go into separate PRs.
dliappis
left a comment
There was a problem hiding this comment.
Thanks for iterating. LGTM.


This PR adds retrieval of build hash for serverless clusters from nodes info API (
_nodes?filter_path=**.build_hash).The PR introduces 2 configuration settings under
driversection:serverless.mode- equalstrueif Rally targets serverless clusterserverless.operator- equalstrueif Elasticsearch user has operator privileges