Hi, I have my APM setup, and I thought I setit up correctly for ILM, it rolled over once from 0000001 to 0000002 but now the index won't rollover, I get the following error
illegal_argument_exception: setting [index.lifecycle.rollover_alias] for index [apm-6.7.1-span-000002] is empty or not defined
Could anyone offer any help or advice on debugging and getting my rollovers working?
Sorry to hear. I am assuming you are using apm-server and elasticsearch 7.3, is that correct?
Can we see your apm-server.yml, index templates, and ilm policies?
So now the error message is gone. The issue that I have now is that you can see I've set the index to rollover after 100mb. It's past that threshold, and it's current action shows rollover, but it doesn't look like it's doing it, it's now up to 130mb and is still trying to do the rollover
The index has rolled over now, is there any indication of how long a rollover takes? it doesn't seem right that an index will get to double (200mb in this case) it's policy limit before the rollover completes and opens a new index
Glad that you found the issue, you needed that alias indeed!
max_size should be taken as an estimate, and not as an exact value. People often use much larger values for that setting, and in the context of many gigabytes 100 megs deviation doesn't make much of a difference.
As a matter of fact (unless you were only testing), If you want to avoid too much fragmentation you might consider bumping up that quite a bit: somewhere between 10 and 50 Gb is very reasonable.
A rollover doesn't take much time, but it kicks in every 10 minutes by default. You can change it like this if you wish:
Thanks for your response, yeah the 100mb was just for testing the rollover, we wouldn't have such a strict size policy as that, seeing as we'll be doing 50gb rollovers in a cluster that has about 8tb of space, so that's good news. Thanks for the help
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.