Updated name to afs-blob-store

This commit is contained in:
Michael Krotscheck 2016-04-08 12:30:29 -07:00
parent b900ee45ff
commit 83c8ceefe2
No known key found for this signature in database
GPG Key ID: 20E618D878DE38AB
4 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
[gerrit]
host=review.openstack.org
port=29418
project=openstack/js-registry-static-afs.git
project=openstack/js-afs-blob-store.git

View File

@ -1,10 +1,10 @@
# sorting-fs-blob-store
# afs-blob-store
This project provides a renaming shim on top of fs-blob-store, to permit the storing of large folders on AFS.
AFS has a practical folder size limit of ~64K entries. In order to accomodate folders with more files than this (such as the npm registry), we store them in subfolders, sorted by the first letter of the package name. For example: `/foo` becomes `/f/foo`, `/bar` becomes `/b/bar`, `/q` becomes `/q/q`. Only files that begin with alphanumeric characters are sorted.
Accessing these files via sorting-fs-blob-store is transparent. Accessing them via other methods can be accomplished via rewrite rules (for instance, apache's mod_rewrite).
Accessing these files via afs-blob-store is transparent. Accessing them via other methods can be accomplished via rewrite rules (for instance, apache's mod_rewrite).
This module is in use by OpenStack's Infrastructure team, to run the npm portion of our unified mirrors.
@ -13,11 +13,11 @@ This module is in use by OpenStack's Infrastructure team, to run the npm portion
#!/bin/bash
# Install the registry and the hook module.
npm install -g registry-static registry-static-afs
npm install -g registry-static afs-blob-store
# Run the registry script
registry-static -d my.registry.com -o /var/www/registry \
--blobstore sorting-fs-blob-store
--blobstore afs-blob-store
### Some useful development commands
@ -26,7 +26,7 @@ This module is in use by OpenStack's Infrastructure team, to run the npm portion
### Project Resources
- [Source code](https://git.openstack.org/cgit/openstack/js-registry-static-afs)
- [Source code](https://git.openstack.org/cgit/openstack/js-afs-blob-store)
- [How to contribute to OpenStack](http://docs.openstack.org/infra/manual/developers.html)
- [Code review workflow](http://docs.openstack.org/infra/manual/developers.html#development-workflow)
- IRC: \#openstack-infra on \#freenode

View File

@ -1,6 +1,6 @@
{
"license": "Apache-2.0",
"name": "sorting-fs-blob-store",
"name": "afs-blob-store",
"version": "1.0.0",
"description": "An implementation of fs-blob-store, which sorts files into alphabetical folders.",
"main": "index.js",
@ -24,7 +24,7 @@
},
"repository": {
"type": "git",
"url": "git://git.openstack.org/openstack/js-sorting-fs-blob-store"
"url": "git://git.openstack.org/openstack/js-afs-blob-store"
},
"keywords": [
"registry-static",

View File

@ -53,7 +53,7 @@
}
};
describe('sorting-blob-store', function() {
describe('afs-blob-store', function() {
beforeEach(function(done) {
mockery.registerMock('fs-blob-store', function() {