4 ms·
Well, they could use different rate limits depending on the size of the image. Say if the image size (or the size of the added layers) is in line with what we
by spockz 6y ago
Well, they could use different rate limits depending on the size of the image. Say if the image size (or the size of the added layers) is in line with what we want for dockers you could offer different rates. Unlimited for images <10MiB, high limits for <100, and low limits for everything else. That way they both push for small images, and keep everyone happy.
Or people will just add a proxy/imagestream in between instead of directly pulling from docker hub.
- efreak 6y agoOr you just do it the easy way and limit the speed based on the amount of data downloaded so far, with the history being 'lost' after 6 hours. This way you also prevent someone from doing dumb things to get around it, like using multiple connections (or in this case, multiple layers for a project that doesn't actually need them)
- spockz 6y agoThat is possible but it means distributing the total amount of data to all the nodes. Luckily it doesn’t require correctness but it is more complicated to setup regardless.