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

colossus: sync - longer default interval #4924

Merged

Conversation

mnaamani
Copy link
Contributor

@mnaamani mnaamani commented Oct 10, 2023

As per recommendation in #4921 (comment)

  • Changed default syncInterval to 20min if not specified on commandline
  • Do not wait initial interval before starting sync
  • Add another interval defaulting to 3min on sync failure

This is not an urgent update since it is really only changing the default, but it would be good to confirm with Storage lead if it does indeed help storage operators overall.

@mnaamani mnaamani removed the request for review from bwhm October 24, 2023 05:35
@mnaamani mnaamani mentioned this pull request Nov 22, 2023
Copy link
Contributor

@zeeshanakram3 zeeshanakram3 left a comment

Choose a reason for hiding this comment

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

Looks good, just one small comment. And for the delay, I repeatedly missed reviewing this.

@@ -284,12 +290,12 @@ async function runSyncWithInterval(
tempDirectory: string,
syncWorkersNumber: number,
syncWorkersTimeout: number,
syncIntervalMinutes: number
syncIntervalMinutes: number,
syncRetryIntervalMinutes: number
) {
const sleepInteval = syncIntervalMinutes * 60 * 1000
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const sleepInteval = syncIntervalMinutes * 60 * 1000
const sleepInterval = syncIntervalMinutes * 60 * 1000

@mnaamani
Copy link
Contributor Author

Looks good, just one small comment. And for the delay, I repeatedly missed reviewing this.

Thanks for review. Fixed the typo in c25416d

Copy link
Contributor

@zeeshanakram3 zeeshanakram3 left a comment

Choose a reason for hiding this comment

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

LGTM

@mnaamani mnaamani merged commit 95dabab into Joystream:master Dec 1, 2023
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants