I previously experimented with a rollup job that ran every 30 minutes, with an interval of 1 hour, and a delay of 12 hours.
I wanted to experiment with rolling up older data. I have a new job that runs every 30 minutes, with an interval of 1 hour, and a delay of 7 days. After approx. 18 hours, I see no data has been rolled up. Do I need to wait a week for data to appear? Or am I missing something else? The previous job worked as expected.
Hey @mcguacon, apologies for the delay (on a business trip right now with minimal connectivity).
This is correct. The indexer wakes up on the cron schedule, looks at the most recent timestamp in the index and decides if it it needs to process data based on the last position and the delay value. In this case, the delay means no documents will be generated until 7 days have passed.
The indexer isn't doing any work or buffering things up in memory, it's just going back to sleep until the delay has passed.
That does help, thank you!
So just to clarify, if I make a job now with a 7d delay, it wont retroactively rollup all the data in my index that's 7 days old right now?
Hey, sorry for the delay (heh), was traveling for work.
It will actually So the way the indexer works is like this:
Indexer starts. Is there persisted checkpoint for this job? If no, start from the beginning of the index, otherwise pickup from the most recent checkpoint
Is there data that is older than now - delay? If yes, start rolling up that data. If no, go back to sleep
So for example, if your index has three weeks of data, the first two weeks and one day will be rolled up, then the remaining 6 days will block until another day's worth of data is ingested (assuming the index ends with a "now'ish" timestamp).
If instead you had three weeks of data, but all the data was a year old, all the data would be rolled up because the most recent timestamp in the index is older than now - delay
I have had success in the past with other rollup jobs, but other ones have ended up like this, essentially doing nothing. My anecdotal evidence seems to be if I configure the job via the wizard, it doesn't work. Just using the API in the dev tools, I believe they work fine. We are on 6.5.
Can you paste the rollup configuration that the UI generated (GET _xpack/rollup/job/<job_id>)? I'm wondering if maybe the cron is being misconfigured by the UI, and so it isn't triggering very often?
Is there anything about rollups in the server logs?
Hmm. Config looks ok. Do you see anything in the server logs?
Sometimes the job can run into issues (incorrectly mapped field, like trying to average a string, etc) and will log the exception.
How long has this job been "running"? trigger_count: 3 means the cron has only fired three times, so if the job has been running for longer than three days there could be something wrong with the task itself.
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.