You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yury Kats (JIRA)" <ji...@apache.org> on 2011/08/04 16:35:27 UTC

[jira] [Created] (SOLR-2698) Enhance CoreAdmin STATUS command to return index size

Enhance CoreAdmin STATUS command to return index size
-----------------------------------------------------

                 Key: SOLR-2698
                 URL: https://issues.apache.org/jira/browse/SOLR-2698
             Project: Solr
          Issue Type: Improvement
          Components: multicore
    Affects Versions: 4.0
            Reporter: Yury Kats


CoreAdmin STATUS command returns all kinds of index info for all cores on the server, except for the index size.
However, indexSize can be retrieved for an individual core via a /replication&command=details request.

I have N Solrs servers, running M cores each. My application is monitoring the status of all cores, including their index size.
As it stands today, I need to issue N status requests plus N*M replication requests to get all the information I need.
If STATUS command returned indexSize, number of requests would be just N.



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2698) Enhance CoreAdmin STATUS command to return index size

Posted by "Mark Miller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079429#comment-13079429 ] 

Mark Miller commented on SOLR-2698:
-----------------------------------

bq. FileUtils.byteCountToDisplaySize( ) will not round the size of a file

Ah, right, good catch! This is actually why I implemented our own version in one of our projects (similar to the one in rep handler). Had forgotten the reason for that! See below. I see the following JIRA issue as well: https://issues.apache.org/jira/browse/IO-226

So yeah, +1 on the new Util method.

{code}

  /**
   * Return good default units based on byte size.
   */
  public static String humanReadableUnits(long bytes) {
    String newSizeAndUnits;
    DecimalFormat df = new DecimalFormat("#.#");
    if (bytes / ONE_GB > 0) {
      newSizeAndUnits = String.valueOf(df.format((float)bytes / ONE_GB)) + " GB";
    } else if (bytes / ONE_MB > 0) {
      newSizeAndUnits = String.valueOf(df.format((float)bytes / ONE_MB)) + " MB";
    } else if (bytes / ONE_KB > 0) {
      newSizeAndUnits = String.valueOf(df.format((float)bytes / ONE_KB)) + " KB";
    } else {
      newSizeAndUnits = String.valueOf(bytes) + " bytes";
    }

    return newSizeAndUnits;
  }
{code}

> Enhance CoreAdmin STATUS command to return index size
> -----------------------------------------------------
>
>                 Key: SOLR-2698
>                 URL: https://issues.apache.org/jira/browse/SOLR-2698
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>    Affects Versions: 4.0
>            Reporter: Yury Kats
>            Assignee: Mark Miller
>         Attachments: SOLR-2698.patch
>
>
> CoreAdmin STATUS command returns all kinds of index info for all cores on the server, except for the index size.
> However, indexSize can be retrieved for an individual core via a /replication&command=details request.
> I have N Solrs servers, running M cores each. My application is monitoring the status of all cores, including their index size.
> As it stands today, I need to issue N status requests plus N*M replication requests to get all the information I need.
> If STATUS command returned indexSize, number of requests would be just N.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-2698) Enhance CoreAdmin STATUS command to return index size

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

Yury Kats updated SOLR-2698:
----------------------------

    Attachment: SOLR-2698.patch

This patch adds index size to CoreAdminHandler#getCoreStatus

> Enhance CoreAdmin STATUS command to return index size
> -----------------------------------------------------
>
>                 Key: SOLR-2698
>                 URL: https://issues.apache.org/jira/browse/SOLR-2698
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>    Affects Versions: 4.0
>            Reporter: Yury Kats
>         Attachments: SOLR-2698.patch
>
>
> CoreAdmin STATUS command returns all kinds of index info for all cores on the server, except for the index size.
> However, indexSize can be retrieved for an individual core via a /replication&command=details request.
> I have N Solrs servers, running M cores each. My application is monitoring the status of all cores, including their index size.
> As it stands today, I need to issue N status requests plus N*M replication requests to get all the information I need.
> If STATUS command returned indexSize, number of requests would be just N.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2698) Enhance CoreAdmin STATUS command to return index size

