in my opinion its done by the zones/divisions where the train belongs. And they normally do it in festival/holidays season for the very reason that theres a huge ruush in trains, that too in only those trains which can be augmented, usually the largest rake seen is of 26 coaches, so I think thats the limit and it also depends upon the routes like diesel/electric etc...