<div dir="ltr">Hi List<br><br>I'm still involved with a legacy application that still runs geonode 2.10-rc4. Yes you read that right. Please do not ask why I'm on this version and why I have not upgraded, it is a long, painful and sorrowful tale.<br><br>In my case, geonode still works, lol, and geonode monitoring is enabled and it has been configured based on the defaults, following roughly this approach in the 3.3x docs <a href="https://docs.geonode.org/en/3.3.x/intermediate/monitoring/geonode_monitoring/index.html">https://docs.geonode.org/en/3.3.x/intermediate/monitoring/geonode_monitoring/index.html</a>. I have set settings.MONITORING_DATA_TTL = timedelta(days=90). This has been working fine for (a very long) time.<br><br><div>However, there's some database performance issues that I cannot pin down, possibly due to another factor. </div><div><br></div><div>I've found that collect_metrics management command takes 2.5 minutes to run which is too long and I want to reduce the transactions on the database generated by geonode monitoring.</div><div><br></div><div>I think I've misunderstood what the management command "collect_metrics" actually does. I thought collect_metrics inserts data to the database monitoring tables. However, I've disabled the supervisor service and the crontab. Yet inserts to "monitoring_requestevent" table are happening on a on a near real-time basis. Therefore, some other process must be handling this.</div><br>In my use case, I do not use any of the monitoring front end ui features, these are all disabled. My current use case is to connect to the postgres database and take a dump of the monitoring_requestevent table on an ad hoc basis for offline analysis of traffic, that's it.<br><br>To reduce traffic on the database from the collect_metrics which appears to run every minute based on the suggested cron in the docs:<br>* * * * * supervisorctl start geonode-monitoring<br><br>I'm planning to set my cron to once per 24 hours to simply drop data that is >90 days old from the database table.<br><div>0 0 * * * supervisorctl start geonode-monitoring</div><div><br></div><div>
I think I still do not understand exact what "collect_statics" actually doe, so <b>my</b> <b>question is, are there any other side-effects or impacts that I have not considered by moving a collect statics once per 24 hours instead of every minute?</b></div><br><div>Thanks for any help or pointers on this.</div><div><br></div><div>Cheers</div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">---<br><div><font face="courier new, monospace">Sam Franklin</font></div></div></div></div></div></div></div>