Posted by "Yury Kats (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079428#comment-13079428 ] 

Yury Kats commented on SOLR-2698:
---------------------------------

FileUtils.byteCountToDisplaySize could produce a different result than what's being returned now.

http://www.discursive.com/books/cjcook/reference/io-network-sect-printing-human-readable mentions:

  FileUtils.byteCountToDisplaySize( ) will not round the size of a file; a 2.9 MB file will have a display size of 2 MB. 

If that's true, it's not very useful.

We could go a step further and return index size in bytes AND as a readable string in the response.
If need to choose one or the other, my preference would be for just bytes (long). If it's a String, any application processing the response will need to convert it into bytes anyway to do any meaningful analysis.

> Enhance CoreAdmin STATUS command to return index size
> -----------------------------------------------------
>
>                 Key: SOLR-2698
>                 URL: https://issues.apache.org/jira/browse/SOLR-2698
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>    Affects Versions: 4.0
>            Reporter: Yury Kats
>            Assignee: Mark Miller
>         Attachments: SOLR-2698.patch
>
>
> CoreAdmin STATUS command returns all kinds of index info for all cores on the server, except for the index size.
> However, indexSize can be retrieved for an individual core via a /replication&command=details request.
> I have N Solrs servers, running M cores each. My application is monitoring the status of all cores, including their index size.
> As it stands today, I need to issue N status requests plus N*M replication requests to get all the information I need.
> If STATUS command returned indexSize, number of requests would be just N.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Reopened] (SOLR-2698) Enhance CoreAdmin STATUS command to return index size

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

Mark Miller reopened SOLR-2698:
-------------------------------


hmmm...reopening - might as well back port this to 3x

> Enhance CoreAdmin STATUS command to return index size
> -----------------------------------------------------
>
>                 Key: SOLR-2698
>                 URL: https://issues.apache.org/jira/browse/SOLR-2698
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>    Affects Versions: 4.0
>            Reporter: Yury Kats
>            Assignee: Mark Miller
>             Fix For: 3.4, 4.0
>
>         Attachments: SOLR-2698.patch, SOLR-2698.patch
>
>
> CoreAdmin STATUS command returns all kinds of index info for all cores on the server, except for the index size.
> However, indexSize can be retrieved for an individual core via a /replication&command=details request.
> I have N Solrs servers, running M cores each. My application is monitoring the status of all cores, including their index size.
> As it stands today, I need to issue N status requests plus N*M replication requests to get all the information I need.
> If STATUS command returned indexSize, number of requests would be just N.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2698) Enhance CoreAdmin STATUS command to return index size

Posted by "Yury Kats (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079423#comment-13079423 ] 

Yury Kats commented on SOLR-2698:
---------------------------------

I don't see why not. I'm very new to the solr codebase and thus just looked how the same function is already implemented.

ReplicationHandler also converts size into a "readable" string. For consistency sake CoreAdminHandler could do the same (ReplicationHandler#readableSize could be a shared util).

> Enhance CoreAdmin STATUS command to return index size
> -----------------------------------------------------
>
>                 Key: SOLR-2698
>                 URL: https://issues.apache.org/jira/browse/SOLR-2698
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>    Affects Versions: 4.0
>            Reporter: Yury Kats
>         Attachments: SOLR-2698.patch
>
>
> CoreAdmin STATUS command returns all kinds of index info for all cores on the server, except for the index size.
> However, indexSize can be retrieved for an individual core via a /replication&command=details request.
> I have N Solrs servers, running M cores each. My application is monitoring the status of all cores, including their index size.
> As it stands today, I need to issue N status requests plus N*M replication requests to get all the information I need.
> If STATUS command returned indexSize, number of requests would be just N.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Resolved] (SOLR-2698) Enhance CoreAdmin STATUS command to return index size

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

