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

Change SharedArbitrator extra config string based #10685

Closed
wants to merge 1 commit into from

Conversation

tanjialiang
Copy link
Contributor

Switch to string based config for extra configs in shared arbitrator for better consistency and fewer back and forth conversions.

@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 Aug 7, 2024
Copy link

netlify bot commented Aug 7, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 5406019
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/66bd85c220004600085cc018

@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 arb_config_2 branch 2 times, most recently from a16ec0a to 62cd2dc Compare August 7, 2024 19:30
Copy link
Contributor

@xiaoxmeng xiaoxmeng left a comment

Choose a reason for hiding this comment

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

@tanjialiang thanks for the refactor % nits.

PETABYTE
};

double toBytesPerCapacityUnit(CapacityUnit unit);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add unit tests for these? Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I can


#include "velox/common/base/ConfigUtil.h"

namespace facebook::velox::config {
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume there is no functional change? Why not put this into velox/common/config/config.h?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is a completely different ConfigBase class that is only used by dwrf and has nothing to do with this. But it will be nice to do some followup cleanup for our configs.

extraArbitratorConfigs["memory-pool-reserved-capacity"] =
folly::to<std::string>(options.memoryPoolReservedCapacity);
folly::to<std::string>(options.memoryPoolReservedCapacity) + "B";
Copy link
Contributor

Choose a reason for hiding this comment

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

We should use utility for this conversion instead of attaching a unit string which seems to be a bit hack. Do we already have such utilities in Prestissimo or Velox? thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is temporary. It will be removed very soon

@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.

Copy link
Contributor

@xiaoxmeng xiaoxmeng left a comment

Choose a reason for hiding this comment

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

@tanjialiang LGTM. Thanks!

@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.

…10685)

Summary:
Switch to string based config for extra configs in shared arbitrator for better consistency and fewer back and forth conversions.

Pull Request resolved: facebookincubator#10685

Reviewed By: xiaoxmeng

Differential Revision: D60920773

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

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

@facebook-github-bot
Copy link
Contributor

@tanjialiang merged this pull request in fe9605f.

Copy link

Conbench analyzed the 1 benchmark run on commit fe9605f7.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

tanjialiang added a commit to tanjialiang/velox-1 that referenced this pull request Aug 16, 2024
…10685)

Summary:
Switch to string based config for extra configs in shared arbitrator for better consistency and fewer back and forth conversions.

Pull Request resolved: facebookincubator#10685

Reviewed By: xiaoxmeng

Differential Revision: D60920773

Pulled By: tanjialiang

fbshipit-source-id: 215d4e45d89c0b319f883a7c4b1ed27abd1c3e9f
tanjialiang added a commit to tanjialiang/velox-1 that referenced this pull request Aug 16, 2024
…10685)

Summary:
Switch to string based config for extra configs in shared arbitrator for better consistency and fewer back and forth conversions.

Pull Request resolved: facebookincubator#10685

Reviewed By: xiaoxmeng

Differential Revision: D60920773

Pulled By: tanjialiang

fbshipit-source-id: 215d4e45d89c0b319f883a7c4b1ed27abd1c3e9f
tanjialiang added a commit to tanjialiang/velox-1 that referenced this pull request Aug 16, 2024
Summary:
Switch to string based config for extra configs in shared arbitrator for better consistency and fewer back and forth conversions.

Pull Request resolved: facebookincubator#10685

Reviewed By: xiaoxmeng

Differential Revision: D60920773

Pulled By: tanjialiang

fbshipit-source-id: 215d4e45d89c0b319f883a7c4b1ed27abd1c3e9f
tanjialiang added a commit to tanjialiang/velox-1 that referenced this pull request Aug 16, 2024
Summary:
Switch to string based config for extra configs in shared arbitrator for better consistency and fewer back and forth conversions.

Pull Request resolved: facebookincubator#10685

Reviewed By: xiaoxmeng

Differential Revision: D60920773

Pulled By: tanjialiang

fbshipit-source-id: 215d4e45d89c0b319f883a7c4b1ed27abd1c3e9f
tanjialiang added a commit to tanjialiang/velox-1 that referenced this pull request Aug 16, 2024
Summary:
Switch to string based config for extra configs in shared arbitrator for better consistency and fewer back and forth conversions.

Pull Request resolved: facebookincubator#10685

Reviewed By: xiaoxmeng

Differential Revision: D60920773

Pulled By: tanjialiang

fbshipit-source-id: 215d4e45d89c0b319f883a7c4b1ed27abd1c3e9f
tanjialiang added a commit to tanjialiang/velox-1 that referenced this pull request Aug 16, 2024
Summary:
Switch to string based config for extra configs in shared arbitrator for better consistency and fewer back and forth conversions.

Pull Request resolved: facebookincubator#10685

Reviewed By: xiaoxmeng

Differential Revision: D60920773

Pulled By: tanjialiang

fbshipit-source-id: 215d4e45d89c0b319f883a7c4b1ed27abd1c3e9f
tanjialiang added a commit to tanjialiang/velox-1 that referenced this pull request Aug 16, 2024
Summary:
Switch to string based config for extra configs in shared arbitrator for better consistency and fewer back and forth conversions.

