slapos.tool.networkcache

A zc.buildout extension to extend download API in order to use a network cache provider
Download

slapos.tool.networkcache Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL v3
  • Publisher Name:
  • Rafael Monnerat

slapos.tool.networkcache Tags


slapos.tool.networkcache Description

A zc.buildout extension to extend download API in order to use a network cache provider slapos.tool.networkcache is an extensions for zc.buildout created to extend Download API in order to use a HTTP server as cache provider for download.This extension modifies the download process, to the followed order: 1. Try Local Cache (no change from original) 2. Try network cache (I explain bellow) 3. Try original URL 4. Post file data to network cache (pure HTTP)So, the network cache is just one URL where files are placed (can be any simple HTTP) and identified by file MD5 like this: GET http://my.company.shared.cache/md5_provided_for_the_fileThe cache update is done by a simple post to same adress: POST http://my.company.shared.cache/md5_provided_for_the_file < dataUSAGEDefine network-cache into and set slapos.networkcache into extensions. Like the followed example:extensions = slapos.networkcachenetwork-cache = http://url/to/cache/goes/hereparts = somesoftwarerecipe = hexagonit.recipe.cmmiurl = = 201d3f38758d95436cbc64903386de0b Requirements: · Python What's New in This Release: · Include patch for zc.buildout.easy_install to use networkcache. · Fix another conditional mistake. · Reduce diff into copied method.


slapos.tool.networkcache Related Software