> Ohad,
>
> I've enabled debug and snipped out the section in the log that I think
> pertains to this. Let me know if I snipped too much.
>
> So not using 'find in batches' I did: rake18 reports:expire days=300
> RAILS_ENV="production" and it deleted some older reports! It took about 45
> seconds to run and I didn't see any crazy memory utilization (maybe because
> not a ton was deleted?)
>
> Here is output from 'rake18 reports:expire days=280 RAILS_ENV="production"'
> after having run 'rake18 reports:expire days=290 RAILS_ENV="production"', so
> deleting 10 days of data from a time I didn't have many systems reporting
> yet.
>
> http://pastebin.com/NmkZYSGL
Looking at your logs, I'm really troubled.
Are you sure you are running a recent version of foreman (e.g. 0.4.x) ?!
The logs you show are consistent with pre
Bug #687: rake reports:expire abuses memory and network bandwidth - Foreman behavior.
the app/model/report.rb expire method should look something like this:
cheers,
Ohad
···
On Tue, Mar 20, 2012 at 9:38 PM, jmccann wrote:Let me know if there is anything else that could help.
Thanks,
JakeOn Tuesday, March 20, 2012 1:57:58 PM UTC-5, jmccann wrote:
Ohad,
This only worked better for me when so far doing status=0 for now,
probably as I have no reports with status of 0. Maybe when I try to do it
with the other status I am looking for I will again run into some kind of
issue.I will enable debugging before I do anything more and provide results.
Thanks,
JakeOn Tuesday, March 20, 2012 1:57:58 PM UTC-5, jmccann wrote:
Ohad,
This only worked better for me when so far doing status=0 for now,
probably as I have no reports with status of 0. Maybe when I try to do it
with the other status I am looking for I will again run into some kind of
issue.I will enable debugging before I do anything more and provide results.
Thanks,
JakeOn Tuesday, March 20, 2012 1:57:58 PM UTC-5, jmccann wrote:
Ohad,
This only worked better for me when so far doing status=0 for now,
probably as I have no reports with status of 0. Maybe when I try to do it
with the other status I am looking for I will again run into some kind of
issue.I will enable debugging before I do anything more and provide results.
Thanks,
Jake–
You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/foreman-users/-/0ZR5LsSII28J.To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.