pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cdn testing for pkgsrc



I have applied the patches below.

On Wed, Jun 8, 2016 at 8:31 PM, matthew sporleder <msporleder%gmail.com@localhost> wrote:
> Recently NetBSD secured a very generous offering of Fastly CDN usage
> for NetBSD and pkgsrc.  To take advantage of this I would like to
> propose the following patch (and if I'm missing any other places)
> which puts our CDN first.[1]
>
> Fastly is a very friendly CDN provider which does caching and has a
> worldwide distribution so, in theory, once the caches are hot things
> outside of CA should speed up a lot.
>
> https://www.fastly.com/network-map  (yes, two POPs in japan and five in europe)
>
> Another good thing to try is to change pkgin/repositories.conf  to use
> http://cdn.netbsd.org;
>
> SSL (https://) is supported, as well.
>
> Please let me know if you get a chance to try some of this stuff and
> if you (eventually) see any speedups.  Also definitely let me know if
> you encounter 503 or other errors!
>
> Matt
>
> p.s. thanks to the netbsd developers who shared some of their pain
> with network transfer speeds, prompting this project.
>
>
>
> [1]
> --- mk/install/bin-install.mk-orig      2016-06-08 20:19:20.000000000 -0400
> +++ mk/install/bin-install.mk   2016-06-08 20:20:00.000000000 -0400
> @@ -31,7 +31,7 @@
>  # replaced with OS release ("1.5", ...) and architecture ("mipsel", ...)
>  .if ${OPSYS} == "NetBSD"
>  BINPKG_SITES?= \
> -       ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$${arch}/$${rel}
> +       http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$${arch}/$${rel}
>  .elif ${OPSYS} == "Minix"
>  BINPKG_SITES?= \
>         ftp://ftp.minix3.org/pub/minix/packages/$$(${UNAME} -r)/$${arch}
>
> --- mk/fetch/sites.mk-orig      2016-06-08 20:17:52.000000000 -0400
> +++ mk/fetch/sites.mk   2016-06-08 20:18:36.000000000 -0400
> @@ -296,6 +296,7 @@
>
>  # The primary backup site.
>  MASTER_SITE_BACKUP?=   \
> +       http://cdn.NetBSD.org/pub/pkgsrc/distfiles/ \
>         ftp://ftp.fr.NetBSD.org/pub/pkgsrc/distfiles/ \
>         http://ftp.fr.NetBSD.org/pub/pkgsrc/distfiles/ \
>         ftp://ftp.NetBSD.org/pub/pkgsrc/distfiles/ \


Home | Main Index | Thread Index | Old Index