Project

Profile

Help

Story #6055

Story #5113: Sync optimizations

As a user, my sync is not operational if there are no changes

Added by ttereshc over 1 year ago. Updated 11 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Sprint 68
Quarter:

Description

Sync should not proceed further than downloading and parsing of repomd.xml if:
- revision number in repomd.xml is equal to or older than the one from the last sync
- and remote configuration hasn't changed since last sync
- and no repo versions has been created since last sync

A one-time option optimize should be provided and will be True by default. When set to False, it disables all the optimisations at sync time and full sync is performed no matter what.

Proposal

On the RpmRepository model store:
- revision number
- remote id
- pulp_last_updated of a remote
- repo version number of last sync

Check that remote or repo version hasn't changed since last sync.
After that download repomd.xml and check the revision number.

In case of optimize=False, skip all the checks and let the sync run.

Associated revisions

Revision b1fad636 View on GitHub
Added by CodeHeeler over 1 year ago

Optimize sync to be non-operational if no changes

Adds optimize flag and related logic and docs

fixes #6055 https://pulp.plan.io/issues/6055

History

#1 Updated by CodeHeeler over 1 year ago

  • Groomed changed from No to Yes

#2 Updated by CodeHeeler over 1 year ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to CodeHeeler

#3 Updated by CodeHeeler over 1 year ago

  • Description updated (diff)
  • Sprint set to Sprint 66

#4 Updated by CodeHeeler over 1 year ago

  • Status changed from ASSIGNED to POST

#5 Updated by rchan over 1 year ago

  • Sprint changed from Sprint 66 to Sprint 67

#6 Updated by ttereshc over 1 year ago

  • Sprint/Milestone set to Pulp 3.x RPM (Katello 3.16)

#7 Updated by rchan over 1 year ago

  • Sprint changed from Sprint 67 to Sprint 68

#8 Updated by CodeHeeler over 1 year ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#9 Updated by dalley about 1 year ago

  • Sprint/Milestone changed from Pulp 3.x RPM (Katello 3.16) to Pulp RPM 3.3.0

#10 Updated by dalley about 1 year ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF