You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ei...@apache.org on 2017/09/29 15:35:56 UTC
[couchdb-documentation] branch master updated: Update description
of a database info reply (#168)
This is an automated email from the ASF dual-hosted git repository.
eiri pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git
The following commit(s) were added to refs/heads/master by this push:
new a9a4988 Update description of a database info reply (#168)
a9a4988 is described below
commit a9a49884d605e7b2cb08048d3141514022cbdea0
Author: Eric Avdey <ei...@eiri.ca>
AuthorDate: Fri Sep 29 12:35:53 2017 -0300
Update description of a database info reply (#168)
This adds description of a new information block "cluster"
and updates description of update_seq.
---
src/api/database/common.rst | 27 ++++++++++++++++++++++++---
1 file changed, 24 insertions(+), 3 deletions(-)
diff --git a/src/api/database/common.rst b/src/api/database/common.rst
index 45a6e18..4c9f655 100644
--- a/src/api/database/common.rst
+++ b/src/api/database/common.rst
@@ -55,6 +55,12 @@
- :mimetype:`text/plain`
:>header Content-Type: - :mimetype:`application/json`
- :mimetype:`text/plain; charset=utf-8`
+ :>json number cluster.n: Replicas. The number of copies of every document.
+ :>json number cluster.q: Shards. The number of range partitions.
+ :>json number cluster.r: Read quorum. The number of consistent copies
+ of a document that need to be read before a successful reply.
+ :>json number cluster.w: Write quorum. The number of copies of a document
+ that need to be written before a successful reply.
:>json boolean compact_running: Set to ``true`` if the database compaction
routine is operating on this database.
:>json string db_name: The name of the database.
@@ -75,7 +81,9 @@
in bytes.
:>json number sizes.file: The size of the database file on disk in bytes.
Views indexes are not included in the calculation.
- :>json number update_seq: The current number of updates to the database.
+ :>json string update_seq: An opaque string that describes the state
+ of the database. Do not rely on this string for counting the number
+ of updates.
:code 200: Request completed successfully
:code 404: Requested database not found
@@ -99,7 +107,12 @@
Server: CouchDB (Erlang/OTP)
{
- "committed_update_seq": 292786,
+ "cluster": {
+ "n": 3,
+ "q": 8,
+ "r": 2,
+ "w": 2
+ },
"compact_running": false,
"data_size": 65031503,
"db_name": "receipts",
@@ -108,8 +121,16 @@
"doc_count": 6146,
"doc_del_count": 64637,
"instance_start_time": "0",
+ "other": {
+ "data_size": 66982448
+ },
"purge_seq": 0,
- "update_seq": 292786
+ "sizes": {
+ "active": 65031503,
+ "external": 66982448,
+ "file": 137433211
+ },
+ "update_seq": "292786-g1AAAAF..."
}
.. http:put:: /{db}
--
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <co...@couchdb.apache.org>'].