Every gallon of Scottsdale water that enters a heater leaves a little of its mineral load at the bottom of the tank. Over years that becomes a hard crust the burner has to heat through.
What the banging is
Steam forcing its way out from under that crust. It is the earliest warning you get.
Do it yearly
Twice yearly if you are on the east edge of the valley where the water is hardest.