Allow setting a priority for remotes

Open
#316 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Start by tracing how remotes are created or modified and how package requests search available remotes. Define and implement priority ordering so lookup stops at the highest-priority remote containing the package, then verify the behavior with coverage for remote configuration and package retrieval.

Written by the indexing model from the issue text.

Description

Feature Triage-Needed

Is your feature request related to a problem? Please describe.
I have the following scenario:

Image

The Pulp instance should be configured to cache both Registry 1 and Registry 2.

The Pulp instance should prioritize the direct pull from Registry 1 rather than the pull through Registry 2, because Registry 2 is on cloud and there are associated costs to traffic.

The architecture of the scenario cannot be modified, hence the need of setting the priority among remotes.

Describe the solution you'd like
When creating/modifying a remote, there should be an option to set the priority of the remote.

When asking the Pulp instance for a package that is not in a repository, it should search the package through the available remotes by ordering them by priority, stopping at the first repository with the package that has the highest priority.

Describe alternatives you've considered
Modifying the scenario is not allowed, so there are no alternatives.

Dominant language
Python
Stars
5
Forks
24
Avg merge
1d 6h
Merged PRs (30d)
39

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pulp/pulp_maven

All issues in pulp/pulp_maven

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.