Code Monkey home page Code Monkey logo

Comments (3)

etix avatar etix commented on May 12, 2024

The easiest way I see to avoid this edge case would be to check if the last successful mirror sync < ScanInterval then enable the mirror without prior checking (like it does now), else wait for a successful scan before re-enabling the mirror.

What do you think?

The problem that can arise is that if mirrorbits was stopped or the server looses its connectivity for quite some time (basically > ScanInterval), it will be unable to serve files at full capacity right away when the connectivity gets back because it needs to wait for a scan of all mirrors. But this new edge case can be mitigated with mirrorbits cluster as long as the other node is able to access and scan the mirrors.

from mirrorbits.

chaunbot avatar chaunbot commented on May 12, 2024

I think there could be potential issues with a mirror being enabled out of sync.

Without a cluster, i can see the need for mirrorbits to enable everything upon connectivity being restored.

If a server is offline for X amount of time, i think MB should force a rescan before it enables. Especially if the server had some sort of an outage, it could be way out of sync. Kodi has some 22,000 + files.

If someone used MB for a repo like ubuntu there's a huge amount of files constantly changing.

I know a lot of mirrors are really slow to sync so it may cause a delay for those servers being enabled.

only a suggestion. : ]

from mirrorbits.

etix avatar etix commented on May 12, 2024

Why closing it? It's definitely on my radar.

from mirrorbits.

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.