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

Allow list syntax for exchangeManager baseDir targets #284

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

laimis9133
Copy link
Contributor

This change will allow using list syntax of exchangeManager base-directories which is more common and understandable with Helm charts.

Trino allows specifying multiple spooling targets for exchageManager separated by comma when using main cloud providers or any S3 compatible protocol (example: s3://bucket1,s3://bucket2,s3://bucket3). With current trinodb/charts we have to specify them within values as a single line for baseDir:

server:
  exchangeManager:
    name: "filesystem"
    baseDir: "s3://exchange-spooling-bucket-1,s3://exchange-spooling-bucket-2"

Which translates to:

  exchange-manager.properties: |
    exchange-manager.name=filesystem
    exchange.base-directories=s3://exchange-spooling-bucket-1,s3://exchange-spooling-bucket-2

This change allows a more clean listing within values:

server:
  exchangeManager:
    name: "filesystem"
    baseDir:
    - "s3://exchange-spooling-bucket-1"
    - "s3://exchange-spooling-bucket-2"

Which translates to the same:

  exchange-manager.properties: |
    exchange-manager.name=filesystem
    exchange.base-directories=s3://exchange-spooling-bucket-1,s3://exchange-spooling-bucket-2

It will not break any existing listings as stating them the same way as before in a single line will result in exchange.base-directories within a single line.
Documentation for setting up fault tolerant execution: https://trino.io/docs/current/admin/fault-tolerant-execution.html

Copy link

cla-bot bot commented Jan 8, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

Copy link
Member

@nineinchnick nineinchnick left a comment

Choose a reason for hiding this comment

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

Excellent PR description, thank you!

It's good to go, but we can also improve the docs for this.

Copy link

cla-bot bot commented Jan 9, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

Copy link
Member

@nineinchnick nineinchnick left a comment

Choose a reason for hiding this comment

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

The commit message looks AI generated and is too verbose. Can you make it shorter? You can squash both commits.

Copy link

cla-bot bot commented Jan 9, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@nineinchnick
Copy link
Member

Please squash both commits. Normally I'd try to do that, since I see Maintainers are allowed to edit this pull request. is enabled, but you opened the PR from your main branch, which is most likely protected.

I'll merge this as soon as the CLA clears out.

This change will allow using list syntax of exchangeManager base-directories which is more common and understandable with Helm charts.

Trino allows specifying multiple spooling targets for exchageManager separated by commas when using main cloud providers or any S3 compatible protocol (example: s3://bucket1,s3://bucket2,s3://bucket3). With current trinodb/chart we have to specify them within values as a single line for baseDir:

server:
  exchangeManager:
    name: "filesystem"
    baseDir: "s3://exchange-spooling-bucket-1,s3://exchange-spooling-bucket-2"

Which translates to:

  exchange-manager.properties: |
    exchange-manager.name=filesystem
    exchange.base-directories=s3://exchange-spooling-bucket-1,s3://exchange-spooling-bucket-2

This change allows a more clean listing within values:

server:
  exchangeManager:
    name: "filesystem"
    baseDir:
    - "s3://exchange-spooling-bucket-1"
    - "s3://exchange-spooling-bucket-2"

Which translates to the same:

  exchange-manager.properties: |
    exchange-manager.name=filesystem
    exchange.base-directories=s3://exchange-spooling-bucket-1,s3://exchange-spooling-bucket-2

It will not break any existing listings as stating them the same way as before in a single line will result in exchange.base-directories within a single line.
Documentation for setting up fault tolerant execution: https://trino.io/docs/current/admin/fault-tolerant-execution.html

Chart documentation has been also updated. Default usage example has been changed to a listed view with a minor clean up of the overall description.
Copy link

cla-bot bot commented Jan 10, 2025

Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla

@laimis9133
Copy link
Contributor Author

Done, thanks!
CLA sent over few days ago.

@nineinchnick nineinchnick added the enhancement New feature or request label Jan 14, 2025
@laimis9133
Copy link
Contributor Author

Hi @nineinchnick, CLA should be cleared now

@nineinchnick
Copy link
Member

@cla-bot check

@cla-bot cla-bot bot added the cla-signed label Jan 28, 2025
Copy link

cla-bot bot commented Jan 28, 2025

The cla-bot has been summoned, and re-checked this pull request!

@nineinchnick nineinchnick merged commit 1a9cb3b into trinodb:main Jan 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants