CN117651063A - Scheduling method and device and storage medium - Google Patents

Scheduling method and device and storage medium Download PDF

Info

Publication number
CN117651063A
CN117651063A CN202211080893.6A CN202211080893A CN117651063A CN 117651063 A CN117651063 A CN 117651063A CN 202211080893 A CN202211080893 A CN 202211080893A CN 117651063 A CN117651063 A CN 117651063A
Authority
CN
China
Prior art keywords
service
target
request
credit value
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211080893.6A
Other languages
Chinese (zh)
Inventor
付月霞
陆璐
孙滔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN202211080893.6A priority Critical patent/CN117651063A/en
Publication of CN117651063A publication Critical patent/CN117651063A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application provides a scheduling method, a scheduling device and a storage medium, wherein the scheduling method comprises the following steps: under the condition that a service request sent by a target request end is received, determining demand information according to the service request; searching a service credit value corresponding to the service providing end; selecting a target service provider corresponding to the target request terminal from the service providers based on the demand information and the service credit value; providing service for the target request terminal by calling the target service providing terminal; acquiring service information when a target service providing end provides service to a target requesting end; and updating the target service credit value corresponding to the target service provider based on the service information to execute a subsequent scheduling process based on the updated target service credit value. Through the technical scheme, the purposes of improving the service resource utilization rate and the computing efficiency are achieved.

Description

