Comments (8)
In my humble opinion, having a distro specific config would be interesting. And what would be even more interesting would be to have a /etc/zypp/zypp.conf.d/
config drop-in directory.
For example, we have now Thorsten's os-update that updates the system, once a day, in the background. We already had YaST's capability to do the same, before. Those kind of software/scripts could ship a drop-in config file with careful tweaks to better suit the use of their tools.
So, for typical scenarios, even for those who don't automate their update/upgrade process, I can't see why Zypper would need to do so many repo metadata checks/refreshes throughout the day, since many people won't even install/update something every single day. If someone could shed a light on this subject, I'd appreciate.
from zypper.
No, zypper does not expire the metadata. If autorefresh
is turned on for a repo, we just check whether the repos repodata/repomd.xml
has changed. But we're aware that in some regions (incl. Australia) the slow connection to download.opensuse.org matters more then the few Kb we're downloading. We're working on it together with the team maintaining our mirror infrastructure.
libzypp-17.31.4 (on TW, soon on Leap15 too) already contains a few patches which may mitigate the issues. It uses a geoip cache, so we can directly connect to the mirrorsites without a roundtrip to d.o.o. Unfortunately there are a few files (repomd.xml and it's signature are amongst them) which have to be taken from d.o.o directly. So there is still room for further enhancements.
Anyhow, /etc/zypp/zypp.conf
defines the value for repo.refresh.delay
. The default is 10 minutes. This is the time that has to pass before we do another autorefresh
check at all. You can increase this time or turn off autorefresh for the repos and call zypper ref
explicitly to check and get new data.
from zypper.
I'm extremely aware of the issues in Australia - I am one of the people pushing for improvements due to the (generally horrible) experience I have with zypper. I am part of that "mirror team". So I'm very well aware of what's going on.
Even with those changes, geoip and others, this issue exists. Network latency is still a problem and the timeout is too aggressive. Those autorefresh checks make zypper lag extremely badly on any command innvocation.
It needs to be increased to something sensible, because we are not publishing new metadata every 10 minutes for tumbleweed. Unless I'm mistaken, snapshots are daily.
from zypper.
We don't have distribution agnostic defaults. Ideally the repos would suggest a reasonable refresh default in their metadata, or maybe we can introduce a setting per repo. So update repos can be checked more often than core repos.
Until that we have repo.refresh.delay
.
from zypper.
Yes, I know we don't have that capability in our metadata, but we also don't need it. The majority of cases are users who want to install or update their software once a day. We only release tumbleweed snapshots/updates once a day. So why do we need a check every 15 minutes? The only thing that needs that would be developers testing things on smaller OBS repos, and I'm sure they can work out how to run "zypper refresh".
Why are we optimising our refresh time outs for an edge case, while making our default user experience poor for the overwhelming majority of people?
Setting repo.refresh.delay to 8 hours would already be enough to ensure updates are checked for a few times a day, without trashing user experience.
from zypper.
The code does not run on TW only and SLE releases far more often. You can increase the config value if it suits better to you. And we can talk about a supporting a distro specific config, if TW want's to maintain it's own.
from zypper.
The problem is that this default is too much for all users not just me. This needs a resolution that isn't just "go away, edit your own config".
from zypper.
Related Issues (20)
- Make codebase build clean on SLL9 (jezypp) HOT 2
- Explain outdatedness of repos HOT 1
- zypper writes logs relative to the --root directory and not in the default location HOT 4
- Rename branch "SuSE-RES-9-Branch" to "SuSE-SLL-9-Branch" HOT 1
- add option to explain "why" HOT 2
- zypper does not have an equivalent to "dnf whatprovides" HOT 8
- RFE: Make table style selection a config option HOT 7
- Problem "Digest verification failed" HOT 6
- zypper failed when special characters in the package name HOT 5
- Support urlencoded URL's HOT 3
- List dependency seperately when package NAME is supplied with * HOT 2
- Zypper doesn't show true mirror which has invalid content HOT 5
- Inconsistent expected behaviour of zypper in within docker build HOT 5
- zypper repo priorities by default dont allow repo demotion HOT 7
- Unable to install protonmail bridge due to missing dependencies HOT 2
- Zyper failed to install software HOT 1
- [Noob Question] Zypper syncing with repos is really slow
- No download progress indicator (when installing RPM via external URI). HOT 1
- [Feature Request] History rollback
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zypper.