Mark Miller resolved SOLR-2698.
-------------------------------

    Resolution: Fixed

Too late for backport - resolving.
                
> Enhance CoreAdmin STATUS command to return index size
> -----------------------------------------------------
>
>                 Key: SOLR-2698
>                 URL: https://issues.apache.org/jira/browse/SOLR-2698
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>    Affects Versions: 4.0
>            Reporter: Yury Kats
>            Assignee: Mark Miller
>             Fix For: 4.0
>
>         Attachments: SOLR-2698.patch, SOLR-2698.patch
>
>
> CoreAdmin STATUS command returns all kinds of index info for all cores on the server, except for the index size.
> However, indexSize can be retrieved for an individual core via a /replication&command=details request.
> I have N Solrs servers, running M cores each. My application is monitoring the status of all cores, including their index size.
> As it stands today, I need to issue N status requests plus N*M replication requests to get all the information I need.
> If STATUS command returned indexSize, number of requests would be just N.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2698) Enhance CoreAdmin STATUS command to return index size

Posted by "Mark Miller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079425#comment-13079425 ] 

Mark Miller commented on SOLR-2698:
-----------------------------------

bq. I'm very new to the solr codebase and thus just looked how the same function is already implemented.

Yup, made perfect sense to see how it was done and copy it - just making an overall improvement suggestion.

bq. ReplicationHandler also converts size into a "readable" string. 

There is a commons method for this type of thing as well:

org.apache.commons.io.FileUtils.byteCountToDisplaySize(size)

> Enhance CoreAdmin STATUS command to return index size
> -----------------------------------------------------
>
>                 Key: SOLR-2698
>                 URL: https://issues.apache.org/jira/browse/SOLR-2698
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>    Affects Versions: 4.0
>            Reporter: Yury Kats
>         Attachments: SOLR-2698.patch
>
>
> CoreAdmin STATUS command returns all kinds of index info for all cores on the server, except for the index size.
> However, indexSize can be retrieved for an individual core via a /replication&command=details request.
> I have N Solrs servers, running M cores each. My application is monitoring the status of all cores, including their index size.
> As it stands today, I need to issue N status requests plus N*M replication requests to get all the information I need.
> If STATUS command returned indexSize, number of requests would be just N.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2698) Enhance CoreAdmin STATUS command to return index size

Posted by "Yury Kats (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13240499#comment-13240499 ] 

Yury Kats commented on SOLR-2698:
---------------------------------

To clarify, this is already fixed in 4.0. The bug was re-opened for a potential backport to 3.x.
                
> Enhance CoreAdmin STATUS command to return index size
> -----------------------------------------------------
>
>                 Key: SOLR-2698
>                 URL: https://issues.apache.org/jira/browse/SOLR-2698
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>    Affects Versions: 4.0
>            Reporter: Yury Kats
>            Assignee: Mark Miller
>             Fix For: 4.0
>
>         Attachments: SOLR-2698.patch, SOLR-2698.patch
>
>
> CoreAdmin STATUS command returns all kinds of index info for all cores on the server, except for the index size.
> However, indexSize can be retrieved for an individual core via a /replication&command=details request.
> I have N Solrs servers, running M cores each. My application is monitoring the status of all cores, including their index size.
> As it stands today, I need to issue N status requests plus N*M replication requests to get all the information I need.
> If STATUS command returned indexSize, number of requests would be just N.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Assigned] (SOLR-2698) Enhance CoreAdmin STATUS command to return index size

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

Mark Miller reassigned SOLR-2698:
---------------------------------

    Assignee: Mark Miller

