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

PBM-1484 GCP SDK #1096

Merged
merged 66 commits into from
Feb 24, 2025
Merged

PBM-1484 GCP SDK #1096

merged 66 commits into from
Feb 24, 2025

Conversation

veceraj
Copy link
Collaborator

@veceraj veceraj commented Feb 19, 2025

PR for https://perconadev.atlassian.net/browse/PBM-1484

Migration from AWS SDK v1 to v2 introduced unexpected issues with Google Cloud Storage.
This feature implements the Google Cloud Storage package.

Credentials

Example storage config:

storage:
  type: gcs
  gcs:
    bucket: pbm-bcp
    prefix: pbm/test
    credentials:
      projectId: psychic-mason-44...
      privateKey: -----BEGIN PRIVATE KEY-----\n ...

ChunkSize

storage.gcs.chunkSize (optional) specified in bytes (https://pkg.go.dev/cloud.google.com/go/storage#Writer)

  • defaults to nil - the GCS default is 16MB
  • it is possible to specify 0
    • From GCS docs: "If ChunkSize is set to zero, chunking will be disabled and the object will be uploaded in a single request without the use of a buffer."
  • (Note: s3 has uploadPartSize, there is no equivalent to maxUploadParts)

@veceraj veceraj marked this pull request as ready for review February 19, 2025 14:43
Copy link
Member

@boris-ilijic boris-ilijic left a comment

Choose a reason for hiding this comment

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

I am fine with this PR, it's simple and clean. Still we need to do some more improvements, please see the comments.

@boris-ilijic boris-ilijic self-requested a review February 24, 2025 14:48
@veceraj veceraj merged commit 116d50e into dev Feb 24, 2025
20 of 21 checks passed
@veceraj veceraj deleted the PBM-1484-GCP-SDK branch February 24, 2025 16:48
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.

2 participants