Pull Request resolved: facebookincubator#10685

Reviewed By: xiaoxmeng

Differential Revision: D60920773

Pulled By: tanjialiang

fbshipit-source-id: 215d4e45d89c0b319f883a7c4b1ed27abd1c3e9f
tanjialiang added a commit to tanjialiang/velox-1 that referenced this pull request Aug 16, 2024
Summary:
Switch to string based config for extra configs in shared arbitrator for better consistency and fewer back and forth conversions.

Pull Request resolved: facebookincubator#10685

Reviewed By: xiaoxmeng

Differential Revision: D60920773

Pulled By: tanjialiang

fbshipit-source-id: 215d4e45d89c0b319f883a7c4b1ed27abd1c3e9f
tanjialiang added a commit to tanjialiang/velox-1 that referenced this pull request Aug 16, 2024
Summary:
Switch to string based config for extra configs in shared arbitrator for better consistency and fewer back and forth conversions.

Pull Request resolved: facebookincubator#10685

Reviewed By: xiaoxmeng

Differential Revision: D60920773

Pulled By: tanjialiang

fbshipit-source-id: 215d4e45d89c0b319f883a7c4b1ed27abd1c3e9f
tanjialiang added a commit to tanjialiang/velox-1 that referenced this pull request Aug 17, 2024
Summary:
Switch to string based config for extra configs in shared arbitrator for better consistency and fewer back and forth conversions.

Pull Request resolved: facebookincubator#10685

Reviewed By: xiaoxmeng

Differential Revision: D60920773

Pulled By: tanjialiang

fbshipit-source-id: 215d4e45d89c0b319f883a7c4b1ed27abd1c3e9f
tanjialiang added a commit to tanjialiang/velox-1 that referenced this pull request Aug 17, 2024
Summary:
Switch to string based config for extra configs in shared arbitrator for better consistency and fewer back and forth conversions.

Pull Request resolved: facebookincubator#10685

Reviewed By: xiaoxmeng

Differential Revision: D60920773

Pulled By: tanjialiang

fbshipit-source-id: 215d4e45d89c0b319f883a7c4b1ed27abd1c3e9f
tanjialiang added a commit to tanjialiang/velox-1 that referenced this pull request Aug 18, 2024
Summary:
Switch to string based config for extra configs in shared arbitrator for better consistency and fewer back and forth conversions.

Pull Request resolved: facebookincubator#10685

Reviewed By: xiaoxmeng

Differential Revision: D60920773

Pulled By: tanjialiang

fbshipit-source-id: 215d4e45d89c0b319f883a7c4b1ed27abd1c3e9f
tanjialiang added a commit to tanjialiang/velox-1 that referenced this pull request Aug 18, 2024
Summary:
Switch to string based config for extra configs in shared arbitrator for better consistency and fewer back and forth conversions.

Pull Request resolved: facebookincubator#10685

Reviewed By: xiaoxmeng

Differential Revision: D60920773

Pulled By: tanjialiang

fbshipit-source-id: 215d4e45d89c0b319f883a7c4b1ed27abd1c3e9f
tanjialiang added a commit to tanjialiang/velox-1 that referenced this pull request Aug 18, 2024
Summary:
Switch to string based config for extra configs in shared arbitrator for better consistency and fewer back and forth conversions.

Pull Request resolved: facebookincubator#10685

Reviewed By: xiaoxmeng

Differential Revision: D60920773

Pulled By: tanjialiang

fbshipit-source-id: 215d4e45d89c0b319f883a7c4b1ed27abd1c3e9f
tanjialiang added a commit to tanjialiang/velox-1 that referenced this pull request Aug 18, 2024
Summary:
Switch to string based config for extra configs in shared arbitrator for better consistency and fewer back and forth conversions.

Pull Request resolved: facebookincubator#10685

Reviewed By: xiaoxmeng

Differential Revision: D60920773

Pulled By: tanjialiang

fbshipit-source-id: 215d4e45d89c0b319f883a7c4b1ed27abd1c3e9f
tanjialiang added a commit to tanjialiang/velox-1 that referenced this pull request Aug 18, 2024
Summary:
Switch to string based config for extra configs in shared arbitrator for better consistency and fewer back and forth conversions.

Pull Request resolved: facebookincubator#10685

Reviewed By: xiaoxmeng

Differential Revision: D60920773

Pulled By: tanjialiang

fbshipit-source-id: 215d4e45d89c0b319f883a7c4b1ed27abd1c3e9f
tanjialiang added a commit to tanjialiang/velox-1 that referenced this pull request Aug 19, 2024
Summary:
Switch to string based config for extra configs in shared arbitrator for better consistency and fewer back and forth conversions.

Pull Request resolved: facebookincubator#10685

Reviewed By: xiaoxmeng

Differential Revision: D60920773

Pulled By: tanjialiang

fbshipit-source-id: 215d4e45d89c0b319f883a7c4b1ed27abd1c3e9f
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 Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants