You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Karsten Sperling (JIRA)" <ji...@apache.org> on 2007/11/07 01:53:50 UTC

[jira] Created: (SOLR-408) PingRequestHandler

PingRequestHandler
------------------

                 Key: SOLR-408
                 URL: https://issues.apache.org/jira/browse/SOLR-408
             Project: Solr
          Issue Type: New Feature
          Components: search
    Affects Versions: 1.2
            Reporter: Karsten Sperling
            Priority: Trivial


The PingRequestHandler checks the healthcheck file first (if configured) and returns an error if the instance is disabled. It  then executes the configured ping query to ensure that the index is accessible. Advantages:
- Enable/Disable and index availability can both be checked by the load balancer via a single URL.
- The URL accessed by the load balancer is outside /admin, making it easier to restrict access to /admin.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-408) PingRequestHandler

Posted by "Karsten Sperling (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karsten Sperling updated SOLR-408:
----------------------------------

    Attachment: ping-request-handler.patch

> PingRequestHandler
> ------------------
>
>                 Key: SOLR-408
>                 URL: https://issues.apache.org/jira/browse/SOLR-408
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.2
>            Reporter: Karsten Sperling
>            Priority: Trivial
>         Attachments: ping-request-handler.patch
>
>
> The PingRequestHandler checks the healthcheck file first (if configured) and returns an error if the instance is disabled. It  then executes the configured ping query to ensure that the index is accessible. Advantages:
> - Enable/Disable and index availability can both be checked by the load balancer via a single URL.
> - The URL accessed by the load balancer is outside /admin, making it easier to restrict access to /admin.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-408) PingRequestHandler

Posted by "Ryan McKinley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12541151 ] 

Ryan McKinley commented on SOLR-408:
------------------------------------

agreed - i'll post a modified patch shortly

> PingRequestHandler
> ------------------
>
>                 Key: SOLR-408
>                 URL: https://issues.apache.org/jira/browse/SOLR-408
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.2
>            Reporter: Karsten Sperling
>            Assignee: Ryan McKinley
>            Priority: Trivial
>         Attachments: ping-request-handler.patch
>
>
> The PingRequestHandler checks the healthcheck file first (if configured) and returns an error if the instance is disabled. It  then executes the configured ping query to ensure that the index is accessible. Advantages:
> - Enable/Disable and index availability can both be checked by the load balancer via a single URL.
> - The URL accessed by the load balancer is outside /admin, making it easier to restrict access to /admin.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-408) PingRequestHandler

Posted by "Ryan McKinley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan McKinley updated SOLR-408:
-------------------------------

    Attachment: SOLR-408-PingRequestHandler.patch

updated your patch to use its own parameters for the ping query.

Also @Deprecated getPingQueryRequest() and removed it from the example solrconfig.xml

This configures the PingRequestHandler with:

  <requestHandler name="/admin/ping" class="PingRequestHandler">
    <lst name="defaults">
      <str name="qt">standard</str>
      <str name="q">solrpingquery</str>
      <str name="echoParams">all</str>
    </lst>
  </requestHandler>

This path overrides the ping.jsp servlet and uses the new request handler.

> PingRequestHandler
> ------------------
>
>                 Key: SOLR-408
>                 URL: https://issues.apache.org/jira/browse/SOLR-408
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.2
>            Reporter: Karsten Sperling
>            Assignee: Ryan McKinley
>            Priority: Trivial
>         Attachments: ping-request-handler.patch, SOLR-408-PingRequestHandler.patch
>
>
> The PingRequestHandler checks the healthcheck file first (if configured) and returns an error if the instance is disabled. It  then executes the configured ping query to ensure that the index is accessible. Advantages:
> - Enable/Disable and index availability can both be checked by the load balancer via a single URL.
> - The URL accessed by the load balancer is outside /admin, making it easier to restrict access to /admin.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (SOLR-408) PingRequestHandler

Posted by "Ryan McKinley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan McKinley reassigned SOLR-408:
----------------------------------

    Assignee: Ryan McKinley

> PingRequestHandler
> ------------------
>
>                 Key: SOLR-408
>                 URL: https://issues.apache.org/jira/browse/SOLR-408
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.2
>            Reporter: Karsten Sperling
>            Assignee: Ryan McKinley
>            Priority: Trivial
>         Attachments: ping-request-handler.patch
>
>
> The PingRequestHandler checks the healthcheck file first (if configured) and returns an error if the instance is disabled. It  then executes the configured ping query to ensure that the index is accessible. Advantages:
> - Enable/Disable and index availability can both be checked by the load balancer via a single URL.
> - The URL accessed by the load balancer is outside /admin, making it easier to restrict access to /admin.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-408) PingRequestHandler

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12541148 ] 

Hoss Man commented on SOLR-408:
-------------------------------

FWIW I'm in favor of making a separate PingRequestHandler, but i think we should take advantage of this oportunity to eliminate the use of core.getPingQueryRequest() 9and the horrible syntax it depends on)

This new handler should use it's own init params to drive the query.

> PingRequestHandler
> ------------------
>
>                 Key: SOLR-408
>                 URL: https://issues.apache.org/jira/browse/SOLR-408
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.2
>            Reporter: Karsten Sperling
>            Assignee: Ryan McKinley
>            Priority: Trivial
>         Attachments: ping-request-handler.patch
>
>
> The PingRequestHandler checks the healthcheck file first (if configured) and returns an error if the instance is disabled. It  then executes the configured ping query to ensure that the index is accessible. Advantages:
> - Enable/Disable and index availability can both be checked by the load balancer via a single URL.
> - The URL accessed by the load balancer is outside /admin, making it easier to restrict access to /admin.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SOLR-408) PingRequestHandler

Posted by "Ryan McKinley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan McKinley resolved SOLR-408.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3

thanks Karsten

> PingRequestHandler
> ------------------
>
>                 Key: SOLR-408
>                 URL: https://issues.apache.org/jira/browse/SOLR-408
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>    Affects Versions: 1.2
>            Reporter: Karsten Sperling
>            Assignee: Ryan McKinley
>            Priority: Trivial
>             Fix For: 1.3
>
>         Attachments: ping-request-handler.patch, SOLR-408-PingRequestHandler.patch
>
>
> The PingRequestHandler checks the healthcheck file first (if configured) and returns an error if the instance is disabled. It  then executes the configured ping query to ensure that the index is accessible. Advantages:
> - Enable/Disable and index availability can both be checked by the load balancer via a single URL.
> - The URL accessed by the load balancer is outside /admin, making it easier to restrict access to /admin.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.