You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "big-r81 (via GitHub)" <gi...@apache.org> on 2023/09/16 08:31:08 UTC
[GitHub] [couchdb] big-r81 opened a new pull request, #4766: [Draft] Adding smoosh:status to HTTP API
big-r81 opened a new pull request, #4766:
URL: https://github.com/apache/couchdb/pull/4766
Adding the status of the CouchDB auto-compaction daemon to the HTTP API.
Opening Draft-PR for comments.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] big-r81 commented on pull request #4766: Add `smoosh:status/1` to HTTP API
Posted by "big-r81 (via GitHub)" <gi...@apache.org>.
big-r81 commented on PR #4766:
URL: https://github.com/apache/couchdb/pull/4766#issuecomment-1725949026
Hey, Gábor, oh yes an additional good idea to make it more visible to the reader. I will update the docs part.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] nickva commented on pull request #4766: Add `smoosh:status/1` to HTTP API
Posted by "nickva (via GitHub)" <gi...@apache.org>.
nickva commented on PR #4766:
URL: https://github.com/apache/couchdb/pull/4766#issuecomment-1723898346
I wonder if it's worth leaving room in the API for additional status which is not channel related? That is, move the channel status under a "channels" sub-field?:
```
{"channels": [{"upgraded_views": {...}, ]}
```
Smoosh has at least two other "status" pieces of information that may seem interesting to expose for debugging:
* The overall `paused` state indicating if jobs should be paused or pausing based on the configured time window and the strict setting.
* If persistence is enabled, show the last time the state had been persisted, or if it was initialized from a persisted state, the timestamp of that state?
Not saying we should add these right off the bat, but if we would them at any point in the future, make it possible to do so without completely changing the status response format.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] big-r81 commented on pull request #4766: Add `smoosh:status/1` to HTTP API
Posted by "big-r81 (via GitHub)" <gi...@apache.org>.
big-r81 commented on PR #4766:
URL: https://github.com/apache/couchdb/pull/4766#issuecomment-1724155150
That sounds like a very good idea to be ready for adding additional status informations.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] big-r81 merged pull request #4766: Add new HTTP endpoint `/_node/_local/_smoosh/status`
Posted by "big-r81 (via GitHub)" <gi...@apache.org>.
big-r81 merged PR #4766:
URL: https://github.com/apache/couchdb/pull/4766
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb] pgj commented on a diff in pull request #4766: Add `smoosh:status/1` to HTTP API
Posted by "pgj (via GitHub)" <gi...@apache.org>.
pgj commented on code in PR #4766:
URL: https://github.com/apache/couchdb/pull/4766#discussion_r1330018636
##########
src/docs/src/api/server/common.rst:
##########
@@ -1902,6 +1902,114 @@ See :ref:`Configuration of Prometheus Endpoint <config/prometheus>` for details.
Accept: text/plain
Host: localhost:17986
+.. _api/server/smoosh/status:
+
+=====================================
+``/_node/{node-name}/_smoosh/status``
+=====================================
+
+.. versionadded:: 3.4
+
+.. http:get:: /_node/{node-name}/_smoosh/status
+ :synopsis: Returns metrics of the CouchDB's auto-compaction daemon
+
+ This prints the state of each channel, how many jobs they are
Review Comment:
Just a minor (general) nit. I think it could make sense if specific identifiers or names, such as "smoosh", "ratio_dbs", "ratio_views", "slack_dbs", and "slack_views" were made to be rendered with monospaced fonts, i.e. marked down as ``smoosh`` and so on. This can help the reader of the documentation to identify those names in the text easier and improve the readability.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org