Code Monkey home page Code Monkey logo

Comments (3)

westandskif avatar westandskif commented on June 1, 2024

hi @Keerthivasan472
quoting the docs from README:

rate-mirrors stdin -- takes mirrors from stdin

Each string should comply with one of two supported formats:
tab-separated url and country (either name or country code)
tab-separated country and url -- just in case :)
url

So you need to cat your file and preprocess its content with sed first (to make it comply with the rules above) before you feed it to rate-mirrors

Answers to your questions:

  1. eps is sigma to mean speed ratio (the lower it is, the lower are errors in speed measurements); eps checks defines number of data points to collect to start calculating the epsilon we just discussed. Default values should work fine

  2. to be honest you don't need it -- because this iterative algorithm works best when you allow it to work, starting from the farthest country you can ping). If you just start from India, the tool can stop after few steps because speeds are worsening (however there's a chance that on step#4 you'd found a perfect mirror). So as a rule of thumb, the further you start, the better results are.
    However, if you still want it, here it is: rate-mirrors --entry-country=IN stdin

  3. can you please clarify the question about avoiding timeout errors? timeouted mirrors are just excluded from results.
    As for rsync, there's no support at the moment (as far as I know http & https protocols are the only pacman-native protocols).

from rate-mirrors.

Keerthivasan472 avatar Keerthivasan472 commented on June 1, 2024

Reply @westandskif

  1. if i use fastest mirror even if the update is huge (ex:8gb) sometime aur helpers cause time out error to fetch packages at particular mirror

next,please give example format or file for stdin and make a blog or youtube video and explore the full potential of rate-mirrors
it will help different arch-distro users

please provide sample file to feed in stdin or show how the content look like in mirrorlist file

from rate-mirrors.

westandskif avatar westandskif commented on June 1, 2024

@Keerthivasan472

re: AUR timeouts
AUR isn't the source of your AUR package updates, neither mirrors are. So if you are installing something from AUR, please check out the PKGBUILD file of a package on AUR, to see the source it is downloading from.

I already shared that the file has to be the list of links or tab separated links and country codes.
Links are what your --path-to-test is to be joined to for testing.

AT\thttp://mirror.easyname.at/blackarch/
https://mirrors.fosshost.org/blackarch/

So you can mix country-annotated links with unlabeled ones.

re: blog or videos: to cut it short - contributions are welcome!
a more verbose reply: I believe this isn't how open source works:) you can't just send a list of things in an imperative manner to have them done for you.
I'm comfortable with coding and improving README where needed and that's it for now. if you are willing to contribute by making vids or writing a blog post, please, do

from rate-mirrors.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.