https://www.iwm.org.uk/history/the-pals-battalions-of-the-fi...
Basically, large groups of young men from the same community (hundreds to thousands), would all join up patriotically into the same battalion. After all, if they were going to join a war, they might as well join together with those that they know and already have bonds with. Unfortunately, the unintended consequences were those same entire battalions could be wiped out in a single day (like at the Somme), and now you had a community losing nearly all of it's young men at the exact same time, with hundreds of families in the same area now missing a son at the exact same time. As one would expect, the effects of this would be devastating mentally, and demographically enough so as to destroy smaller communities that had sent the majority of their sons and now no longer had fathers for the next generation.
The units recruit from specific geographical areas.
Moreover, a battalion was a unit of around a thousand men, so the "pals battalions" -- where men were encouraged to volunteer by being allowed to serve with people they knew -- ended up being drawn from extremely narrow geographical areas. There were pals battalions of men who all worked in the same factory, of men who'd all attended school together, of the players from the local football club and all their fans. So when one of these battalions got wiped out, as many did in the battles of the Somme, a very specific community would suddenly more or less cease to exist.
IIRC some ancient Greek states exploited romantic partnerships to increase esprit de corps in cadres of men. Part of the thinking seemingly being that one wouldn't flee the battlefield and leave a sexual partner so easily as otherwise.
Of course what's good for making a fighting force isn't necessarily good for the rest of society. Or at least there's a cost to that benefit.
The pals battalions were the government's attempt to solve this problem. They offered potential recruits a kind of carrot: groups of men could join them together, with the guarantee that the group would be kept together in the same unit. You and your mates could go down to the recruiting office and sign up to support each other for the duration. Going to war is a scary thing, so that was an appealing proposition.
An unspoken stick accompanied the offer, of course. It was understood that if not enough volunteers could be found a draft would probably come eventually, and if you were drafted, you'd just get thrown into whatever unit the government chose to toss you into. So if you were a man of military age you were probably going to end up in the ranks one way or the other -- but if you volunteered, you could at least do your service among friendly faces.
The combined carrot and stick worked beyond the government's wildest expectations, drumming up a huge New Army (see https://en.wikipedia.org/wiki/Kitchener%27s_Army) in just a few months. But then that New Army got fed into the meatgrinder of the Somme, and the plan that had seemed so brilliant revealed its dark side as communities across Britain woke up to the realization that none of their men would be coming home.
An aside, the Royal Armoured Corps in the UK is regionally source, and artillery is to a little extent.
What do you have in mind?