-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ML] Update allocations tooltip to clarify that it's per node #197099
Conversation
Pinging @elastic/ml-ui (:ml) |
@jgowdyelastic could I ask for a review on this little change? |
@@ -106,7 +106,8 @@ export const AllocatedModels: FC<AllocatedModelsProps> = ({ | |||
name: ( | |||
<EuiToolTip | |||
content={i18n.translate('xpack.ml.trainedModels.nodesList.modelsList.allocationTooltip', { | |||
defaultMessage: 'number_of_allocations times threads_per_allocation', | |||
defaultMessage: | |||
'Number of allocations per node multiplied by number of threads per allocation', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently we show the same tooltip for stateful and serverless, and on serverless 'nodes' sort of don't exist. Although it is less clear, I'd therefore suggest
Number of allocations multiplied by number of threads per allocation
until we can add an extra check in for serverless (note there is some WIP here - #191960).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah well the request that sparked this change was to clarify whether it was indeed per node, so your edit doesn't actually change much 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we still return stuff about shards in basic es apis on serverless though currently
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This message should depend on whether we can show node information.
We have a showNodeInfo
flag
const { showNodeInfo } = useEnabledFeatures();
It'll be false
in serverless.
I'd suggest something like:
content={
showNodeInfo
? i18n.translate(
'xpack.ml.trainedModels.nodesList.modelsList.allocationTooltipNodes',
{
defaultMessage:
'Number of allocations per node multiplied by number of threads per allocation',
}
)
: i18n.translate('xpack.ml.trainedModels.nodesList.modelsList.allocationTooltip', {
defaultMessage:
'Number of allocations multiplied by number of threads per allocation',
})
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Had a crack at implementing that in 8530fbd
💚 Build Succeeded
Metrics [docs]Async chunks
History
cc @leemthompo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Starting backport for target branches: 8.16 https://github.com/elastic/kibana/actions/runs/11483208975 |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…#197099) (#197488) # Backport This will backport the following commits from `main` to `8.16`: - [[ML] Update allocations tooltip to clarify that it's per node (#197099)](#197099) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Liam Thompson","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-23T15:30:13Z","message":"[ML] Update allocations tooltip to clarify that it's per node (#197099)\n\nClarifies text to mention nodes, conditional on being not-serverless","sha":"ea4ce57141019606b148016f667dd7a0cf98ff8c","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","release_note:skip","v9.0.0","Team:ML","v8.16.0","backport:version"],"title":"[ML] Update allocations tooltip to clarify that it's per node","number":197099,"url":"https://github.com/elastic/kibana/pull/197099","mergeCommit":{"message":"[ML] Update allocations tooltip to clarify that it's per node (#197099)\n\nClarifies text to mention nodes, conditional on being not-serverless","sha":"ea4ce57141019606b148016f667dd7a0cf98ff8c"}},"sourceBranch":"main","suggestedTargetBranches":["8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197099","number":197099,"mergeCommit":{"message":"[ML] Update allocations tooltip to clarify that it's per node (#197099)\n\nClarifies text to mention nodes, conditional on being not-serverless","sha":"ea4ce57141019606b148016f667dd7a0cf98ff8c"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Liam Thompson <[email protected]>
Starting backport for target branches: 8.16, 8.x https://github.com/elastic/kibana/actions/runs/11520569348 |
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
…ode (#197099) (#197846) # Backport This will backport the following commits from `main` to `8.x`: - [[ML] Update allocations tooltip to clarify that it's per node (#197099)](#197099) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Liam Thompson","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-23T15:30:13Z","message":"[ML] Update allocations tooltip to clarify that it's per node (#197099)\n\nClarifies text to mention nodes, conditional on being not-serverless","sha":"ea4ce57141019606b148016f667dd7a0cf98ff8c","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","release_note:skip","v9.0.0","Team:ML","v8.16.0","backport:version","v8.17.0"],"title":"[ML] Update allocations tooltip to clarify that it's per node","number":197099,"url":"https://github.com/elastic/kibana/pull/197099","mergeCommit":{"message":"[ML] Update allocations tooltip to clarify that it's per node (#197099)\n\nClarifies text to mention nodes, conditional on being not-serverless","sha":"ea4ce57141019606b148016f667dd7a0cf98ff8c"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197099","number":197099,"mergeCommit":{"message":"[ML] Update allocations tooltip to clarify that it's per node (#197099)\n\nClarifies text to mention nodes, conditional on being not-serverless","sha":"ea4ce57141019606b148016f667dd7a0cf98ff8c"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/197488","number":197488,"state":"MERGED","mergeCommit":{"sha":"3d98f6c3f7cdca73d184b8d5b6a103e7fcdfe779","message":"[8.16] [ML] Update allocations tooltip to clarify that it is per node (#197099) (#197488)\n\n# Backport\n\nThis will backport the following commits from `main` to `8.16`:\n- [[ML] Update allocations tooltip to clarify that it's per node\n(#197099)](https://github.com/elastic/kibana/pull/197099)\n\n<!--- Backport version: 9.4.3 -->\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sqren/backport)\n\n<!--BACKPORT [{\"author\":{\"name\":\"Liam\nThompson\",\"email\":\"[email protected]\"},\"sourceCommit\":{\"committedDate\":\"2024-10-23T15:30:13Z\",\"message\":\"[ML]\nUpdate allocations tooltip to clarify that it's per node\n(#197099)\\n\\nClarifies text to mention nodes, conditional on being\nnot-serverless\",\"sha\":\"ea4ce57141019606b148016f667dd7a0cf98ff8c\",\"branchLabelMapping\":{\"^v9.0.0$\":\"main\",\"^v8.17.0$\":\"8.x\",\"^v(\\\\d+).(\\\\d+).\\\\d+$\":\"$1.$2\"}},\"sourcePullRequest\":{\"labels\":[\":ml\",\"release_note:skip\",\"v9.0.0\",\"Team:ML\",\"v8.16.0\",\"backport:version\"],\"title\":\"[ML]\nUpdate allocations tooltip to clarify that it's per\nnode\",\"number\":197099,\"url\":\"https://github.com/elastic/kibana/pull/197099\",\"mergeCommit\":{\"message\":\"[ML]\nUpdate allocations tooltip to clarify that it's per node\n(#197099)\\n\\nClarifies text to mention nodes, conditional on being\nnot-serverless\",\"sha\":\"ea4ce57141019606b148016f667dd7a0cf98ff8c\"}},\"sourceBranch\":\"main\",\"suggestedTargetBranches\":[\"8.16\"],\"targetPullRequestStates\":[{\"branch\":\"main\",\"label\":\"v9.0.0\",\"branchLabelMappingKey\":\"^v9.0.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com/elastic/kibana/pull/197099\",\"number\":197099,\"mergeCommit\":{\"message\":\"[ML]\nUpdate allocations tooltip to clarify that it's per node\n(#197099)\\n\\nClarifies text to mention nodes, conditional on being\nnot-serverless\",\"sha\":\"ea4ce57141019606b148016f667dd7a0cf98ff8c\"}},{\"branch\":\"8.16\",\"label\":\"v8.16.0\",\"branchLabelMappingKey\":\"^v(\\\\d+).(\\\\d+).\\\\d+$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"}]}]\nBACKPORT-->\n\nCo-authored-by: Liam Thompson <[email protected]>"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Liam Thompson <[email protected]>
Clarifies text to mention nodes, conditional on being not-serverless
h/t @simonhearne @jeffvestal
cc @serenachou