uselagoon / build-deploy-tool

Tool to generate build resources
4 stars 6 forks source link

max-allowed-packet too small in prebackuppod dump command #323

Closed smlx closed 3 months ago

smlx commented 3 months ago

I found a backup failure caused by the hard-coded --max-allowed-packet=500M in the prebackuppod template being too small. The command was failing with this error:

mysqldump: Error 2013: Lost connection to server during query when dumping table `cache_config` at row: 23

Bumping the value to 600M allowed the dump to complete.

The protocol maximum of this value is 1G in both RDS and MySQL. Using that value also worked, so I guess we should just use the maximum value.

screenshot_2024-06-06-085427

The 500M value is hard-coded in several places. I guess all should be changed?

shreddedbacon commented 3 months ago

Makes sense to use the max allowed then