A bit of a survey from the Venice Commission, some sort of gang of euro-judicial boffins:
https://www.icj.org/wp-content/uploads/2014/06/CDL-AD2007_02...
I certainly hope we can improve our "judicial" system in USA, to make it more just, less tyrannical, less capricious, less totalitarian, less active, etc. Sometimes I wonder whether that's possible for a society that's happy to spend $750B/yr on killing machines and in fact has killed millions of innocents overseas over the last several decades. As Thucydides wrote, the tyranny that the Athenian empire imposed on others it eventually imposed on itself.
Lower level appointments go thru a provincial JAAC, while superior and above go thru a federal JAAC. After JAAC's shortlisting, the respective provincial or federal government or minister of justice decides.
I suppose there's always a way to stack the committee to get a biased shortlist to choose from, but the committees aren't all appointed by the government. Some are appointed by judges, law society, etc. In practice, it seems to work way better than just having a city council choose.