Well, we have precedents of what works for that over very long periods of time:
Racially/culturally cohesive groups without too many people concentrated in one area for too long.
That's basically the only thing that works long term. At least for now.