Scheduling method and device and storage medium
Technical Field
The present disclosure relates to the field of computer networks, and in particular, to a scheduling method and apparatus, and a storage medium.
Background
At present, the state of the network and the resource information of the data center are not perceived mutually, when a user requests a certain service, the network cannot request the service to an optimal service node for the user, so that the user experience is affected.
In the prior art, when selecting the best service node, only the computing power of different service nodes is considered, and the service node with the strongest computing power is allocated to the user as the best service node, however, the selection manner often wastes a part of computing resources, and sometimes even if the service node is allocated to the user, the service node does not provide enough computing resources for the user as expected, so that the computing requirement of the user is not met, and the computing efficiency is reduced.
Disclosure of Invention
The embodiment of the application provides a scheduling method, a scheduling device and a storage medium, which can improve the resource utilization rate and the computing efficiency.
The technical scheme of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a scheduling method, where the method includes:
under the condition that a service request sent by a target request end is received, determining demand information according to the service request; searching a service credit value corresponding to the service providing end; the service credit value is obtained based on the resource quantity, the resource quality and the historical service information corresponding to the service providing end;
selecting a target service provider corresponding to the target request terminal from the service providers based on the demand information and the service credit value; the target service providing end is called to provide service for the target request end;
Acquiring service information when the target service providing terminal provides the service to the target request terminal; and updating the target service credit value corresponding to the target service provider based on the service information so as to execute a subsequent scheduling process based on the updated target service credit value.
In the above scheduling method, before the service request sent by the target request end is received and the demand information is determined according to the service request, the method further includes:
under the condition that a registration request of a service providing end is received, acquiring the quantity and the quality of resources corresponding to the service providing end;
and setting an initial service credit value for the service provider according to the resource quantity and the resource quality.
In the above scheduling method, before the service request sent by the target request end is received and the demand information is determined according to the service request, the method further includes:
under the condition that a registration request of the target request end is received, setting an initial request credit value for the target request end;
after the target service provider is called to provide the service for the target request end, the method further comprises:
Determining transaction result information of the target request end after the service is used;
if the fact that the target request end does not complete the transaction within the preset time period is determined according to the transaction result information, reducing the request credit value corresponding to the target request end according to the resources used by the target request end, and obtaining an updated request credit value;
if the target request end completes the transaction within the preset time period according to the transaction result information, the request credit value corresponding to the target request end is improved according to the resources used by the target request end, and the updated request credit value is obtained.
In the above scheduling method, the target request end is a plurality of target request ends, and the method further includes:
under the condition that a plurality of service requests sent by a plurality of target request ends are received, determining a plurality of requirement information according to the plurality of service requests;
if one target service provider corresponding to the target requesters is selected from the service providers based on the plurality of demand information and the service credit values, acquiring a plurality of request credit values corresponding to the target requesters;
according to the multiple request credit values, determining a first target request end with the largest request credit value from the multiple target request ends; and calling the target service provider to provide service for the first target request terminal.
In the above scheduling method, after determining, according to the plurality of request credit values, a first target request end with a maximum request credit value from the plurality of target request ends, the method further includes:
searching a first service providing end which meets the requirement information corresponding to the residual target request end from the residual service providing ends; the remaining service providing terminals are service providing terminals except the target service providing terminal in the service providing terminals; the remaining target request terminals are request terminals except the first target request terminal in the target request terminals;
if the first service providing end is found, the first service providing end is called to provide service for the residual target request end;
if the first service provider is not found, the service is refused to be provided for the residual target request end, and the corresponding service provider is preferentially allocated for the residual target request end under the condition that the service request sent by the residual target request end is received next time.
In the above scheduling method, after the obtaining the service information when the target service providing end provides the service to the target requesting end, the method further includes:
If the service provided by the target service providing end for the target request end does not meet the requirement information according to the service information, the target service credit value is reduced according to the resource provided by the target service providing end;
and if the service provided by the target service provider for the target request end meets the requirement information according to the service information, the target service credit value is improved according to the resource provided by the target service provider.
In the above scheduling method, the selecting, from the service providers, a target service provider corresponding to the target request terminal based on the demand information and the service credit value includes:
selecting at least one idle service providing end meeting the requirement information from the service providing ends; searching at least one service credit value corresponding to the at least one idle service provider from the service credit values;
and determining a first idle service providing end with the maximum service credit value from the at least one idle service providing end according to the at least one service credit value, and determining the first idle service providing end as the target service providing end.
In a second aspect, an embodiment of the present application provides a scheduling apparatus, where the apparatus includes:
the determining unit is used for determining the demand information according to the service request under the condition that the service request sent by the target request end is received; searching a service credit value corresponding to the service providing end; the service credit value is obtained based on the resource quantity, the resource quality and the historical service information corresponding to the service providing end;
a selecting unit, configured to select, from the service providers, a target service provider corresponding to the target request terminal based on the demand information and the service credit value; the target service providing end is called to provide service for the target request end;
the acquisition unit is used for acquiring service information when the target service providing terminal provides the service to the target request terminal; and updating the target service credit value corresponding to the target service provider based on the service information so as to execute a subsequent scheduling process based on the updated target service credit value.
In a third aspect, an embodiment of the present application provides a scheduling apparatus, where the apparatus includes: a processor, a memory, and a communication bus; the processor, when executing the running program stored in the memory, implements the scheduling method as described in any one of the above.
In a fourth aspect, embodiments of the present application provide a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements a scheduling method according to any of the preceding claims.
The embodiment of the application provides a scheduling method, a scheduling device and a storage medium, wherein the scheduling method comprises the following steps: under the condition that a service request sent by a target request end is received, determining demand information according to the service request; searching a service credit value corresponding to the service providing end; the service credit value is obtained based on the resource quantity, the resource quality and the historical service information corresponding to the service providing end; selecting a target service provider corresponding to the target request terminal from the service providers based on the demand information and the service credit value; providing service for the target request terminal by calling the target service providing terminal; acquiring service information when a target service providing end provides service to a target requesting end; updating a target service credit value corresponding to the target service provider based on the service information to execute a subsequent scheduling process based on the updated target service credit value; by adopting the implementation scheme, when the proper service provider is selected for the target request end, the proper target service provider is selected from the service provider to provide service for the target request end according to the demand information of the target request end and the service credit value of the service provider.
Drawings
Fig. 1 is a flowchart of a scheduling method provided in an embodiment of the present application;
FIG. 2 is a flowchart of an exemplary scheduling method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a scheduling device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a scheduling device according to an embodiment of the present application.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the application. And are not intended to limit the present application.
An embodiment of the present application provides a scheduling method, which is applied to a scheduling device, and fig. 1 is a flowchart of the scheduling method provided in the embodiment of the present application, where, as shown in fig. 1, the scheduling method may include:
s101, under the condition that a service request sent by a target request end is received, determining demand information according to the service request; searching a service credit value corresponding to the service providing end; the service credit value is obtained based on the resource quantity, the resource quality and the historical service information corresponding to the service providing end.
The scheduling method is applied to a scene that the optimal service providing end is allocated for the request end so that the calculation force request end can calculate by utilizing the resources of the service providing end.
It should be noted that, the scheduling method of the present application may be applied in the scenarios of power calculation scheduling, and the specific application scenario may be selected according to the actual situation, which is not limited herein.
In the embodiment of the application, the scheduling device determines the demand information according to the service request under the condition that the service request sent by the target request end is received; searching a service credit value corresponding to the service providing end; the service credit value is obtained based on the resource quantity, the resource quality and the historical service information corresponding to the service providing end.
In the embodiment of the application, the request end can be understood as a consumer, that is, the consumer needs to use the resource to perform corresponding business operation; the service provider can be understood as a provider, that is, redundant resources can be provided for consumers to perform business operation; the requesting end and the service provider end may sometimes be the same target object.
It should be noted that, the scheduling device may be understood as a device where a transaction platform is deployed, and the request end and the service providing end perform a transaction on the transaction platform.
It should be noted that, the service providing end includes one or more service providing ends, and the specific number may be determined according to actual situations, which is not specifically limited herein in this embodiment of the present application.
In this embodiment of the present application, before receiving a service request sent by a target request end, the scheduling device further includes a step of registering a service providing end in the scheduling device, specifically: under the condition that a registration request of a service providing end is received, acquiring the quantity and quality of resources corresponding to the service providing end; and setting an initial service credit value for the service provider according to the quantity and the quality of the resources.
In the embodiment of the present application, after the service provider completes the first service, the initial service credit value of the service provider is updated according to the service information when the service provider provides the service, and the next scheduling is performed based on the updated service credit value.
It should be noted that the number of resources may be understood as the number of available computing resources, and the quality of resources may be understood as the computing power of the computing resources.
In this embodiment of the present application, before receiving a service request sent by a target request end, the scheduling device further includes a step of registering the target request end in the scheduling device, specifically: and under the condition that a registration request of the target request end is received, setting an initial request credit value for the target request end.
It should be noted that, when each request end is registered on the scheduling device, the scheduling device sets the same initial request credit value for each request end, and the initial request credit value of the request end is updated according to the transaction result information of the request end after the service is used.
S102, selecting a target service provider corresponding to the target request terminal from the service providers based on the demand information and the service credit value; and providing services for the target request terminal by calling the target service providing terminal.
In the embodiment of the application, after determining the demand information of the target request end and the service credit value corresponding to the service providing end, the scheduling device selects the target service providing end corresponding to the target request end from the service providing ends based on the demand information and the service credit value; and providing services for the target request terminal by calling the target service providing terminal.
In an embodiment of the present application, a scheduling device selects a target service provider corresponding to a target request from service providers based on demand information and a service credit value, including: selecting at least one idle service provider meeting the demand information from the service providers; searching at least one service credit value corresponding to at least one idle service providing end from the service credit values; and determining a first idle service provider with the maximum service credit value from at least one idle service provider according to the at least one service credit value, and determining the first idle service provider as a target service provider.
For example, assuming that at least one idle service provider, i.e., P1, P2, and P3, is determined from the service providers according to the demand information of the target request, and then service credit values corresponding to P1, P2, and P3, i.e., P1 (500), P2 (300), and P3 (400), P1 is determined as the service provider providing the service for the target request.
In this embodiment of the present application, after the scheduling device invokes the target service provider to provide the service for the target requester, the scheduling device further updates the request credit value of the target requester based on the transaction result information, specifically: determining transaction result information of a target request end after using the service; if the fact that the target request end does not complete the transaction within the preset time period is determined according to the transaction result information, the request credit value corresponding to the target request end is reduced according to the resources used by the target request end, and an updated request credit value is obtained; if the target request end completes the transaction within the preset time period according to the transaction result information, the request credit value corresponding to the target request end is improved according to the resources used by the target request end, and the updated request credit value is obtained.
It should be noted that, after the target request end uses up the service, the unfinished transaction may be understood that the target request end does not pay a corresponding reward to the target service providing end within a preset period of time, so that the two transactions are unfinished, or the target request end initiates a false service failure to reach the standard and question to the target service providing end, and intentionally does not want to pay a corresponding reward, etc.; the completion of the transaction may be understood as that the target request end pays a corresponding reward to the target service providing end within a preset time period after the target request end uses up the service; the specific incomplete transaction situation and the complete transaction situation can be determined according to actual situations, and embodiments of the present application are not specifically limited herein.
When the request credit value is updated according to the resource used by the target request terminal, the request credit value may be updated based on the resource used and the unit price, taking account of the unit price of the target service provider terminal.
S103, obtaining service information when the target service providing terminal provides service for the target request terminal; and updating the target service credit value corresponding to the target service provider based on the service information to execute a subsequent scheduling process based on the updated target service credit value.
In the embodiment of the application, after the scheduling device calls the target service providing terminal to provide the service for the target request terminal, the scheduling device obtains the service information when the target service providing terminal provides the service for the target request terminal; and updating the target service credit value corresponding to the target service provider based on the service information to execute a subsequent scheduling process based on the updated target service credit value.
In this embodiment of the present application, the scheduling device obtains service information to update a target service credit value corresponding to a target service provider based on the service information, specifically: if the service provided by the target service provider for the target request provider does not meet the requirement information according to the service information, reducing the target service credit value according to the resource provided by the target service provider; and if the service provided by the target service provider for the target request end meets the requirement information according to the service information, the target service credit value is improved according to the resource provided by the target service provider.
It should be noted that, the information that the target service provider does not satisfy the requirement of the service provided by the target service provider for the target request end may be that the target service provider does not provide resources for the target request end, or may be that the number of resources provided by the target service provider for the target request end is insufficient or the quality of the resources does not reach the standard.
Based on the foregoing embodiments, the present application provides a scheme for scheduling multiple target requesters simultaneously, and fig. 2 is a flowchart of an exemplary scheduling method provided in the embodiment of the present application, as shown in fig. 2, and the specific method is as follows:
s201, when a plurality of service requests sent by a plurality of target request ends are received, a plurality of pieces of requirement information are determined according to the plurality of service requests.
In the embodiment of the application, the scheduling device determines a plurality of pieces of requirement information according to a plurality of service requests under the condition that the scheduling device receives the plurality of service requests sent by a plurality of target request ends.
In the embodiment of the application, a plurality of target request ends initiate a plurality of service requests to a scheduling device, and the scheduling device analyzes the plurality of service requests to obtain a plurality of requirement information corresponding to the plurality of target request ends.
S202, if one target service provider corresponding to a plurality of target requesters is selected from the service providers based on a plurality of requirement information and service credit values, a plurality of request credit values corresponding to the plurality of target requesters are obtained.
In this embodiment of the present application, after determining the plurality of requirement information, if one target service provider corresponding to the plurality of target requesters is selected from the service providers based on the plurality of requirement information and the service credit values, the scheduling device obtains the plurality of request credit values corresponding to the plurality of target requesters.
In the embodiment of the application, the scheduling device respectively determines at least one service providing end meeting the requirement information of each target request end from idle service providing ends; and then the scheduling device selects the service provider with the largest service credit value for each target request end from the at least one service provider corresponding to each target request end based on the service credit values, and if the service providers selected for 2 or more target request ends are the same, the scheduling device acquires the request credit values corresponding to 2 or more target request ends.
For example, assuming that the plurality of target request ends are C1, C2 and C3, and it is determined that at least one corresponding service providing end is C1 (P1, P2, P4), C2 (P2, P3, P4) and C3 (P1, P2, P3) according to the requirement information of C1, C2 and C3, if the service credit value in C1, C2 and C3 is the largest at this time is P2, the request credit values of C1, C2 and C3 are obtained.
S203, determining a first target request end with the largest request credit value from a plurality of target request ends according to the plurality of request credit values; to invoke a target service provider to provide services for the first target requester.
In the embodiment of the application, after a scheduling device acquires a plurality of request credit values, a first target request end with the largest request credit value is determined from a plurality of target request ends according to the plurality of request credit values; to invoke a target service provider to provide services for the first target requester.
For example, if the request credit value among C1, C2 and C3 is the largest C1, P2 is taken as the service provider of C1.
In this embodiment of the present application, after determining, from a plurality of target requesters, a first target requester with a maximum request credit value, the scheduling apparatus further includes: searching a first service providing end which meets the requirement information corresponding to the residual target request end from the residual service providing ends; if the first service providing end is found, the first service providing end is called to provide service for the residual target request end; if the first service provider is not found, the service is refused to be provided for the residual target request end, and the corresponding service provider is preferentially allocated for the residual target request end under the condition that the service request sent by the residual target request end is received next time.
In the embodiment of the present application, the remaining service providing terminals are service providing terminals except for one target service providing terminal in the service providing terminals; the remaining target requesters are requesters other than the first target requester among the plurality of target requesters.
In the embodiment of the present application, if the number of the remaining target request ends is 1, after a first service providing end that meets the requirement information corresponding to the remaining target request ends is found, the first service providing end is called to provide services for the remaining target request ends; if the number of the remaining target requesters is greater than 1, after searching the first service provider satisfying the requirement information corresponding to each target requester in the remaining target requesters, it is further required to determine whether there are 2 or more cases where the first service providers selected by the remaining target requesters are the same, and allocate the first service provider to the target requester with the largest request credit value in the remaining target requesters again.
For example, assuming that at this time, among C1, C2 and C3, P2 is allocated to C1, and C2 and C3 remain, at this time, service providers with the largest service credit value except for P2 among C2 (P2, P3, P4) and C3 (P1, P2, P3) are determined respectively, if it is determined that all of the service credit values among C2 (P3, P4) and C3 (P1, P3) are the largest, the request provider with the largest request credit value among C2 and C3 is determined, and if it is determined that the request credit value among C2 and C3 is the largest as C2, P3 is taken as the service provider of C2; at this time, P1 is left in C3, and P1 is taken as the service provider of C3; if none of the service providers in the C3 is available at this time, the service is refused to be provided to the C3, and if the service request sent by the C3 is received next time, the corresponding service provider is preferentially allocated to the C3.
The embodiment of the application provides a scheduling method, which comprises the following steps: under the condition that a service request sent by a target request end is received, determining demand information according to the service request; searching a service credit value corresponding to the service providing end; the service credit value is obtained based on the resource quantity, the resource quality and the historical service information corresponding to the service providing end; selecting a target service provider corresponding to the target request terminal from the service providers based on the demand information and the service credit value; providing service for the target request terminal by calling the target service providing terminal; acquiring service information when a target service providing end provides service to a target requesting end; updating a target service credit value corresponding to the target service provider based on the service information to execute a subsequent scheduling process based on the updated target service credit value; by adopting the implementation scheme, when the proper service provider is selected for the target request end, the proper target service provider is selected from the service provider to provide service for the target request end according to the demand information of the target request end and the service credit value of the service provider.
Based on the above embodiments, in another embodiment of the present application, a scheduling apparatus 1 is provided, fig. 3 is a schematic structural diagram of a scheduling apparatus provided in the present application, and as shown in fig. 3, the scheduling apparatus 1 includes:
a determining unit 10, configured to determine, when a service request sent by a target request end is received, requirement information according to the service request; searching a service credit value corresponding to the service providing end; the service credit value is obtained based on the resource quantity, the resource quality and the historical service information corresponding to the service providing end;
a selecting unit 11, configured to select, from the service providers, a target service provider corresponding to the target request terminal based on the demand information and the service credit value; the target service providing end is called to provide service for the target request end;
an obtaining unit 12, configured to obtain service information when the target service providing end provides the service to the target requesting end; and updating the target service credit value corresponding to the target service provider based on the service information so as to execute a subsequent scheduling process based on the updated target service credit value.
Optionally, the scheduling apparatus 1 further includes: a setting unit;
The acquiring unit 12 is further configured to acquire the number of resources and the quality of resources corresponding to the service provider if a registration request of the service provider is received;
the setting unit is configured to set an initial service credit value for the service provider according to the number of resources and the quality of resources.
Optionally, the scheduling apparatus 1 further includes: an updating unit;
the setting unit is further configured to set an initial request credit value for the target request end when receiving a registration request of the target request end;
the determining unit 10 is further configured to determine transaction result information of the target request end after the target request end uses the service;
the updating unit is used for reducing the request credit value corresponding to the target request end according to the resources used by the target request end to obtain an updated request credit value if the target request end does not complete the transaction within the preset time period according to the transaction result information;
and the updating unit is further used for, if the target request end completes the transaction within the preset time period according to the transaction result information, improving the request credit value corresponding to the target request end according to the resources used by the target request end to obtain an updated request credit value.
Optionally, the determining unit 10 is further configured to determine, when receiving a plurality of service requests sent by a plurality of target request ends, a plurality of requirement information according to the plurality of service requests;
the selecting unit 11 is further configured to obtain a plurality of request credit values corresponding to the plurality of target request terminals if one target service provider corresponding to the plurality of target request terminals is selected from the service providers based on the plurality of requirement information and the service credit values;
the determining unit 10 is further configured to determine, according to the plurality of request credit values, a first target request end with a largest request credit value from the plurality of target request ends; and calling the target service provider to provide service for the first target request terminal.
Optionally, the scheduling apparatus 1 further includes: the device comprises a searching unit, a calling unit and an allocation unit;
the searching unit is used for searching a first service providing end which meets the requirement information corresponding to the residual target request end from the residual service providing ends; the remaining service providing terminals are service providing terminals except the target service providing terminal in the service providing terminals; the remaining target request terminals are request terminals except the first target request terminal in the target request terminals;
The calling unit is used for calling the first service providing end to provide service for the residual target requesting end if the first service providing end is found;
the allocation unit is configured to reject providing the service to the remaining target request end if the first service provider is not found, and allocate a corresponding service provider to the remaining target request end preferentially when a service request sent by the remaining target request end is received next time.
Optionally, the updating unit is further configured to reduce the target service credit value according to the resource provided by the target service provider if it is determined, according to the service information, that the service provided by the target service provider for the target request end does not meet the requirement information;
and the updating unit is further configured to, if it is determined, according to the service information, that the service provided by the target service provider for the target request end meets the requirement information, increase the target service credit value according to the resource provided by the target service provider.
The selecting unit 11 is further configured to select at least one idle service provider that satisfies the requirement information from the service providers; searching at least one service credit value corresponding to the at least one idle service provider from the service credit values;
The determining unit 10 is further configured to determine, according to the at least one service credit value, a first idle service provider with a maximum service credit value from the at least one idle service provider, and determine the first idle service provider as the target service provider.
The embodiment of the application provides a scheduling device, which comprises: the device comprises a determining unit, a selecting unit and an acquiring unit; the determining unit is used for determining the requirement information according to the service request under the condition that the service request sent by the target request end is received; searching a service credit value corresponding to the service providing end; the service credit value is obtained based on the resource quantity, the resource quality and the historical service information corresponding to the service providing end; the selecting unit is used for selecting a target service providing end corresponding to the target request end from the service providing ends based on the demand information and the service credit value; providing service for the target request terminal by calling the target service providing terminal; the acquisition unit is used for acquiring service information when the target service providing terminal provides service for the target request terminal; updating a target service credit value corresponding to the target service provider based on the service information to execute a subsequent scheduling process based on the updated target service credit value; by adopting the implementation scheme, when the proper service provider is selected for the target request end, the proper target service provider is selected from the service provider to provide service for the target request end according to the demand information of the target request end and the service credit value of the service provider.
Fig. 4 is a schematic diagram of a composition structure of a scheduling device according to an embodiment of the present application, in practical application, based on the same disclosure concept of the foregoing embodiment, as shown in fig. 4, the scheduling device 2 of the present embodiment includes: a processor 20, a memory 21 and a communication bus 22.
In a specific embodiment, the determining unit 10, the selecting unit 11, the acquiring unit 12, the setting unit, the updating unit, the searching unit, the calling unit and the allocating unit may be implemented by a processor 20 located on the scheduling device 2, where the processor 20 may be at least one of an application specific integrated circuit (ASIC, application Specific Integrated Circuit), a digital signal processor (DSP, digital Signal Processor), a digital signal processing image processing device (DSPD, digital Signal Processing Device), a programmable logic image processing device (PLD, programmable Logic Device), a field programmable gate array (FPGA, field Programmable Gate Array), a CPU, a controller, a microcontroller and a microprocessor. It will be appreciated that the electronic device for implementing the above-mentioned processor function may be other for different scheduling apparatuses, and the embodiment is not specifically limited.
In the embodiment of the present application, the above-mentioned communication bus 22 is used to implement connection communication between the processor 20 and the memory 21; the processor 20 implements the following scheduling method when executing the running program stored in the memory 21:
under the condition that a service request sent by a target request end is received, determining demand information according to the service request; searching a service credit value corresponding to the service providing end; the service credit value is obtained based on the resource quantity, the resource quality and the historical service information corresponding to the service providing end;
selecting a target service provider corresponding to the target request terminal from the service providers based on the demand information and the service credit value; the target service providing end is called to provide service for the target request end;
acquiring service information when the target service providing terminal provides the service to the target request terminal; and updating the target service credit value corresponding to the target service provider based on the service information so as to execute a subsequent scheduling process based on the updated target service credit value.
Optionally, the processor 20 is further configured to obtain the number of resources and the quality of resources corresponding to the service provider if a registration request of the service provider is received; and setting an initial service credit value for the service provider according to the resource quantity and the resource quality.
Optionally, the processor 20 is further configured to set an initial request credit value for the target request end if a registration request of the target request end is received; determining transaction result information of the target request end after the service is used; if the fact that the target request end does not complete the transaction within the preset time period is determined according to the transaction result information, reducing the request credit value corresponding to the target request end according to the resources used by the target request end, and obtaining an updated request credit value; if the target request end completes the transaction within the preset time period according to the transaction result information, the request credit value corresponding to the target request end is improved according to the resources used by the target request end, and the updated request credit value is obtained.
Optionally, the processor 20 is further configured to, in a case of receiving a plurality of service requests sent by a plurality of target request ends, determine a plurality of requirement information according to the plurality of service requests; if one target service provider corresponding to the target requesters is selected from the service providers based on the plurality of demand information and the service credit values, acquiring a plurality of request credit values corresponding to the target requesters; according to the multiple request credit values, determining a first target request end with the largest request credit value from the multiple target request ends; and calling the target service provider to provide service for the first target request terminal.
Optionally, the processor 20 is further configured to search, from the remaining service providers, a first service provider that meets requirement information corresponding to the remaining target request end; the remaining service providing terminals are service providing terminals except the target service providing terminal in the service providing terminals; the remaining target request terminals are request terminals except the first target request terminal in the target request terminals; if the first service providing end is found, the first service providing end is called to provide service for the residual target request end; if the first service provider is not found, the service is refused to be provided for the residual target request end, and the corresponding service provider is preferentially allocated for the residual target request end under the condition that the service request sent by the residual target request end is received next time.
Optionally, the processor 20 is further configured to reduce the target service credit value according to the resource provided by the target service provider if it is determined, according to the service information, that the service provided by the target service provider for the target request end does not meet the requirement information; and if the service provided by the target service provider for the target request end meets the requirement information according to the service information, the target service credit value is improved according to the resource provided by the target service provider.
Optionally, the processor 20 is further configured to select at least one idle service provider that satisfies the requirement information from the service providers; searching at least one service credit value corresponding to the at least one idle service provider from the service credit values; and determining a first idle service providing end with the maximum service credit value from the at least one idle service providing end according to the at least one service credit value, and determining the first idle service providing end as the target service providing end.
The embodiment of the application provides a storage medium, on which a computer program is stored, the computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors and applied to a scheduling device, the computer program implementing a scheduling method as described above.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present disclosure may be embodied essentially or in a part contributing to the related art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), including several instructions for causing an image display device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the scheduling method described in the embodiments of the present disclosure.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application.

