Skip to content
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

misc: Add partitioned writer count metrics to hive data sink #12410

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tanjialiang
Copy link
Contributor

@tanjialiang tanjialiang commented Feb 20, 2025

large number of partitioned writers may cause issues like large number of open files and memory consumption. Adding this runtime metrics to disclose this critical stats for more efficient debugging related issues.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 20, 2025
Copy link

netlify bot commented Feb 20, 2025

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 4520862
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/67b7d88f5760cf000805d38e

@facebook-github-bot
Copy link
Contributor

@tanjialiang has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@tanjialiang tanjialiang force-pushed the p_writer_metric branch 2 times, most recently from 88edacd to 70aced7 Compare February 20, 2025 20:12
@facebook-github-bot
Copy link
Contributor

@tanjialiang has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@tanjialiang has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

tanjialiang added a commit to tanjialiang/velox-1 that referenced this pull request Feb 20, 2025
…kincubator#12410)

Summary:
large number of partitioned writers may cause issues like large number of open files and memory consumption. Adding this runtime metrics to disclose this critical stats for more efficient debugging related issues.


Reviewed By: bikramSingh91

Differential Revision: D69936854

Pulled By: tanjialiang
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D69936854

@@ -806,6 +806,8 @@ uint32_t HiveDataSink::appendWriter(const HiveWriterId& id) {
.stats = ioStats_.back().get(),
}),
options);
addThreadLocalRuntimeStat(
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we report once for each table write operator so we can see the distribution better?

@facebook-github-bot
Copy link
Contributor

@tanjialiang has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants