Classify the sound first; the fix follows from the classification, not from the heater's age.
Four sounds, four causes
One sharp thump when a tap closes. Water hammer. The moving column stops abruptly and the shock runs back to the heater. Long runs and few restraints make it louder.
Knocking while the burner or element runs. expansion. On a sealed system, pressure has to move somewhere; a failed vessel is the usual reason.
Rattle at the first draw of a cold morning. Pipe movement against framing or a missing clip.
Gurgle. Debris or steam under a layer — the popping question rather than this one.
The setting
Steep lots, long runs through shaded spaces, and a wide day-to-night temperature swing at about 5,880 feet. All three amplify the second and third causes.
What to check
The expansion vessel's charge and whether its air side holds water; the relief pipe through a heating cycle; the pipe supports along the run. Sediment gets assessed at the same time.
The fixes
Clips and restraints, restored expansion capacity, and occasionally an arrestor at the fixture that triggers it.
Why bother before winter
A loose, hammering system in a cabin that will stand empty is a bet on joints holding through a freeze.
What to have ready
The sound, its timing, and the relief valve's history.