I think it was this thread actually that gave me the idea it was chemistry related: Hayward T-Cell - Plug Corrosion
Salt level, and amperage according to one of the replies. I guess that isn't technically "chemistry".
In the same thread, JamesW suggests chemical exposure could cause it if you...