Six months is far too long for a senior developer. I had a company in the UK try and get me to sign six months as the CTO with a decent sized team a few years ago, and even then they weren't surprised when I laughed it off and we settled on 3 months.
An engineering manager at a previous company here in Germany told me, after I complained about my 3 month notice, that his former role as a CTO had a 12 month notice.