The invention discloses an MEC-oriented distributed service scheduling method, which comprises the following steps of: for any service in a
service set, determining M MEC servers closest to the service according to a shortest
route algorithm, adding the M MEC servers into an available MEC
server set; for any service in the available MEC
server set, determining, by using a
polling mode, whether the jth computing resource on each
server is idle or not at an i moment; if the jth computing resource is idle, allocating the computing resource to the service; and in the same way, performing the same process on the j+1th computing resource to the Jth computing resource, obtaining the resource allocated to the service on each MEC server, namely the size of
task segmentation, determining the starting time and the ending time of the service, and calculating the
completion time of all the services. According to the method, the service segmentation problem and the MEC
resource allocation problem are fused together for joint optimization, the computing resources of the servers are fully utilized, the load between the servers is balanced, and the queuing
waiting time of the terminal is reduced.