An all-pay auction-based server placement scheme can determine the optimal server-user ratio to maximize service provider revenue in mobile edge computing.