Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i find whether the CouchDB is up and running?

Tags:

ios

couchdb

As far as I know, couch db instance can't be run in background, that is, if the user switches the app to background from foreground, the database is effectively not reachable. and it would take a few moments to restart after a user switches the app to foreground, is there a way to find whether the DB is up and running,once the app resumes to foreground?

Waiting for your reply,

Krishna.

like image 546
Krishna Shanbhag Avatar asked Feb 10 '12 11:02

Krishna Shanbhag


People also ask

How do I check my CouchDB status?

In case you want to check the status of CouchDB, you can do so using the following command: sudo status couchdb.

How do I open CouchDB?

After installation, open built-in web interface of CouchDB by visiting the following link: http://127.0.0.1:5984/. If everything goes fine, this will give you a web page, which have the following output. This shows you the index page of Futon, which is the web interface of CouchDB.

How do I know what version of CouchDB I have Linux?

You can just query http://yourserver:5984/ which should return the result.

How do I access CouchDB remotely?

To connect to CouchDB from a different machine, you must open port 5984 for remote access. Refer to the FAQ for more information on this. IMPORTANT: Making this application's network ports public is a significant security risk. You are strongly advised to only allow access to those ports from trusted networks.


1 Answers

Instead of constantly polling, using the changes API, you can have a continuous feed with a heartbeat.

The default heartbeat is 1 minute but you can make it shorter if you like.

like image 99
Simon Avatar answered Nov 12 '22 03:11

Simon