Different filesize of rrd4j - same config?

I just installed and configured rrd4j persistence for some of my items (I want an chart, which I can mail daily):

rrd4j.cfg

rossbuehel.def=GAUGE,900,U,U,300
rossbuehel.archives=AVERAGE,0.5,1,365:AVERAGE,0.5,7,300
rossbuehel.items=RB_MiWeather_Temperature_Kitchen, RB_MiWeather_Humidity_Kitchen, RB_MiWeather_Pressure_Kitchen, RB_MiWeather_Temperature_Outside, RB_MiWeather_Temperature_Hall, RB_MiWeather_Temperature_Matresses

rrd4j.persist

Strategies {
	everyMinute	: "0 * * * * ?"
	default = everyChange
}
 
Items {
	// Rest (Licht, Heizung, etc.) wird bei Änderung persistiert, aber beim Start nicht neu geladen
	RB_MiWeather_Temperature_Kitchen, RB_MiWeather_Humidity_Kitchen, RB_MiWeather_Pressure_Kitchen, RB_MiWeather_Temperature_Outside, RB_MiWeather_Temperature_Hall, RB_MiWeather_Temperature_Matresses : strategy = everyMinute, everyChange
}

This results in these file sizes:

[12:47:34] openhabian@openHAB2:~$ ls -la /srv/openhab2-userdata/persistence/rrd4j
insgesamt 160
drwxrwxr-x+ 2 openhab openhabian  4096 Feb 13 11:53 .
drwxrwxr-x+ 5 openhab openhabian  4096 Dez 28 20:15 ..
-rw-rw-r--  1 openhab openhabian 28280 Feb 13 13:18 RB_MiWeather_Humidity_Kitchen.rrd
-rw-rw-r--  1 openhab openhabian 28280 Feb 13 13:18 RB_MiWeather_Pressure_Kitchen.rrd
-rw-rw-r--  1 openhab openhabian 28280 Feb 13 13:18 RB_MiWeather_Temperature_Hall.rrd
-rw-rw-r--  1 openhab openhabian  5664 Feb 13 13:18 RB_MiWeather_Temperature_Kitchen.rrd
-rw-rw-r--  1 openhab openhabian 28280 Feb 13 13:18 RB_MiWeather_Temperature_Matresses.rrd
-rw-rw-r--  1 openhab openhabian 28280 Feb 13 13:18 RB_MiWeather_Temperature_Outside.rrd
-rwxrwxr-x  1 openhab openhabian    32 Dez 18 13:44 Readme.txt

I’m concerned, the RB_MiWeather_Temperature_Kitchen.rrd is way smaller than the rest?

In your .cfg you configure to rrd4j store at a step-rate of 300 seconds, although every minute is needed! Confirm you get the expected results. I would Change that value to 60!
Did you change any setup after the intial use of rrd4j? In this case I’d suggest to stop OH, remove all .rrd files and restart. rrd4j is known to cause Problems when changing the setup…

I know from some works in the past, that working with rrd isn’t easy! :wink: So I carefully setup my environment once and didn’t change anything. The 300 seconds results from reading some best practises here in the forum. But I can always change to 60, no prob.

Did that - restarted OH2 and got this:

[15:24:57] openhabian@openHAB2:~$ ls -la /srv/openhab2-userdata/persistence/rrd4j
insgesamt 160
drwxrwxr-x+ 2 openhab openhabian  4096 Feb 13 15:25 .
drwxrwxr-x+ 5 openhab openhabian  4096 Dez 28 20:15 ..
-rw-rw-r--  1 openhab openhab    28280 Feb 13 15:25 RB_MiWeather_Humidity_Kitchen.rrd
-rw-rw-r--  1 openhab openhab    28280 Feb 13 15:25 RB_MiWeather_Pressure_Kitchen.rrd
-rw-rw-r--  1 openhab openhab    28280 Feb 13 15:25 RB_MiWeather_Temperature_Hall.rrd
-rw-rw-r--  1 openhab openhab     5664 Feb 13 15:25 RB_MiWeather_Temperature_Kitchen.rrd
-rw-rw-r--  1 openhab openhab    28280 Feb 13 15:25 RB_MiWeather_Temperature_Matresses.rrd
-rw-rw-r--  1 openhab openhab    28280 Feb 13 15:25 RB_MiWeather_Temperature_Outside.rrd
-rwxrwxr-x  1 openhab openhabian    32 Dez 18 13:44 Readme.txt

so, basically same sizes, but the items are exactly the same:

Number RB_MiWeather_Temperature_Kitchen 	"Temperatursensor Küche [%.1f C]"			<temperature> 		(gRossbuehel, Huette, RBChart)	{ expire="1h", mqtt="<[mqttcottage:huette/sensoren/RB_MiWeather_Temperature_Kitchen:state:default]" }
Number RB_MiWeather_Temperature_Outside 	"Temperatursensor Aussen [%.1f C]"			<temperature> 		(gRossbuehel, Huette, RBChart)	{ expire="1h", mqtt="<[mqttcottage:huette/sensoren/RB_MiWeather_Temperature_Outside:state:default]" }

I don’t get it…? As the filesize is much smaller, I’d expect to have different rrd-configuration for each file then? But the rrd4j.cfg applies to every item, doesn’t it?

Regarding the change of the step size I expect no change in the file size, only in the persisted values. Using 30 I would expect a change only every fifth minute and not every minute.
Regarding the file size, you are persisting 665 values (365 in archive 1 and 300 in archive 2). Therefore the lower value might include all values already.

I find it strange to have all other items having 4x bigger file sizes? But I’ll see. Can the rrds be updated with historic data? I have all in my mysql persistence already. In case I can just import those later?

As far as I know this is not possible, mainly because archives greater than one are created as the values are coming in in a timely manner.

OK. Thanks- I’ll just let it run a while and see, what happens…

See here for solution: don’t use spaces in rrd4j.cfg