Project

Profile

Help

Pulp3 Plugin Brainstorming » History » Sprint/Milestone 6

dkliban@redhat.com, 08/21/2017 06:37 PM

1 1 bmbouter
-----
2
3
Content Unit Creator - Downloads and creates objects
4
5 6 dkliban@redhat.com
  - Process content units in slices to limit the number of in-memory objects
6
  - Determine which content units are already present in Pulp
7
  - For immediate download policy, determine which artifacts in a slice are already present in Pulp.
8
  - Create Deferred Artifacts
9
  - Create Content Artifacts 
10
  - Create new Content units not already in Pulp
11
  - For immediate download policy, download all artifacts for each content unit. 
12
  - For immediate download policy, save Content Artifacts, Deferred Artifacts, and Artifacts to the db after downloading all artifacts.
13
  - Save Content unit to the db.
14 4 dkliban@redhat.com
  - Handles race conditions for db around object creation
15 1 bmbouter
  - Transactional support around unit creation to ensure always creating a complete content unit or none
16
17
open questions: should this associate each unit as its made?
18
19
-----
20
21
Content Unit Downloader - Parallelized downloads, but it emits a content unit only when all files are downloaded
22
23
  - manages the asyncio loop for you
24
  - abstracts the collecting of downloads for a given content unit
25
  - driven by a simple loop
26
27
-----
28
29
Concurrent Downloader - Downloads any number of artifacts in parallel
30
31
  - provides digest and size validation
32
  - yields a file that is written to a temp area and all digests which were computed during download
33
  - you provide the asyncio loop
34
  - constrains the number of connections
35
  - share resources such as sessions,connection pools and auth tokens
36
37
-----
38
39 3 bmbouter
Synchronous Downloader - download a single file synchronously
40 1 bmbouter
41
  - blocking call so one download at a time
42
  - provides digest and size validation
43
  - yields a file that is written to a temp area and all digests which were computed during download
44
45
-----