Project

Profile

Help

Story #6055

closed

Story #5113: Sync optimizations

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

Added by ttereshc almost 5 years ago. Updated over 4 years 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.

Actions #1

Updated by CodeHeeler almost 5 years ago

  • Groomed changed from No to Yes
Actions #2

Updated by CodeHeeler almost 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to CodeHeeler
Actions #3

Updated by CodeHeeler almost 5 years ago

  • Description updated (diff)
  • Sprint set to Sprint 66
Actions #4

Updated by CodeHeeler over 4 years ago

  • Status changed from ASSIGNED to POST
Actions #5

Updated by rchan over 4 years ago

  • Sprint changed from Sprint 66 to Sprint 67
Actions #6

Updated by ttereshc over 4 years ago

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

Updated by rchan over 4 years ago

  • Sprint changed from Sprint 67 to Sprint 68

Added by CodeHeeler over 4 years ago

Revision b1fad636 | View on GitHub

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

Actions #8

Updated by CodeHeeler over 4 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #9

Updated by dalley over 4 years ago

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

Updated by dalley over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF