does cav_to_inf.ratio mean that the best army composition is half infantry, half cavalry(for example 10k inf and 10k cav)?
It means that you get a bonus (IIRC to defense/not taking damage) so long as your cavalry to infantry ratio is below that.
Anything with more infantry still gives the bonus, anything with less doesn't.