Skip to content

feat: remove /meta/cluster #1757

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

Merged
merged 1 commit into from
Dec 17, 2024
Merged

feat: remove /meta/cluster #1757

merged 1 commit into from
Dec 17, 2024

Conversation

artemmufazalov
Copy link
Member

@artemmufazalov artemmufazalov commented Dec 16, 2024

Closes #1613

meta/cluster returns information both from meta table and viewer/cluster handler. it could be replaced by combination of meta/db_clusters and viewer/cluster.

Why it's needed:

  1. meta/cluster makes troubles when we use ip hashing strategy on the balancer, since all users requests are coming from meta-host
  2. we need viewer/cluster and meta/db_clusters for different purposes, there is no need to have their data together,
    also they could work faster when they are separate
  3. it's more straightforward approach in code, we receive different data from different handlers, we don't use different endpoints in 1 query depending on the app version

CI Results

Test Status: ✅ PASSED

📊 Full Report

Total Passed Failed Flaky Skipped
222 222 0 0 0

😟 No changes in tests. 😕

Bundle Size: ✅

Current: 65.88 MB | Main: 65.88 MB
Diff: 2.42 KB (-0.00%)

✅ Bundle size unchanged.

ℹ️ CI Information
  • Test recordings for failed tests are available in the full report.
  • Bundle size is measured for the entire 'dist' directory.
  • 📊 indicates links to detailed reports.
  • 🔺 indicates increase, 🔽 decrease, and ✅ no change in bundle size.

@astandrik
Copy link
Collaborator

Please provide a brief explanation of why /meta/cluster is no longer required

@artemmufazalov artemmufazalov force-pushed the 1613-remove-meta-cluster branch from 63c0b28 to 2ee064e Compare December 16, 2024 14:21
Comment on lines -40 to -44
Balancer?: string; // additional
Solomon?: string; // additional

TraceView?: TTraceView;
TraceCheck?: TTraceCheck;
Copy link
Member Author

Choose a reason for hiding this comment

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

These fields aren't actually present in viewer/cluster response, they were added while parsing meta/cluster

@@ -9,7 +8,6 @@ import type {TTraceCheck, TTraceView} from './trace';
*/
export interface TClusterInfoV1 {
error?: string;
Name?: string;
Copy link
Member Author

Choose a reason for hiding this comment

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

There is no Name in viewer/cluster response anymore

@artemmufazalov artemmufazalov added this pull request to the merge queue Dec 17, 2024
Merged via the queue into main with commit 6abc16e Dec 17, 2024
7 checks passed
@artemmufazalov artemmufazalov deleted the 1613-remove-meta-cluster branch December 17, 2024 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

disable usage of meta/cluster handler
2 participants