> Enhance CoreAdmin STATUS command to return index size
> -----------------------------------------------------
>
>                 Key: SOLR-2698
>                 URL: https://issues.apache.org/jira/browse/SOLR-2698
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>    Affects Versions: 4.0
>            Reporter: Yury Kats
>            Assignee: Mark Miller
>         Attachments: SOLR-2698.patch
>
>
> CoreAdmin STATUS command returns all kinds of index info for all cores on the server, except for the index size.
> However, indexSize can be retrieved for an individual core via a /replication&command=details request.
> I have N Solrs servers, running M cores each. My application is monitoring the status of all cores, including their index size.
> As it stands today, I need to issue N status requests plus N*M replication requests to get all the information I need.
> If STATUS command returned indexSize, number of requests would be just N.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-2698) Enhance CoreAdmin STATUS command to return index size

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

Mark Miller updated SOLR-2698:
------------------------------

    Fix Version/s: 3.4

> Enhance CoreAdmin STATUS command to return index size
> -----------------------------------------------------
>
>                 Key: SOLR-2698
>                 URL: https://issues.apache.org/jira/browse/SOLR-2698
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>    Affects Versions: 4.0
>            Reporter: Yury Kats
>            Assignee: Mark Miller
>             Fix For: 3.4, 4.0
>
>         Attachments: SOLR-2698.patch, SOLR-2698.patch
>
>
> CoreAdmin STATUS command returns all kinds of index info for all cores on the server, except for the index size.
> However, indexSize can be retrieved for an individual core via a /replication&command=details request.
> I have N Solrs servers, running M cores each. My application is monitoring the status of all cores, including their index size.
> As it stands today, I need to issue N status requests plus N*M replication requests to get all the information I need.
> If STATUS command returned indexSize, number of requests would be just N.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-2698) Enhance CoreAdmin STATUS command to return index size

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

Mark Miller updated SOLR-2698:
------------------------------

    Attachment: SOLR-2698.patch

Here is a patch - I'll commit soon.

Sorry for the delay. Hard to work while my eyes are bleeding from staring at my brokerage account ;)

> Enhance CoreAdmin STATUS command to return index size
> -----------------------------------------------------
>
>                 Key: SOLR-2698
>                 URL: https://issues.apache.org/jira/browse/SOLR-2698
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>    Affects Versions: 4.0
>            Reporter: Yury Kats
>            Assignee: Mark Miller
>         Attachments: SOLR-2698.patch, SOLR-2698.patch
>
>
> CoreAdmin STATUS command returns all kinds of index info for all cores on the server, except for the index size.
> However, indexSize can be retrieved for an individual core via a /replication&command=details request.
> I have N Solrs servers, running M cores each. My application is monitoring the status of all cores, including their index size.
> As it stands today, I need to issue N status requests plus N*M replication requests to get all the information I need.
> If STATUS command returned indexSize, number of requests would be just N.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2698) Enhance CoreAdmin STATUS command to return index size

Posted by "Mark Miller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079430#comment-13079430 ] 

Mark Miller commented on SOLR-2698:
-----------------------------------

bq. We could go a step further and return index size in bytes AND as a readable string in the response.

I think both is nice myself - but of course not really necessary - a nicety though, in the case an application wants to display this, nice if we simply do the work for them.

bq. If need to choose one or the other, my preference would be for just bytes (long). 

+1

> Enhance CoreAdmin STATUS command to return index size
> -----------------------------------------------------
>
>                 Key: SOLR-2698
>                 URL: https://issues.apache.org/jira/browse/SOLR-2698
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>    Affects Versions: 4.0
>            Reporter: Yury Kats
>            Assignee: Mark Miller
>         Attachments: SOLR-2698.patch
>
>
> CoreAdmin STATUS command returns all kinds of index info for all cores on the server, except for the index size.
> However, indexSize can be retrieved for an individual core via a /replication&command=details request.
> I have N Solrs servers, running M cores each. My application is monitoring the status of all cores, including their index size.
> As it stands today, I need to issue N status requests plus N*M replication requests to get all the information I need.
> If STATUS command returned indexSize, number of requests would be just N.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2698) Enhance CoreAdmin STATUS command to return index size

