Closed ewdurbin closed 6 years ago
Thinking about this, one thing that will make this harder is that Warehouse no longer uses relative URLs for the /simple/
but instead uses files.pythonhosted.org. We'll need add a feature to bandersnatch that allows us to point the files to a different domain name.
@ewdurbin Go ahead and put this in a milestone, please.
Feature PRs in bandersnatch:
Setting up a new internal mirror running from my fork via an hg+https://
install to test.
new mirror is loading up at https://mirror.dub1.pypi.io/
Internal mirror is up, but talking to pypi.org it is failing to stay up to date due to purging issues.
@ewdurbin Is this resolved now that #3396 is merged?
great question! we need to validate that bandersnatch continues to be able to mirror from pypi.org over the course of the next few days, and then update our VCL use this as an internal failover for /simple
, /pypi/.*/json$
, and under extreme circumstances /packages
.
our new internal mirror has been holding strong! next step is VCL to do fallback at the edge for /simple
, /packages
, and /pypi/*/json$
For those reading this who, like me, didn't know, VCL means "Varnish Configuration Language".
Ernest is planning on finishing this on Monday.
I went ahead and got the VCL sorted out to do this in https://github.com/python/pypi-infra/pull/12 and https://github.com/python/pypi-infra/pull/14.
Our VCL should fallback to an internal mirror for
^/simple
and^/pypi/.*/json$
This will allow us to serve the bulk of traffic during maintenance and downtime.