Claims (10)

1. A scheduling method, the method comprising:
under the condition that a service request sent by a target request end is received, determining demand information according to the service request; searching a service credit value corresponding to the service providing end; the service credit value is obtained based on the resource quantity, the resource quality and the historical service information corresponding to the service providing end;
Selecting a target service provider corresponding to the target request terminal from the service providers based on the demand information and the service credit value; the target service providing end is called to provide service for the target request end;
acquiring service information when the target service providing terminal provides the service to the target request terminal; and updating the target service credit value corresponding to the target service provider based on the service information so as to execute a subsequent scheduling process based on the updated target service credit value.
2. The method according to claim 1, wherein, in the case of receiving a service request sent by a target request end, before determining the requirement information according to the service request, the method further comprises:
under the condition that a registration request of a service providing end is received, acquiring the quantity and the quality of resources corresponding to the service providing end;
and setting an initial service credit value for the service provider according to the resource quantity and the resource quality.
3. The method according to claim 1, wherein, in the case of receiving a service request sent by a target request end, before determining the requirement information according to the service request, the method further comprises:
Under the condition that a registration request of the target request end is received, setting an initial request credit value for the target request end;
after the target service provider is called to provide the service for the target request end, the method further comprises:
determining transaction result information of the target request end after the service is used;
if the fact that the target request end does not complete the transaction within the preset time period is determined according to the transaction result information, reducing the request credit value corresponding to the target request end according to the resources used by the target request end, and obtaining an updated request credit value;
if the target request end completes the transaction within the preset time period according to the transaction result information, the request credit value corresponding to the target request end is improved according to the resources used by the target request end, and the updated request credit value is obtained.
4. The method of claim 1, wherein the target requesting end is a plurality of target requesting ends, the method further comprising:
under the condition that a plurality of service requests sent by a plurality of target request ends are received, determining a plurality of requirement information according to the plurality of service requests;
If one target service provider corresponding to the target requesters is selected from the service providers based on the plurality of demand information and the service credit values, acquiring a plurality of request credit values corresponding to the target requesters;
according to the multiple request credit values, determining a first target request end with the largest request credit value from the multiple target request ends; and calling the target service provider to provide service for the first target request terminal.
5. The method of claim 4, wherein after determining the first target request end with the largest request credit value from the target request ends according to the request credit values, the method further comprises:
searching a first service providing end which meets the requirement information corresponding to the residual target request end from the residual service providing ends; the remaining service providing terminals are service providing terminals except the target service providing terminal in the service providing terminals; the remaining target request terminals are request terminals except the first target request terminal in the target request terminals;
if the first service providing end is found, the first service providing end is called to provide service for the residual target request end;
If the first service provider is not found, the service is refused to be provided for the residual target request end, and the corresponding service provider is preferentially allocated for the residual target request end under the condition that the service request sent by the residual target request end is received next time.
6. The method according to claim 1, wherein after the obtaining the service information when the target service provider provides the service to the target requesting end, the method further comprises:
if the service provided by the target service providing end for the target request end does not meet the requirement information according to the service information, the target service credit value is reduced according to the resource provided by the target service providing end;
and if the service provided by the target service provider for the target request end meets the requirement information according to the service information, the target service credit value is improved according to the resource provided by the target service provider.
7. The method according to claim 1, wherein selecting a target service provider corresponding to the target request terminal from the service providers based on the demand information and the service credit value, comprises:
Selecting at least one idle service providing end meeting the requirement information from the service providing ends; searching at least one service credit value corresponding to the at least one idle service provider from the service credit values;
and determining a first idle service providing end with the maximum service credit value from the at least one idle service providing end according to the at least one service credit value, and determining the first idle service providing end as the target service providing end.
8. A scheduling apparatus, the apparatus comprising:
the determining unit is used for determining the demand information according to the service request under the condition that the service request sent by the target request end is received; searching a service credit value corresponding to the service providing end; the service credit value is obtained based on the resource quantity, the resource quality and the historical service information corresponding to the service providing end;
a selecting unit, configured to select, from the service providers, a target service provider corresponding to the target request terminal based on the demand information and the service credit value; the target service providing end is called to provide service for the target request end;
The acquisition unit is used for acquiring service information when the target service providing terminal provides the service to the target request terminal; and updating the target service credit value corresponding to the target service provider based on the service information so as to execute a subsequent scheduling process based on the updated target service credit value.
9. A scheduling apparatus, the apparatus comprising: a processor, a memory, and a communication bus; the processor, when executing a memory-stored operating program, implements the method of any one of claims 1-7.
10. A storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any of claims 1-7.
CN202211080893.6A 2022-09-05 2022-09-05 Scheduling method and device and storage medium Pending CN117651063A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211080893.6A CN117651063A (en) 2022-09-05 2022-09-05 Scheduling method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211080893.6A CN117651063A (en) 2022-09-05 2022-09-05 Scheduling method and device and storage medium

