- pnpm
- node v23+
When running for the first time:
chmod +x start-services.shStart the server with:
pnpm malic:upThe server can be configured through the config.ts file. Here are the default settings:
BLOBS_DIR: "storage" - Directory for storing blob dataMETADATA_DIR: "metadata" - Directory for storing blob metadataMAX_LENGTH: 10MB - Maximum size of a single blobMAX_DISK_QUOTA: 1GB - Maximum total storage spaceMAX_HEADER_LENGTH: 100 - Maximum length of a single headerMAX_HEADER_COUNT: 20 - Maximum number of headers per blobMAX_ID_LENGTH: 200 - Maximum length of blob IDsMAX_BLOBS_IN_FOLDER: 1 - Maximum number of blobs per folder
load balancer will start on port 3000 by default.
POST /internal/nodes
- register a node to the load balancerGET /internal/nodes
- get data of nodes registered to the load balancerPOST /blobs/:id
Content-Type: application/octet-stream
<binary data>GET /blobs/:idDELETE /blobs/:id200 OK: Request successful201 Created: Blob successfully created400 Bad Request: Invalid request parameters404 Not Found: Blob not found413 Payload Too Large: Blob exceeds size limits500 Internal Server Error: Server error