couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Shorin <kxe...@gmail.com>
Subject Re: how to compact a shard in 2.0?
Date Fri, 15 May 2015 19:00:02 GMT
> I have also read in an email on the dev list, that this needs to be run against the 5986
port, but again no clue what the exact URL is. I have tried to guess it, but none of the combinations
that I've tried did work.

curl -XPOST http://localhost:5986/<db>/_compact

Cluster-wide compaction is not supported yet, so you have to run it
per node basis.

--
,,,^..^,,,


On Fri, May 15, 2015 at 6:48 PM, Hristo Trendev <dist.lists@gmail.com> wrote:
> Hello,
>
> I have installed the 2.0 developer preview and I cannot figure out how to
> compact a database. Trying with
>
> curl http://localhost:5984/<db>/_compact
>
> results in
>
> {"error":"forbidden","reason":"Compaction must be triggered on a per-shard
> basis in CouchDB"}
>
> I have found this related GUI ticket
> https://issues.apache.org/jira/browse/COUCHDB-2492, but there is no hint
> how to actually start the compaction process manually. I have also read in
> an email on the dev list, that this needs to be run against the 5986 port,
> but again no clue what the exact URL is. I have tried to guess it, but none
> of the combinations that I've tried did work.
>
> Has anybody had any success with it?
>
> BR,
> Hristo

Mime
View raw message