What is “reasonable?” That depends on the type of business and the market. .... As for the time of the non compete, courts become hostile if the period is greater than five years but are seldom going to object to a period of three years.
https://www.stimmel-law.com/en/articles/non-compete-clauses-california-limitations?