How can we set the size of an Index?


(Abhishek Jajoria) #1

I have an index with 14miln docs and its current size is 2 gb which keeps
on growing from couchdb river plugin . Is there any way so that I can set
the size of an index so that if the size grows any further , ES should
create a new index automatically


(Ævar Arnfjörð Bjarmason) #2

On Fri, Apr 27, 2012 at 12:59, jajoria abhishek
jajoria.abhishek@gmail.com wrote:

I have an index with 14miln docs and its current size is 2 gb which keeps on
growing from couchdb river plugin . Is there any way so that I can set the
size of an index so that if the size grows any further , ES should create a
new index automatically

No, just write a script external to ES that polls it for the size and
creates a new index if it exceeds the size limit.


(Abhishek Jajoria) #3

How can we check the size of index using script ?

On Fri, Apr 27, 2012 at 4:49 PM, Ævar Arnfjörð Bjarmason
avarab@gmail.comwrote:

On Fri, Apr 27, 2012 at 12:59, jajoria abhishek
jajoria.abhishek@gmail.com wrote:

I have an index with 14miln docs and its current size is 2 gb which
keeps on
growing from couchdb river plugin . Is there any way so that I can set
the
size of an index so that if the size grows any further , ES should
create a
new index automatically

No, just write a script external to ES that polls it for the size and
creates a new index if it exceeds the size limit.


(Ævar Arnfjörð Bjarmason) #4

On Fri, Apr 27, 2012 at 13:33, jajoria abhishek
jajoria.abhishek@gmail.com wrote:

How can we check the size of index using script ?

http://www.elasticsearch.org/guide/reference/api/admin-indices-status.html


(Abhishek Jajoria) #5

thanks

On Fri, Apr 27, 2012 at 5:33 PM, Ævar Arnfjörð Bjarmason
avarab@gmail.comwrote:

On Fri, Apr 27, 2012 at 13:33, jajoria abhishek
jajoria.abhishek@gmail.com wrote:

How can we check the size of index using script ?

http://www.elasticsearch.org/guide/reference/api/admin-indices-status.html


(Shay Banon) #6

Indices stats is preferred compared to indices status API (with store and
possibly docs flags set).

On Fri, Apr 27, 2012 at 3:09 PM, jajoria abhishek <
jajoria.abhishek@gmail.com> wrote:

thanks

On Fri, Apr 27, 2012 at 5:33 PM, Ævar Arnfjörð Bjarmason <avarab@gmail.com

wrote:

On Fri, Apr 27, 2012 at 13:33, jajoria abhishek
jajoria.abhishek@gmail.com wrote:

How can we check the size of index using script ?

http://www.elasticsearch.org/guide/reference/api/admin-indices-status.html


(Abhishek Jajoria) #7

How can we check Indices stats using java API?

On Sun, Apr 29, 2012 at 10:08 PM, Shay Banon kimchy@gmail.com wrote:

Indices stats is preferred compared to indices status API (with store and
possibly docs flags set).

On Fri, Apr 27, 2012 at 3:09 PM, jajoria abhishek <
jajoria.abhishek@gmail.com> wrote:

thanks

On Fri, Apr 27, 2012 at 5:33 PM, Ævar Arnfjörð Bjarmason <
avarab@gmail.com> wrote:

On Fri, Apr 27, 2012 at 13:33, jajoria abhishek
jajoria.abhishek@gmail.com wrote:

How can we check the size of index using script ?

http://www.elasticsearch.org/guide/reference/api/admin-indices-status.html


(Shay Banon) #8

client.admin().indices().prepareStats...

On Mon, Apr 30, 2012 at 7:38 AM, jajoria abhishek <
jajoria.abhishek@gmail.com> wrote:

How can we check Indices stats using java API?

On Sun, Apr 29, 2012 at 10:08 PM, Shay Banon kimchy@gmail.com wrote:

Indices stats is preferred compared to indices status API (with store and
possibly docs flags set).

On Fri, Apr 27, 2012 at 3:09 PM, jajoria abhishek <
jajoria.abhishek@gmail.com> wrote:

thanks

On Fri, Apr 27, 2012 at 5:33 PM, Ævar Arnfjörð Bjarmason <
avarab@gmail.com> wrote:

On Fri, Apr 27, 2012 at 13:33, jajoria abhishek
jajoria.abhishek@gmail.com wrote:

How can we check the size of index using script ?

http://www.elasticsearch.org/guide/reference/api/admin-indices-status.html


(system) #9