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.
The 500M value is hard-coded in several places. I guess all should be changed?
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: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.The
500M
value is hard-coded in several places. I guess all should be changed?