incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Klein <st.fankl...@gmail.com>
Subject Spread databases to multiple mountpoints
Date Mon, 10 Mar 2014 14:15:48 GMT
Hi,

i want to test hdd vs. ssd vs. dm-cache performance.
/var/lib/couchdb is located on my hdd, so i created /var/lib/couchdb/ssd
and /var/lib/couchdb/dmcache as mointpoints to mount my ssd and dmcache
device.

If I create a database "ssd/test" it works, the test.couch file is located
on the ssd. \o/
But when i try to delete it, i got a 500 response:
"{"error":"error","reason":"exdev"}"
(This is a debian box with the couchdb from sid)

Anybody done this before?
Is there a better workaround than to rm the file and restart couchdb?
(which will do for my testing)

regards,
Stefan

~$ curl -v  -X PUT 'http://root:***********localhost:5984/ssd%2Ftest'
* Connected to localhost (127.0.0.1) port 5984 (#0)
* Server auth using Basic with user 'root'
> PUT /ssd%2Ftest HTTP/1.1
> Authorization: Basic ***********
> User-Agent: curl/7.35.0
> Host: localhost:5984
> Accept: */*
>
< HTTP/1.1 201 Created
* Server CouchDB/1.4.0 (Erlang OTP/R16B03-1) is not blacklisted
< Server: CouchDB/1.4.0 (Erlang OTP/R16B03-1)
< Location: http://localhost:5984/ssd%2Ftest
< Date: Mon, 10 Mar 2014 14:03:06 GMT
< Content-Type: text/plain; charset=utf-8
< Content-Length: 12
< Cache-Control: must-revalidate
<
{"ok":true}
* Connection #0 to host localhost left intact
~$ curl -v  -X DELETE 'http://root:***********@localhost:5984/ssd%2Ftest'
* Connected to localhost (127.0.0.1) port 5984 (#0)
* Server auth using Basic with user 'root'
> DELETE /ssd%2Ftest HTTP/1.1
> Authorization: Basic ***********
> User-Agent: curl/7.35.0
> Host: localhost:5984
> Accept: */*
>
< HTTP/1.1 500 Internal Server Error
* Server CouchDB/1.4.0 (Erlang OTP/R16B03-1) is not blacklisted
< Server: CouchDB/1.4.0 (Erlang OTP/R16B03-1)
< Date: Mon, 10 Mar 2014 14:03:15 GMT
< Content-Type: text/plain; charset=utf-8
< Content-Length: 35
< Cache-Control: must-revalidate
<
{"error":"error","reason":"exdev"}
* Connection #0 to host localhost left intact

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message