How old does a dog have to be to run a race?

On average, the peak age for a full-fledged racing dog is between 2 and 6 years old, but there are some dogs that race 8 years old.
Even after they retire from racing, they are kept in this kennel not only for racing but also for various other roles, such as touring, teaching puppies (training), and being kept as breeding dogs. (They will spend their entire lives in this kennel (life expectancy 12-15 years).