8000 Set up sync for dedicated autoload transfer job by cristinaleonr · Pull Request #71 · m-lab/gcp-config · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Set up sync for dedicated autoload transfer job #71

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 2 commits into from
Apr 26, 2023

Conversation

cristinaleonr
Copy link
Collaborator
@cristinaleonr cristinaleonr commented Apr 26, 2023

This PR sets up a sync for a dedicated transfer job of autoloaded data.

The job runs hourly. It only transfers data under the "autoload" prefix from the pusher bucket to the archive bucket.

https://pantheon.corp.google.com/transfer/jobs/transferJobs%2F10435470182208531695/configuration?project=mlab-sandbox


This change is Reviewable

Copy link
Contributor
@stephen-soltesz stephen-soltesz left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 1 approvals obtained (waiting on @cristinaleonr)


daily-archive-transfers.yaml line 49 at r1 (raw file):

    'stctl', '-gcs.source=pusher-$PROJECT_ID',
             '-gcs.target=archive-$PROJECT_ID',
             '-time=00:00:00',

I see the configuration in GCP console says "Hourly", but I expected these flags to only apply once per day at UTC midnight, 00:00:00.

What am I missing?

Copy link
Contributor
@stephen-soltesz stephen-soltesz left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 1 approvals obtained (waiting on @cristinaleonr)


daily-archive-transfers.yaml line 49 at r1 (raw file):

Previously, stephen-soltesz (Stephen Soltesz) wrote…

I see the configuration in GCP console says "Hourly", but I expected these flags to only apply once per day at UTC midnight, 00:00:00.

What am I missing?

It sounds like stctl does not currently support "hourly" frequency options. But, this setting is configurable after a transfer job is created in the cloud console web UI.

So, I proposed that we keep this declared configuration and manually update the frequency setting.

Please add a TODO to add this functionality natively, and a note warning that this declaration is not identical to what is in the corresponding GCP config.

Copy link
Collaborator Author
@cristinaleonr cristinaleonr left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 1 approvals obtained (waiting on @stephen-soltesz)


daily-archive-transfers.yaml line 49 at r1 (raw file):

Previously, stephen-soltesz (Stephen Soltesz) wrote…

It sounds like stctl does not currently support "hourly" frequency options. But, this setting is configurable after a transfer job is created in the cloud console web UI.

So, I proposed that we keep this declared configuration and manually update the frequency setting.

Please add a TODO to add this functionality natively, and a note warning that this declaration is not identical to what is in the corresponding GCP config.

It created this job, which I edited to run hourly.

I deleted the old job. I don't know why it still shows up in the UI when you click the link. If you try to make any updates, it says it has been deleted.

I added the comment with the NOTE and the TODO.

Copy link
Contributor
@stephen-soltesz stephen-soltesz left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r2.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained


daily-archive-transfers.yaml line 49 at r1 (raw file):

Previously, cristinaleonr (Cristina Leon) wrote…

It created this job, which I edited to run hourly.

I deleted the old job. I don't know why it still shows up in the UI when you click the link. If you try to make any updates, it says it has been deleted.

I added the comment with the NOTE and the TODO.

Thank you.

@cristinaleonr cristinaleonr merged commit 9639104 into main Apr 26, 2023
@cristinaleonr cristinaleonr deleted the sandbox-cristinaleon-autoload-job branch April 26, 2023 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0