Hello,
I want to backup my zabbix database... so I've some questions ! I'm monitoring about 20 hosts and "tuned" update intervals of items. I'm keeping history for 365 days. My server is a dedicated zabbix server; cpu is a Xeon 3Ghz and ram is 1 Ghz
1. I want to do 2 kind of backup :
- config only (for daily dump)
- full db (config + trends/history) (for weekly dump)
Which tables need I to backup for "config only" [or which tables don't I need (-: ]?
2. Tables are using innodb (as recommended) and I want to do hot backup (without stoping mysql) : is mysqldump the "best" free tool to do it ?
3. What are the most options to use with mysqldump to quickly generate a dump. I tried a mysqldump today and it took 22minutes for an output file of 2Gb. (do you find it quick/normal/slow according to my configuration?)
4. Have you some tricks to optimize DB performance ?
I red some papers around and put theses options in my my.cnf :
innodb_buffer_pool_size=751M
innodb_log_file_size=187M
innodb_additional_mem_pool=8M
innodb_log_buffer_size=8M
innodb_flush_log_at_trx_commit=1
something bad ? something else ? maybe something to add to the crontab to reindex ?
Thanks for your help,
n0mad
I want to backup my zabbix database... so I've some questions ! I'm monitoring about 20 hosts and "tuned" update intervals of items. I'm keeping history for 365 days. My server is a dedicated zabbix server; cpu is a Xeon 3Ghz and ram is 1 Ghz
1. I want to do 2 kind of backup :
- config only (for daily dump)
- full db (config + trends/history) (for weekly dump)
Which tables need I to backup for "config only" [or which tables don't I need (-: ]?
2. Tables are using innodb (as recommended) and I want to do hot backup (without stoping mysql) : is mysqldump the "best" free tool to do it ?
3. What are the most options to use with mysqldump to quickly generate a dump. I tried a mysqldump today and it took 22minutes for an output file of 2Gb. (do you find it quick/normal/slow according to my configuration?)
4. Have you some tricks to optimize DB performance ?
I red some papers around and put theses options in my my.cnf :
innodb_buffer_pool_size=751M
innodb_log_file_size=187M
innodb_additional_mem_pool=8M
innodb_log_buffer_size=8M
innodb_flush_log_at_trx_commit=1
something bad ? something else ? maybe something to add to the crontab to reindex ?

Thanks for your help,
n0mad


Comment