Giter VIP home page Giter VIP logo

Comments (3)

webysther avatar webysther commented on May 25, 2024

yes, the code is optmized to sync until every 1 sec.

Add a cronjob with this command:

while sleep 1; do php bin/mirror create --no-progress; done

This code wait 1 sec and run update of metadata. This snippet stay on docker version

from packagist-mirror.

varunsridharan avatar varunsridharan commented on May 25, 2024

ok thanks. lets say i created a new composer package.
https://packagist.org/packages/varunsridahran/testing

And i push an update to dev-master and in few sec i am keep on trying to get the updated data in my mirror but it takes around 1min to update my mirror even if i keep on trying php bin/mirror create and also my local composer takes around 3mins to update that package.

from packagist-mirror.

webysther avatar webysther commented on May 25, 2024

Sometimes, if the main mirror has a big update the mirror takes a litle bit more:

  • 1 min to works with composer on main mirror
  • 1 sec to 1 min to update on local mirror if you use using while sleep 1

The best way is using webhooks, today the main mirror dont support send webhooks of updated packages. Using this method the time can be less than 10 sec to update on all.

To make you mirror shine like a diamond with great performance, use a server with a minimum 2GB of RAM:

  • 128MB System
  • 256MB Max usage PHP (~15MB)
  • 1GB to keep almost all files on memory cache of OS.

from packagist-mirror.

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.