Posted by "Yury Kats (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079435#comment-13079435 ] 

Yury Kats commented on SOLR-2698:
---------------------------------

bq. I see the following JIRA issue as well: https://issues.apache.org/jira/browse/IO-226

Funny how it was closed "not a bug". Who needs a method that returns "1 GB" for a 1.99GB file?

humanReadableUnits looks good. Maybe add TB? Storage is getting cheaper by the day.

bq. I think both is nice myself - but of course not really necessary - a nicety though, in the case an application wants to display this, nice if we simply do the work for them.

+1 on two values in the response. In CoreAdminHandler and ReplicationHandler.



> Enhance CoreAdmin STATUS command to return index size
> -----------------------------------------------------
>
>                 Key: SOLR-2698
>                 URL: https://issues.apache.org/jira/browse/SOLR-2698
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>    Affects Versions: 4.0
>            Reporter: Yury Kats
>            Assignee: Mark Miller
>         Attachments: SOLR-2698.patch
>
>
> CoreAdmin STATUS command returns all kinds of index info for all cores on the server, except for the index size.
> However, indexSize can be retrieved for an individual core via a /replication&command=details request.
> I have N Solrs servers, running M cores each. My application is monitoring the status of all cores, including their index size.
> As it stands today, I need to issue N status requests plus N*M replication requests to get all the information I need.
> If STATUS command returned indexSize, number of requests would be just N.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-2698) Enhance CoreAdmin STATUS command to return index size

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

Robert Muir updated SOLR-2698:
------------------------------

    Fix Version/s:     (was: 4.0)
    
> Enhance CoreAdmin STATUS command to return index size
> -----------------------------------------------------
>
>                 Key: SOLR-2698
>                 URL: https://issues.apache.org/jira/browse/SOLR-2698
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>    Affects Versions: 4.0
>            Reporter: Yury Kats
>            Assignee: Mark Miller
>             Fix For: 3.6
>
>         Attachments: SOLR-2698.patch, SOLR-2698.patch
>
>
> CoreAdmin STATUS command returns all kinds of index info for all cores on the server, except for the index size.
> However, indexSize can be retrieved for an individual core via a /replication&command=details request.
> I have N Solrs servers, running M cores each. My application is monitoring the status of all cores, including their index size.
> As it stands today, I need to issue N status requests plus N*M replication requests to get all the information I need.
> If STATUS command returned indexSize, number of requests would be just N.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Resolved] (SOLR-2698) Enhance CoreAdmin STATUS command to return index size

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

Mark Miller resolved SOLR-2698.
-------------------------------

    Resolution: Fixed

Thanks Yury!

> Enhance CoreAdmin STATUS command to return index size
> -----------------------------------------------------
>
>                 Key: SOLR-2698
>                 URL: https://issues.apache.org/jira/browse/SOLR-2698
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>    Affects Versions: 4.0
>            Reporter: Yury Kats
>            Assignee: Mark Miller
>         Attachments: SOLR-2698.patch, SOLR-2698.patch
>
>
> CoreAdmin STATUS command returns all kinds of index info for all cores on the server, except for the index size.
> However, indexSize can be retrieved for an individual core via a /replication&command=details request.
> I have N Solrs servers, running M cores each. My application is monitoring the status of all cores, including their index size.
> As it stands today, I need to issue N status requests plus N*M replication requests to get all the information I need.
> If STATUS command returned indexSize, number of requests would be just N.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2698) Enhance CoreAdmin STATUS command to return index size

Posted by "Mark Miller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079413#comment-13079413 ] 

Mark Miller commented on SOLR-2698:
-----------------------------------

{quote}+  // Two methods below are copied from ReplicationHandler.
+  // Could be refactored into an utility{quote}

Shouldn't we simply use org.apache.commons.io.FileUtils.sizeOfDirectory(f) in both places ?

