Project

General

Profile

Actions

Bug #2449

closed

New Keep server can write

Added by Tom Clegg about 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Tim Pierce
Category:
-
Story points:
5.0

Description

See current spec at Keep server

Goals for this sprint:
  • Read and write using existing filesystem structure
  • Enforce "one read/write operation per mount point" restriction (with command line flag to disable, for AWS. --no-io-lock?)
  • Command line argument (--port?) specifies port to listen on. Fail if none given.
  • Command line arguments (--ssl-key and --ssl-cert?) enable https mode. Otherwise, plain http.
  • Command line arguments (positional?) specify mount points ("run" script can be in charge of mount|grep etc)
  • Test suite (use a tmpfs?)
Also, hopefully, index and status handlers:
  • GET /index.txt → one line per block stored on disk: hash+size <space> modtime_unix_timestamp
  • GET /status.json → a json document something like this
{
 "volumes":[
  {"mount_point":"/data/disk0","bytes_free":4882337792,"bytes_used":5149708288},
  {"mount_point":"/data/disk1","bytes_free":39614472192,"bytes_used":3314229248}
 ]
}

Subtasks 7 (0 open7 closed)

Task #2463: Keep: command-line flagsClosedTim Pierce04/04/2014Actions
Task #2561: Keep: /index and /status handlersClosedTim Pierce04/01/2014Actions
Task #2603: Review 2449-keep-index-status-handlersClosedTim Pierce04/01/2014Actions
Task #2507: Review 2449-keep-write-blocksClosedTim Pierce04/01/2014Actions
Task #2292: Keep server writes Warehouse blocksClosedTim Pierce04/01/2014Actions
Task #2591: Review 2449-keep-flagsClosedMisha Zatsman04/01/2014Actions
Task #2460: Keep: unit tests for writing blocksClosedTim Pierce04/02/2014Actions
Actions

Also available in: Atom PDF