Comments (3)
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.
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.
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)
- Services lose get parameters after mirroring HOT 1
- Add FOSSA
- Update mirroring code to our official mirror code HOT 10
- support composer v2? HOT 1
- packagist.hostuj.to down HOT 1
- "do not match its signature" HOT 13
- Will it mirror zip files of packages? HOT 1
- A
- A
- Error - Impossible to create the root directory HOT 4
- Add support to Google Analytics HOT 1
- in progress HOT 1
- Not Downloading Meta information properly HOT 20
- Build a miror behind a proxy HOT 4
- Warning: failed to open stream: Too many open file HOT 2
- composer install error HOT 3
- How I can use an internal domain ? HOT 13
- Extra dependencies?
- Drop PHP 7.1 support for next release
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 packagist-mirror.