You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ab...@apache.org on 2017/08/23 15:12:19 UTC

[3/4] lucene-solr:feature/autoscaling: SOLR-11076: Add some documentation for the /autoscaling/history handler.

SOLR-11076: Add some documentation for the /autoscaling/history handler.


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/eaee0c00
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/eaee0c00
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/eaee0c00

Branch: refs/heads/feature/autoscaling
Commit: eaee0c006f902d21d5efc843d9276019b5afdb2e
Parents: a7c142c
Author: Andrzej Bialecki <ab...@apache.org>
Authored: Wed Aug 16 11:51:51 2017 +0200
Committer: Andrzej Bialecki <ab...@apache.org>
Committed: Wed Aug 23 14:05:54 2017 +0200

----------------------------------------------------------------------
 .../src/solrcloud-autoscaling-api.adoc          | 28 ++++++++++++++++++++
 1 file changed, 28 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/eaee0c00/solr/solr-ref-guide/src/solrcloud-autoscaling-api.adoc
----------------------------------------------------------------------
diff --git a/solr/solr-ref-guide/src/solrcloud-autoscaling-api.adoc b/solr/solr-ref-guide/src/solrcloud-autoscaling-api.adoc
index 52b5598..c13ffd6 100644
--- a/solr/solr-ref-guide/src/solrcloud-autoscaling-api.adoc
+++ b/solr/solr-ref-guide/src/solrcloud-autoscaling-api.adoc
@@ -324,3 +324,31 @@ The `remove-policy` command accepts a policy name to be removed from Solr. The p
 ----
 
 If you attempt to remove a policy that is being used by a collection, this command will fail to delete the policy until the collection itself is deleted.
+
+== History API
+History of autoscaling events is available at `/admin/autoscaling/history`. It returs information
+about past autoscaling events and details about their processing. This history is kept in
+the `.system` collection, and populated by a trigger listener `SystemLogListener` - by default this
+listener is added to all new triggers.
+
+History events are regular Solr documents so they can be also accessed directly by
+searching on the `.system` collection. History handler acts as a regular search handler, so all
+query parameters supported by `/select` handler for that collection are supported here too.
+However, the history handler makes this
+process easier by offering a simpler syntax and knowledge of field names
+used by `SystemLogListener` for serialization of event data.
+
+History documents contain also the action context, if it was available, which gives
+further insight into eg. exact operations that were computed and/or executed.
+
+Specifically, the following query parameters can be used (they are turned into
+filter queries, so an implicit AND is applied):
+
+* `trigger` - trigger name
+* `eventType` - event type / trigger type (eg. `nodeAdded`)
+* `collection` - collection name involved in event processing
+* `stage` - event processing stage
+* `action` - trigger action
+* `node` - node name that the event refers to
+* `beforeAction` - beforeAction stage
+* `afterAction` - afterAction stage