Skip to content

Conversation

@gribnoysup
Copy link
Collaborator

@gribnoysup gribnoysup commented Feb 21, 2025

We noticed that some flex clusters are not displayed in compass-web correctly, the reason seems to be that flex replaced both serverless and shared tier clusters (at least that's my guess, it's hard to validate to be honest).

It seems like if cluster was shared tier, we're able to build the metadata for it because the cluster looks like a replica set with associated deployment (although because we're not accounting for it actually being flex, we use it subtly wrong in some cases), but serverless clusters don't have a deployment, our code wasn't expecting that and so clusters would be just filtered out when listed due to the error when building the metadata.

I scanned through the mms codebase and seems to me that the flex handling in really close to serverless, so this patch maps flex explicitly in the metrics metadata and changes the places that are checking against it accordingly

Before After
image image

@github-actions github-actions bot added the fix label Feb 21, 2025
@gribnoysup gribnoysup added no release notes Fix or feature not for release notes and removed fix labels Feb 21, 2025
@github-actions github-actions bot added the fix label Feb 21, 2025
Copy link
Collaborator

@syn-zhu syn-zhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Main thing I just wanted to clarify, after this change, existing Flex clusters which already work with the current code will continue to work? E.g. https://cloud-dev.mongodb.com/v2/66ce1716209aca269796919b#/flex/explorer/Flex

@gribnoysup
Copy link
Collaborator Author

gribnoysup commented Feb 24, 2025

@syn-zhu they will, of course! As I mentioned, they do work right now, but there are actually subtle issues there, for example the performance advisor link is not built correctly (although still works), automation agent requests would be using the wrong id (but we're lucky that no features using it are applied to flex), this PR deals with those too by properly hadling all flex clusters, not only accidentally handling those that match old shared tier

@gribnoysup gribnoysup marked this pull request as ready for review February 24, 2025 13:15
@gribnoysup gribnoysup added the no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion) label Feb 24, 2025
@syn-zhu syn-zhu merged commit b8c29a8 into main Mar 1, 2025
42 of 43 checks passed
@syn-zhu syn-zhu deleted the compass-9008-fix-flex branch March 1, 2025 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix no release notes Fix or feature not for release notes no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants