  Task offloading plays a pivotal role in mobile edge computing, enabling
terminal devices to enhance task execution efficiency and conserve energy.
However, servers are reluctant to offer services without compensation.
Currently, pricing mechanisms are commonly employed to incentivize servers to
serve terminal devices, with servers earning revenue through payments from
these devices. Given the rapid surge in terminal devices, determining the
optimal number of servers placement for service providers (SPs) to maximize
revenue is crucial. In this paper, we propose a server placement scheme based
on an all-pay auction framework. Experimental simulations reveal that an
optimal server-user ratio of approximately 25% maximizes SP profits.
