As others said, the frequency is based on the geometry.
The Magnets are big.
If you crack the beryllium ceramic insulator while taking a magnetron apart, and you inhale even some dust - you could get berylosis, a fatal disease. With the voltages and energies involved in a Magnetron, if you have to ask, don't. Be thoroughly versed in every single aspect of these devices before you do anything.