> Enhance CoreAdmin STATUS command to return index size
> -----------------------------------------------------
>
>                 Key: SOLR-2698
>                 URL: https://issues.apache.org/jira/browse/SOLR-2698
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>    Affects Versions: 4.0
>            Reporter: Yury Kats
>         Attachments: SOLR-2698.patch
>
>
> CoreAdmin STATUS command returns all kinds of index info for all cores on the server, except for the index size.
> However, indexSize can be retrieved for an individual core via a /replication&command=details request.
> I have N Solrs servers, running M cores each. My application is monitoring the status of all cores, including their index size.
> As it stands today, I need to issue N status requests plus N*M replication requests to get all the information I need.
> If STATUS command returned indexSize, number of requests would be just N.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2698) Enhance CoreAdmin STATUS command to return index size

Posted by "Yury Kats (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081165#comment-13081165 ] 

Yury Kats commented on SOLR-2698:
---------------------------------

Mark, is this good to go or are you waiting for an updated patch from me? Just double checking.

> Enhance CoreAdmin STATUS command to return index size
> -----------------------------------------------------
>
>                 Key: SOLR-2698
>                 URL: https://issues.apache.org/jira/browse/SOLR-2698
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>    Affects Versions: 4.0
>            Reporter: Yury Kats
>            Assignee: Mark Miller
>         Attachments: SOLR-2698.patch
>
>
> CoreAdmin STATUS command returns all kinds of index info for all cores on the server, except for the index size.
> However, indexSize can be retrieved for an individual core via a /replication&command=details request.
> I have N Solrs servers, running M cores each. My application is monitoring the status of all cores, including their index size.
> As it stands today, I need to issue N status requests plus N*M replication requests to get all the information I need.
> If STATUS command returned indexSize, number of requests would be just N.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-2698) Enhance CoreAdmin STATUS command to return index size

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

Mark Miller updated SOLR-2698:
------------------------------

    Fix Version/s: 4.0

> Enhance CoreAdmin STATUS command to return index size
> -----------------------------------------------------
>
>                 Key: SOLR-2698
>                 URL: https://issues.apache.org/jira/browse/SOLR-2698
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>    Affects Versions: 4.0
>            Reporter: Yury Kats
>            Assignee: Mark Miller
>             Fix For: 3.4, 4.0
>
>         Attachments: SOLR-2698.patch, SOLR-2698.patch
>
>
> CoreAdmin STATUS command returns all kinds of index info for all cores on the server, except for the index size.
> However, indexSize can be retrieved for an individual core via a /replication&command=details request.
> I have N Solrs servers, running M cores each. My application is monitoring the status of all cores, including their index size.
> As it stands today, I need to issue N status requests plus N*M replication requests to get all the information I need.
> If STATUS command returned indexSize, number of requests would be just N.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2698) Enhance CoreAdmin STATUS command to return index size

Posted by "Jason Rutherglen (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13240498#comment-13240498 ] 

Jason Rutherglen commented on SOLR-2698:
----------------------------------------

+1 This'd be useful.
                
> Enhance CoreAdmin STATUS command to return index size
> -----------------------------------------------------
>
>                 Key: SOLR-2698
>                 URL: https://issues.apache.org/jira/browse/SOLR-2698
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>    Affects Versions: 4.0
>            Reporter: Yury Kats
>            Assignee: Mark Miller
>             Fix For: 4.0
>
>         Attachments: SOLR-2698.patch, SOLR-2698.patch
>
>
> CoreAdmin STATUS command returns all kinds of index info for all cores on the server, except for the index size.
> However, indexSize can be retrieved for an individual core via a /replication&command=details request.
> I have N Solrs servers, running M cores each. My application is monitoring the status of all cores, including their index size.
> As it stands today, I need to issue N status requests plus N*M replication requests to get all the information I need.
> If STATUS command returned indexSize, number of requests would be just N.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org