[ 
https://issues.apache.org/jira/browse/COUCHDB-2605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14367564#comment-14367564
 ] 

Udantha commented on COUCHDB-2605:
----------------------------------

Hi,

I built couchDB(developer-preview/2.0/) from the soruce with a guide at 
https://couchdb.apache.org/developer-preview/2.0/. (linux and windows)
I noticed the  backdoor port for 15984 would be front prot with 15986 after 
runing dev/run (developer cluster with three nodes)

http://localhost:15986/nodes

{"db_name":"nodes","doc_count":3,"doc_del_count":0,"update_seq":3,"purge_seq":0,"compact_running":false,"disk_size":16562,"other":{"data_size":228},"data_size":422,"sizes":{"file":16562,"active":422,"external":228},"instance_start_time":"1426699576888880","disk_format_version":6,"committed_update_seq":3,"compacted_seq":0,"uuid":"e282ed26a6bb5a5da9453b294adb5bee"}

Backdoor port for each node
node1: http://localhost:15984/_all_dbs
node2: http://localhost:25984/_all_dbs
node3: http://localhost:35984/_all_dbs
In here I can find databases names after I added databases via REST api. Names 
are show in json array.

I went through REST apis,I am writting blogpost on that at the moment. 

Then I started HAproxy with couchDB
It did the health check for server couchdbs/couchdb1 and it give layer4 check 
passed, check duration: 0ms, status: 3/3 UP.

Then I started fauxton and open  http://localhost:8000 (red interface UI). 
Create databases on here and added Doc for it.

Since it clustered I create DB in one of node. (I think there was loadbalance 
with round-robin) 
eg: fisrt web request for 'http://localhost:8000/_all_dbs'move node1,
second one for node2,it was cycling through each three like this. am I correct?

http://localhost:8000/_all_dbs --> ["my_db_8000","top8_db"]

Using backport http://127.0.0.1:25984/my_db_8000.

"sizes":{"file":38064,"external":76,"active":286},"purge_seq":0,"other":{"data_size":76},"doc_del_count":0,"doc_count":1,"disk_size":38064,"disk_format_version":6,"data_size":286,"compact_running":false,"instance_start_time":"0"}

Those APIs call will give lot information that I was looking for.

When I added more documents for 'my_db_8000' over web UI(port 8000 or 25984) or 
HTTP api. I notice 'data_size', 'data_size'. etc.

Thanks.

> Visualize the CouchDB Cluster
> -----------------------------
>
>                 Key: COUCHDB-2605
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2605
>             Project: CouchDB
>          Issue Type: Task
>      Security Level: public(Regular issues) 
>          Components: Fauxton
>    Affects Versions: 2.1
>            Reporter: Robert Kowalski
>              Labels: CouchDB, gsoc2015, javascript
>
> Show for each database on which nodes in the cluster the data is stored - and 
> warn if the disk space runs out on these nodes.
> The project is using React.js for the Admin-Interface. You will use 
> JavaScript, CSS, HTML and the HTTP API of CouchDB to visualize the cluster. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to