Logic Machine Forum
Trend logs size - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Trend logs size (/showthread.php?tid=792)



Trend logs size - leonidas - 17.05.2017

Hello,

I want to create >100 trend logs (each about 0.4mb). So where these logs are stored on LM and is it possible I run out of storage by doing this? 
As I noticed, when I create logs System Status -> Memory increases, which is total of 122mb. Can I store those logs in other place, for example System Status -> Partitions -> /dev/mmcblk0p3, there are free 3.5gb space.

Leonidas.


RE: Trend logs size - admin - 17.05.2017

Trends and main db is stored in RAM and is copied to SD every 30 minutes. This is a must to prolong SD card lifetime. The maximum number of space that trends can use is limited in the current RC firmware.


RE: Trend logs size - leonidas - 17.05.2017

(17.05.2017, 07:37)admin Wrote: Trends and main db is stored in RAM and is copied to SD every 30 minutes. This is a must to prolong SD card lifetime. The maximum number of space that trends can use is limited in the current RC firmware.

So what's the limit? I use LM5lite


RE: Trend logs size - admin - 17.05.2017

~30MB


RE: Trend logs size - leonidas - 17.05.2017

OK, thanks. Seems like I will run out of space with 100 trends..


RE: Trend logs size - Kai-Roger - 18.03.2019

(17.05.2017, 08:05)admin Wrote: ~30MB

Hi.

Why is there so little storage for the trend logs? Becouse of total available RAM?

BR
Kai-Roger


RE: Trend logs size - Daniel - 18.03.2019

(18.03.2019, 13:30)Kai-Roger Wrote:
(17.05.2017, 08:05)admin Wrote: ~30MB

Hi.

Why is there so little storage for the trend logs? Becouse of total available RAM?

BR
Kai-Roger

30MB was on hardware without SPI and yes this limit was due to RAM. On hardware with SPI the limit is around 21MB due to SPI size.


RE: Trend logs size - Kai-Roger - 18.03.2019

(18.03.2019, 13:56)Daniel. Wrote:
(18.03.2019, 13:30)Kai-Roger Wrote:
(17.05.2017, 08:05)admin Wrote: ~30MB

Hi.

Why is there so little storage for the trend logs? Becouse of total available RAM?

BR
Kai-Roger

30MB was on hardware without SPI and yes this limit was due to RAM. On hardware with SPI the limit is around 21MB due to SPI size.

Is it the same limit on the newest LM5?


RE: Trend logs size - Daniel - 18.03.2019

(18.03.2019, 14:12)Kai-Roger Wrote:
(18.03.2019, 13:56)Daniel. Wrote:
(18.03.2019, 13:30)Kai-Roger Wrote:
(17.05.2017, 08:05)admin Wrote: ~30MB

Hi.

Why is there so little storage for the trend logs? Becouse of total available RAM?

BR
Kai-Roger

30MB was on hardware without SPI and yes this limit was due to RAM. On hardware with SPI the limit is around 21MB due to SPI size.

Is it the same limit on the newest LM5?
yes


RE: Trend logs size - manos@dynamitec - 20.05.2019

Hello All,

Are the trend logs overwritten in case of a project restore? If yes is there a way I could download the data and re-upload them after the project upload? 

Thank you in advance


RE: Trend logs size - admin - 21.05.2019

Trend logs are part of whole backup. There's no built-in way to do partial backup restore. For trends this is not trivial because each trend log is stored as a separate file and there are also main database entries.


RE: Trend logs size - manos@dynamitec - 21.05.2019

(21.05.2019, 06:16)admin Wrote: Trend logs are part of whole backup. There's no built-in way to do partial backup restore. For trends this is not trivial because each trend log is stored as a separate file and there are also main database entries.

OK. But if I want to restore a backup of a project on a LM in the office and make all changes needed, then go on-site or do a remote project restore how can I save and restore the data that are logged in the mean time (can be days or months or years)?


RE: Trend logs size - Daniel - 21.05.2019

It depend of what changes you want to make. If you want to update just scripts or visu then this you can backup separately and restore on site.


RE: Trend logs size - manos@dynamitec - 21.05.2019

(21.05.2019, 07:48)Daniel. Wrote: It depend of what changes you want to make. If you want to update just scripts or visu then this you can backup separately and restore on site.

Hello Daniel,

I know that I could restore just the scripts or import visu pages and or layouts/widgets and anything related to the visualizaiton. I have done that but then you will need to re-assign the widgets to the visu object because the IDs are not the same. And if there are additions and changes to the knx objects or virtual objects then it's not easy so restoring the whole project is more solid and error-free solution I guess. 
It would be very nice if we could do a trend logs database backup just before the project restore and then upload it back in place so that the trends are affected in the minimum. 

Regards and thank you for your reply