We have enabled the TTL feature for some of our indices. This works like a
charm. But we want to disable this feature for one of our indices
temporaryly. I tried with
what exactly do you want to achieve by disabling TTL? Do you mean you want
to suspend the purge process of expired documents temporarily for a
specific index? Or is it that you have a default TTL value set for this
index and you want that temporarily all new indexed docs come with no TTL?
Or is it something else?
Am Donnerstag, 15. März 2012 11:46:41 UTC+1 schrieb Benjamin Devèze:
what exactly do you want to achieve by disabling TTL? Do you mean you want
to suspend the purge process of expired documents temporarily for a
specific index? Or is it that you have a default TTL value set for this
index and you want that temporarily all new indexed docs come with no TTL?
Or is it something else?
We want to suspend the purge process. I know that we can set the purge
interval. As far as I know this is a global setting. We only want to
disable it for one index.
Ok I understand your problem and reading the code of IndicesTTLService it
is clearer why you try to disable the TTL field for your specific index so
that it won't be candidate for the purge. Disabling temporarily the TTL
field to disable purge temporarily won't be a great idea because if you
still index docs with TTL the TTL of these docs won't be set. Purge
interval could have helped but I think you are right it is a global setting
and it is not that great to temporarily disable the purge because if you
set it to 24h for example and just after you want to reenable it I am
afraid you will have to wait 24h for the next purge...
I think we should add a global setting to just disable, enable purger and
also a per index setting to do the same.
Kimchy any thoughts on this? If you are ok with that I can open an issue
and implement it.
Thomas for your immediate problem I'm afraid there is not really a
solution...
On Thursday, March 15, 2012 12:35:52 PM UTC+1, Thomas Peuss wrote:
Hi Benjamin!
Am Donnerstag, 15. März 2012 11:46:41 UTC+1 schrieb Benjamin Devèze:
what exactly do you want to achieve by disabling TTL? Do you mean you
want to suspend the purge process of expired documents temporarily for a
specific index? Or is it that you have a default TTL value set for this
index and you want that temporarily all new indexed docs come with no TTL?
Or is it something else?
We want to suspend the purge process. I know that we can set the purge
interval. As far as I know this is a global setting. We only want to
disable it for one index.
Ok I understand your problem and reading the code of IndicesTTLService it
is clearer why you try to disable the TTL field for your specific index so
that it won't be candidate for the purge. Disabling temporarily the TTL
field to disable purge temporarily won't be a great idea because if you
still index docs with TTL the TTL of these docs won't be set. Purge
interval could have helped but I think you are right it is a global setting
and it is not that great to temporarily disable the purge because if you
set it to 24h for example and just after you want to reenable it I am
afraid you will have to wait 24h for the next purge...
I think we should add a global setting to just disable, enable purger and
also a per index setting to do the same.
Kimchy any thoughts on this? If you are ok with that I can open an issue
and implement it.
Thomas for your immediate problem I'm afraid there is not really a
solution...
On Thursday, March 15, 2012 12:35:52 PM UTC+1, Thomas Peuss wrote:
Hi Benjamin!
Am Donnerstag, 15. März 2012 11:46:41 UTC+1 schrieb Benjamin Devèze:
what exactly do you want to achieve by disabling TTL? Do you mean you
want to suspend the purge process of expired documents temporarily for a
specific index? Or is it that you have a default TTL value set for this
index and you want that temporarily all new indexed docs come with no TTL?
Or is it something else?
We want to suspend the purge process. I know that we can set the purge
interval. As far as I know this is a global setting. We only want to
disable it for one index.
Just to let you know that the feature has been pushed. You have now in
master and will have in next released ES versions a new index setting named
"index.ttl.disable_purge" to do what you needed.
Thanks for the suggestion of this improvement.
On Tuesday, March 20, 2012 9:29:09 AM UTC+1, Thomas Peuss wrote:
Hello Benjamin!
Am Samstag, 17. März 2012 11:47:15 UTC+1 schrieb Benjamin Devèze:
Am Freitag, 23. März 2012 10:54:32 UTC+1 schrieb Benjamin Devèze:
Just to let you know that the feature has been pushed. You have now in
master and will have in next released ES versions a new index setting named
"index.ttl.disable_purge" to do what you needed.
W dniu czwartek, 15 marca 2012 11:25:56 UTC+1 użytkownik Thomas Peuss
napisał:
Hi!
We have enabled the TTL feature for some of our indices. This works like a
charm. But we want to disable this feature for one of our indices
temporaryly. I tried with
So did anyone ever have an answer as to why the TTL wasn't actually being
disabled? I have a default TTL, but I have 1 index that I would like for
new documents to not be given a TTL. This index already exists, I just
want to disable the TTL so as new ones arrive they aren't given a TTL.
I have done exactly as the original poster here did, and when I do my GET
the value still says it is enabled. I even tried closing the index first,
then making the change. It always replies as if it accepted the command,
but the value in the get shows it is still active.
On Friday, January 18, 2013 11:48:55 AM UTC-5, Michał wrote:
W dniu czwartek, 15 marca 2012 11:25:56 UTC+1 użytkownik Thomas Peuss
napisał:
Hi!
We have enabled the TTL feature for some of our indices. This works like
a charm. But we want to disable this feature for one of our indices
temporaryly. I tried with
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.