-
Notifications
You must be signed in to change notification settings - Fork 28
Setups Local Frugalos Cluster
Takeru Ohta edited this page Oct 26, 2018
·
1 revision
いくつか方法はあるが、以下のsetup_debug_cluster.sh
を実行すれば、ローカルでfrugalosが3100番ポートで起動する(注意: tmux
が必要)。
$ cd frugalos/
/// バケツを構築して、frugalosサーバを起動する
$ scripts/setup_debug_cluster.sh
/// いくつかリクエストを投げてみる
$ curl --dump-header - -X PUT -d foo localhost:3100/v1/buckets/live_archive_chunk/objects/foo
HTTP/1.1 201 Created
Content-Type: application/octet-stream
ETag: "3"
Content-Length: 0
$ curl --dump-header - localhost:3100/v1/buckets/live_archive_chunk/objects/foo
HTTP/1.1 200 OK
Content-Type: application/octet-stream
ETag: "4"
Content-Length: 3
foo
$ curl --dump-header - -X DELETE localhost:3100/v1/buckets/live_archive_chunk/objects/foo
HTTP/1.1 200 OK
Content-Type: application/octet-stream
ETag: "4"
Content-Length: 0
$ curl --dump-header - localhost:3100/v1/buckets/live_archive_chunk/objects/foo
HTTP/1.1 404 Not Found
Content-Type: application/json
Transfer-Encoding: chunked
{"kind":"Other","cause":"Not Found","history":[]}