Installing Mariadb in jail

Fred974

Contributor
Joined
Jul 2, 2016
Messages
190
Hi,

As TrueNAS is a ZFS filesystem, could anyone please provide me with some information on the dataset I need to create in order to run MariaDB server inside a TrueNAS jail?
Can the primarycache bet set in the web interface or is it command line only? I couldn't find the option when creating dataset.
I found this blog that seem good but not use if it still up to date. Also got question about compression. Should we be using lz4 now?

Thank you
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703

Fred974

Contributor
Joined
Jul 2, 2016
Messages
190
@sretalla thank you for the link you provided. Any suggestion when it come to the compression level for the dataset?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Lz4 usually presents no penalty (but may not deliver much compression)

You may be better to set it to none if performance is an objective.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
The information to create separate datasets for InnoDB tables and logfiles and complicated adjustment of ZFS parameters is according to Allan Jude and others who work on OpenZFS outdated.
Simply putting all of your database file in the same dataset with the default blocksize of 128k will in most cases result in better performance ever since compressed ARC was introduced.
 
Top