I believe my grandfather held that a decade was about right, but I have no cite for that. Just memory of him or Dad saying something along that line. Seems short to me, though.
Personally, I think Steven's quote:
As long as the relationship is healthy.
Sounds about right. 10 years may be too long for some, too short for others. Even 20 is probably still okay for some, though I could see it being a lot harder for the congregation to adjust to a change in ministry after that long. Some of the youth might never have known another minister, for instance.
My family church went through ministries of varying length, with the minister who led my confirmation class being around for about a decade. His successor, the one I helped find, lasted around twenty IIRC, but my family had all drifted away from that church by then so I am not sure exactly when he left.
My UU church suffered from a fair bit of instability in the pulpit in the time I was there, which is kind of the opposite problem to a minister overstaying their welcome. I think our longest settled, full-time minister lasted 4 years. Our last full-time settled minister probably could have gone much longer, but we couldn't afford to pay him full-time anymore so he found a new call in Minnesota (he was an American and his fiancee was also a UU minister who was serving a congregation in the US so probably better for them anyhow).