Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A really dumb REST interface to MogileFS
Perl
branch: master

Don't return empty 204 instead of 404

This happen when x-proxy-capabilities are set to reproxy-file but the
requested file doesn't exist.
latest commit 1f04f4f279
@yannk authored
Failed to load latest commit information.
lib/MogileFS Don't return empty 204 instead of 404
t Be honnest
.gitignore prep for 0.02 release
Changes Don't return empty 204 instead of 404
MANIFEST
MANIFEST.SKIP prep for 0.02 release
Makefile.PL
README Don't overload Perlbal headers to get paths
app.psgi use lib

README

This is a prototype of a REST abstraction of MogileFS.

Rationale: mogilefs client implementation is a bit complicated (requires
handling of propriatary mogile network protocol, correct management of
data to be transfered etc.).

Installation instructions:
--------------------------

$ git clone git@github.com/yannk/MogileFS-REST.git
$ cpanm MogileFS-REST

Configuration Instructions:
---------------------------

You can either use the provided app.psgi using ENV variable to configure it,
or write your own app.psgi.

ENV variables are:
- MOGILEFS_REST_SERVERS         comma separated list of trackers
- MOGILEFS_REST_DEFAULT_CLASS   default mogile class to use if none specified in the req.
- MOGILEFS_REST_LARGEFILE:      use largefile support of mogile client. default to true.

Usage Instructions:
-------------------

$ MOGILEFS_REST_SERVERS=localhost:7001 plackup -Ilib -a app.psgi
# replace README with anyfile
$ curl -i -X PUT --data-binary @README http://localhost:5000/testing/key
$ curl -i -X GET http://localhost:5000/testing/key
$ curl -i -X GET http://localhost:5000/testing/key?paths=1
$ curl -i -X DELETE http://localhost:5000/testing/key
Something went wrong with that request. Please try again.