Publications (1)

Publication Number Publication Date
CN117651063A true CN117651063A (en) 2024-03-05

Family

ID=90048237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211080893.6A Pending CN117651063A (en) 2022-09-05 2022-09-05 Scheduling method and device and storage medium

Country Status (1)

Country Link
CN (1) CN117651063A (en)

Similar Documents

Publication Publication Date Title
US10772115B2 (en) Resource scheduling method and server
CN112600887B (en) Computing power management method and device
CN111460504B (en) Service processing method, device, node equipment and storage medium
CN111127181B (en) Voucher accounting method and device
CN108667882B (en) Load balancing method and device based on dynamic weight adjustment and electronic equipment
CN108306874B (en) Service interface access current limiting method and device
CN113691596B (en) Gateway control method and device, electronic equipment and storage medium
CN110275764A (en) Call timeout treatment method, apparatus and system
CN114153581A (en) Data processing method, data processing device, computer equipment and storage medium
CN111459676A (en) Node resource management method, device and storage medium
CN111178781A (en) Response resource allocation method, device, equipment and medium of online response system
US11930399B2 (en) Method, device and system for implementing edge computing
CN117651063A (en) Scheduling method and device and storage medium
CN112905338A (en) Automatic allocation method and device for computing resources
CN110166272B (en) Method, device and system for providing terminal equipment index arbitration service
CN115168017B (en) Task scheduling cloud platform and task scheduling method thereof
JP2004362449A (en) Service providing device, service coordinator device, service providing method, service coordinating method and program, as well as computer readable recording medium having the program recorded thereon
CN108282752B (en) Method, system, device and storage medium for group callback in broadband cluster system
CN112148320A (en) Application program upgrading method, device, equipment and storage medium
CN115794396A (en) Resource allocation method, system and electronic equipment
KR101719724B1 (en) Resource management system and method, and method for deciding resource price by the same system
CN113612841B (en) Task scheduling method, device, computer equipment and storage medium
CN110677496B (en) Middleware service scheduling method and device and readable storage medium
CN111093281B (en) Method and device for allocating resources
CN114490071A (en) Resource scheduling method, device, equipment and medium based on cloud game

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination