Communication resource scheduling method, device and electronic device for cloud service
By allocating number resources based on historical usage records and current capacity of communication resources, the problem of low voice outbound call connection rate was solved, and more efficient message notification was achieved.
Patent Information
- Application Number
- CN202211111816.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-13
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2042-09-13
AI Technical Summary
Existing technology randomly selects the caller's number, resulting in a low connection rate for outbound voice calls and an inability to notify users in a timely manner.
The quality level is determined based on the historical usage records of communication resources, and scheduling is carried out in combination with the current capacity, prioritizing the selection of number resources with high connection rates for outbound voice calls.
It improved the connection rate of outbound voice calls, ensuring that messages could be delivered to users in a timely manner.
Smart Images

Figure CN115499439B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud computing technology, and in particular to a communication resource scheduling method, device and electronic device for cloud services. Background Art
[0002] With the development of network technology and communication technology, people are becoming more and more accustomed to using the Internet to obtain various information and handle various matters related to daily life and work.
[0003] Internet voice outbound calls refer to the process of determining multiple caller numbers through a server and sending voice communication requests to user terminals to notify users of relevant information, such as express delivery notifications, weather information notifications, traffic congestion information notifications, etc. Currently, when determining the caller number, a random selection is made from multiple numbers. This method of selecting the caller number has a low connection rate, resulting in the failure to notify users of messages in a timely manner. Summary of the invention
[0004] The embodiments of the present application provide a communication resource scheduling method, device and electronic device for cloud services to improve the connection rate of outbound voice calls.
[0005] In a first aspect, an embodiment of the present application provides a communication resource scheduling method for a cloud service, the method comprising:
[0006] In response to the communication resource scheduling request, at least one target communication resource is scheduled in the resource group according to the current capacity and quality level respectively corresponding to the communication resources in the resource group; the quality level corresponding to the communication resource is determined according to the historical usage record of the communication resource, and the resource group is configured to the tenant of the cloud service;
[0007] The communication task is performed using at least one target communication resource to implement the service function of the cloud service.
[0008] In a second aspect, an embodiment of the present application provides a communication resource scheduling device for a cloud service, the device comprising:
[0009] A resource scheduling module, configured to respond to a communication resource scheduling request and schedule at least one target communication resource in the resource group according to the current capacity and quality level respectively corresponding to the communication resources in the resource group; the quality level corresponding to the communication resource is determined according to the historical usage record of the communication resource, and the resource group is configured to the tenant of the cloud service;
[0010] The task execution module is used to execute the communication task by using at least one target communication resource to realize the service function of the cloud service.
[0011] In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory, wherein the processor implements any of the above methods when executing the computer program.
[0012] Compared with the prior art, this application has the following advantages:
[0013] The embodiment of the present application provides a communication resource scheduling method, device and electronic device for cloud services. In response to a communication resource scheduling request, at least one target communication resource is scheduled in the resource group according to the current capacity and quality level respectively corresponding to the communication resources in the resource group; the quality level corresponding to the communication resource is determined according to the historical usage record of the communication resource, and the resource group is configured to the tenant of the cloud service; at least one target communication resource is used to perform a communication task to realize the service function of the cloud service. In this embodiment, the quality level of the communication resource is determined according to the historical usage record of the communication resource, and the communication resource is scheduled according to the current capacity and quality level of the communication resource. By scheduling the communication resource in this way, the success rate of task execution can be improved when performing a communication task. Among them, the communication resource can be a number resource, the quality level of the number resource is determined according to the historical usage record of the number resource, and the number resource is scheduled according to the current capacity and quality level of the number resource. By scheduling the number resource in this way, the connection rate of voice outbound calls can be improved when performing a voice task.
[0014] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments according to the present application and should not be regarded as limiting the scope of the present application.
[0016] Figure 1 A schematic diagram of a scenario of a communication resource scheduling method for cloud services provided in this application;
[0017] Figure 2 This is a flow chart of a communication resource scheduling method for cloud services according to an embodiment of the present application;
[0018] Figure 3 A schematic diagram of a design concept of a communication resource scheduling method for cloud services according to an embodiment of the present application;
[0019] Figure 4A structural block diagram of a communication resource scheduling device for cloud services according to an embodiment of the present application; and
[0020] Figure 5 A block diagram of an electronic device used to implement an embodiment of the present application. DETAILED DESCRIPTION
[0021] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the concept or scope of the present application. Therefore, the drawings and descriptions are considered to be exemplary in nature and not restrictive.
[0022] To facilitate understanding of the technical solutions of the embodiments of the present application, the following describes the related technologies of the embodiments of the present application. The following related technologies can be combined with the technical solutions of the embodiments of the present application as optional solutions, and they all belong to the protection scope of the embodiments of the present application.
[0023] Figure 1 FIG. 1 is a schematic diagram of an exemplary application scenario for implementing the method of the embodiment of the present application. Figure 1 As shown, in this embodiment, the cloud service is a service deployed in the cloud to realize the voice outbound call function. After the cloud service is rented, the cloud service is used to make voice outbound calls to the tenant's users, thereby realizing message notification. The communication resource can be the caller's phone number, which can be a phone number obtained from the operator, or an identity document (ID) of the Internet phone, etc. The quality level of the communication resource can be the call connection rate level, and the capacity of the communication resource can be the number of concurrency, that is, the number of called party numbers when the same caller number simultaneously calls multiple called party numbers. The connection rate of the number is predicted in advance based on the historical usage record of the caller number, and the multiple numbers in the number group (as shown in the figure, number 1, number 2...number n) are divided into connection rate levels according to the connection rate. When an outbound call request is received, at least one number is called from the number group according to the number of concurrency and connection rate level of the numbers in the number group, and a call is made to the user terminals of multiple users of the tenant (as shown in the figure, user terminal 1, user terminal 2...user terminal m) through the gateway and the operator network to realize message notification. The specific content of the notification may be "your express has arrived at Building X, please pick it up in time", "there is heavy rain in City X today, please pay attention to travel safety", etc. In this embodiment, the connection rate level of the number resource is determined according to the historical use record of the number resource, and the number resource is scheduled according to the current concurrency number and the connection rate level of the number resource. By scheduling the number resource in this way, the connection rate of the voice outbound call can be improved when executing the voice outbound call task.
[0024] The present application embodiment provides a communication resource scheduling method for cloud services, such as Figure 2 The flowchart of a communication resource scheduling method for cloud services according to an embodiment of the present application is shown, and the method includes:
[0025] Step S201, in response to a communication resource scheduling request, schedule at least one target communication resource in the resource group according to the current capacity and quality level corresponding to the communication resources in the resource group; the quality level corresponding to the communication resource is determined based on the historical usage record of the communication resource, and the resource group is configured to the tenant of the cloud service.
[0026] Step S202: Utilize at least one target communication resource to perform a communication task to implement a service function of the cloud service.
[0027] The cloud service may be a service application that implements communication-related functions. The cloud service may be deployed in a physical server in the form of a virtual machine.
[0028] In this embodiment, the cloud service is a service deployed in the cloud to implement the voice outbound call function. A number group is configured for the tenant of the cloud service, and the number resources in the number group are used to make voice outbound calls to the users of the tenant, thereby realizing message notification. Among them, the communication resource can be the telephone number of the caller, and the telephone number can be a telephone number obtained from the operator, or a telephone ID of an Internet phone generated by a program, etc. The quality level of the communication resource can be a call connection rate level, and the capacity of the communication resource can be a concurrent number, that is, the number of called party numbers when the same caller number calls multiple called party numbers at the same time. The connection rate of the number is predicted in advance based on the historical usage record of the caller number, and the multiple numbers in the number group are divided into multiple connection rate levels according to the different connection rates of the numbers.
[0029] Exemplarily, if it is known from the historical usage records that the calling party number and the called party number are in the same region and / or the same operator, the connection rate is relatively high. For example, if both the calling party number and the called party number are Beijing Unicom, the connection rate is relatively high. When making a voice outbound call to a Beijing Unicom number, the number of Beijing Unicom in the number group is predicted to have a higher connection rate level. When receiving a number scheduling request, if the concurrent number of Beijing Unicom numbers does not exceed the concurrent number threshold, the number of Beijing Unicom is called as the calling party for the voice outbound call.
[0030] The communication resource scheduling method for cloud services provided in the embodiment of the present application responds to a communication resource scheduling request, and schedules at least one target communication resource in the resource group according to the current capacity and quality level respectively corresponding to the communication resources in the resource group; the quality level corresponding to the communication resource is determined according to the historical usage record of the communication resource, and the resource group is configured to the tenant of the cloud service; and at least one target communication resource is used to perform a communication task to realize the service function of the cloud service. In this embodiment, the quality level of the communication resource is determined according to the historical usage record of the communication resource, and the communication resource is scheduled according to the current capacity and quality level of the communication resource. By scheduling the communication resource in this way, the success rate of task execution can be improved when executing the communication task. Among them, the communication resource can be a number resource, and the quality level of the number resource is determined according to the historical usage record of the number resource, and the number resource is scheduled according to the current capacity and quality level of the number resource. By scheduling the number resource in this way, the connection rate of voice outbound calls can be improved when executing voice tasks.
[0031] The quality level corresponding to the communication resource is predicted according to the historical usage record of the communication resource, as shown in the following embodiment:
[0032] In one possible implementation, before responding to a communication resource scheduling request, the method further includes: determining a quality score corresponding to the communication resource based on a historical usage record corresponding to the communication resource in the resource group; the quality score represents an execution success rate when the communication task is performed using the communication resource; and determining a quality level corresponding to the communication resource based on the quality score corresponding to the communication resource.
[0033] In actual applications, the quality level corresponding to the communication resource can be determined before receiving the resource scheduling request. Exemplarily, taking number resources as an example, the quality level can include three levels: high connection rate, medium connection rate and low connection rate. If it is known from the historical usage record of a certain number that the connection rate of the number as a calling party number is 90%, the quality score is set to 9 points, and the quality level of the number is determined as a high connection rate level. If it is known from the historical usage record of a certain number that the connection rate of the number as a calling party number is 10%, the quality score is set to 1 point, and the quality level of the number is determined as a low connection rate level. At this time, the connection rate is the execution success rate when performing the communication task.
[0034] After the connection rate levels of multiple numbers are determined, they are put into a number group. After receiving a voice outbound call request, a number is selected from the number group according to the current concurrent number of the number and the connection rate level of the number to perform the voice outbound call task.
[0035] In a possible implementation, after responding to the communication resource scheduling request, the method further includes: determining the quality level corresponding to the communication resource according to the quality scores respectively corresponding to the communication resources in the predetermined resource group and the current capacities respectively corresponding to the communication resources.
[0036] In actual applications, it is also possible to predetermine the quality scores corresponding to the communication resources in the resource group. After receiving the communication resource scheduling request, the communication resources whose current capacity has reached the preset capacity threshold are filtered out according to the current capacity of the communication resources, and the remaining communication resources are graded according to the quality scores to obtain the quality level of the communication resources.
[0037] For example, the connection rates of multiple numbers are predetermined based on historical usage records, and these numbers are placed in a number group. After receiving a voice outbound call request, it is determined whether the concurrent number of each number in the current number group reaches a concurrent number threshold of 10, and the numbers that do not reach the concurrent number of 10 are divided into multiple connection rate levels according to the connection rate.
[0038] Exemplarily, the quality levels are divided into a high connection rate level, a medium connection rate level and a low connection rate level. The numbers in the number group are divided into number quality levels. That is, the numbers in the number group are graded according to quality, while ensuring that the highest quality resources account for more than a large proportion, such as 20%. The proportion of the highest quality level numbers can be determined based on the total concurrent number of all numbers in the number group * concurrent statistical delay / single number concurrent number, while ensuring that the lowest quality level numbers account for a smaller proportion, such as 5%.
[0039] In one possible implementation, at least one target communication resource is scheduled in the resource group according to the current capacity and quality level respectively corresponding to the communication resources in the resource group, including: among the communication resources in the resource group whose current capacity does not exceed a preset capacity threshold, at least one target communication resource is scheduled in order from high to low according to the quality levels corresponding to the communication resources.
[0040] In actual applications, taking the communication resource as a telephone number as an example, after receiving a voice outbound call request, the current concurrency number of each number in the resource group is first determined, and the numbers whose concurrency numbers do not exceed the preset concurrency threshold are selected in descending order of the number connection rate level, and numbers with higher connection rate levels are given priority to ensure the connection rate of the voice outbound call and avoid the problem of low connection rate caused by randomly selecting numbers from the number group for outbound calls.
[0041] In addition, communication resources with multiple quality levels are scheduled from high to low according to the quality level, and multiple communication resources are scheduled instead of concentrating multiple scheduling tasks on calling the communication resource with the highest quality. This solves the problem that the real-time processing capability is limited, the current processing capability of the resource depends on the acquisition and there is a delay in the acquisition, and all scheduling tasks are instantly concentrated on the communication resource with the highest quality, resulting in the real-time processing volume of the communication resource exceeding the upper limit of the processing capability of the resource.
[0042] In a possible implementation, the method further includes: when scheduling communication resources among communication resources of the same quality level, configuring equal scheduling probabilities for multiple communication resources of the same quality level to be used for scheduling at least one target communication resource.
[0043] In practical applications, when scheduling communication resources in a resource group, equal scheduling probabilities may be configured for multiple communication resources of the same quality level, for example, scheduling is performed randomly among communication resources of the same quality level, thereby ensuring that communication resources of the same quality level have an equal probability of being scheduled. In this embodiment, since the success rates of executing tasks of communication resources of the same quality level are the same or similar, the same scheduling probability is set for these communication resources to achieve an equal opportunity for communication resources of the same quality level to be scheduled.
[0044] In a possible implementation, the method further includes:
[0045] When a communication resource scheduling request corresponds to multiple communication resource scheduling tasks, a first number of communication resource scheduling tasks are selected from the multiple communication resource scheduling tasks, and based on the first number of communication resource scheduling tasks, multiple target communication resources are scheduled among communication resources whose quality levels are less than a preset level threshold, and the proportion of the first number of communication resource scheduling tasks in the multiple communication resource scheduling tasks is less than a preset first proportion.
[0046] In actual applications, a communication resource scheduling request corresponds to at least one resource scheduling task, and a resource scheduling task may be to schedule a target communication resource in a resource group. When a communication resource scheduling request corresponds to multiple communication resource scheduling tasks, it means that multiple communication resources need to be called in the resource group. Communication resources with a quality level less than a preset level threshold may represent communication resources with a lower quality level. The quality corresponding to the communication resource decays as the number of communication resource scheduling increases. For example, if the communication resource is a phone number, after the phone number is used multiple times, the number may be marked as an abnormal number, and the connection rate will decrease.
[0047] For example, if all outbound voice call requests call numbers with higher quality levels, the number quality decays with the probability of use, so all high-quality numbers will eventually decay into low-quality numbers. To avoid this situation, a very small proportion of the numbers with the lowest connection rate level in the number group, such as 5%, is taken as a special group. 5% of the scheduling tasks are scheduled among the 5% of numbers with the lowest connection rate level, so that the numbers with low connection rates can decay normally.
[0048] In a possible implementation, the method further includes:
[0049] When a communication resource scheduling request corresponds to multiple communication resource scheduling tasks, a second number of communication resource scheduling tasks are selected from the multiple communication resource scheduling tasks, and based on the second number of communication resource scheduling tasks, multiple target communication resources are scheduled in the resource group with equal scheduling probabilities, and the proportion of the second number of communication resource scheduling tasks in the multiple communication resource scheduling tasks is less than a preset second proportion.
[0050] In practical applications, when a communication resource scheduling request corresponds to multiple communication resource scheduling tasks, it means that multiple communication resources need to be called in the resource group. Considering that the scheme based on the above embodiment may result in that both the communication resources of the highest quality level and the communication resources of the lowest quality level can be allocated to scheduling tasks, but the communication resources of the middle level have not been used, which will result in the inability to achieve quality prediction of the communication resources of the middle level. Therefore, a small flow keep-alive scheme is proposed, maintaining a very small proportion, such as 1% of the scheduling tasks, and adopting an average scattering method, that is, according to equal scheduling probability, scattering all the quality level numbers in the number group, ensuring that all quality level numbers can be scheduled, thereby achieving the keep-alive of the middle quality level numbers.
[0051] In a possible implementation, the method also includes: the quality corresponding to the communication resource decays as the number of times the communication resource is scheduled increases, and when the quality decay value corresponding to the communication resource exceeds a preset decay threshold, obtaining the communication resource whose quality decay value does not exceed the preset decay threshold, and updating the communication resource whose quality decay value exceeds the preset decay threshold.
[0052] In actual applications, the quality of communication resources decays as the number of times the communication resources are scheduled increases. For example, if the communication resource is a phone number, after the phone number is used multiple times, the number may be marked as an abnormal number, and the call connection rate will decrease. When the number quality decays to the preset decay threshold, the replacement logic is triggered, and the numbers with lower quality levels are eliminated. The numbers with quality decay exceeding the decay threshold are replaced with new high-quality numbers, thereby achieving instantaneous quality improvement of the number group and long-term sustainable quality improvement.
[0053] In one possible implementation, after scheduling at least one target communication resource in the resource group according to the current capacity and quality level corresponding to the communication resources in the resource group, the method further includes: increasing the capacity corresponding to the target communication resource, and when the actual capacity corresponding to the target communication resource is obtained, updating the current capacity of the target communication resource using the actual capacity.
[0054] In actual applications, after scheduling the target communication resources in the resource group according to the current capacity and quality level corresponding to the communication resources in the resource group, the capacity corresponding to the target communication resources is increased. Due to delays, this capacity may not be the actual capacity. When the actual capacity corresponding to the target communication resources is obtained, the capacity is updated.
[0055] Taking the communication resource as a telephone number as an example, after selecting a number in the number group, an outbound call will be made through this number, and then sent to the operator through the gateway. At this time, the gateway can count the concurrency of this number and increase the concurrency by 1. The gateway will collect the concurrency of the number in real time. Due to link reasons, there is a certain delay in returning the statistical concurrency, usually a few seconds. In order to further reduce the impact of concurrent collection delay, a solution of real-time self-increment combined with regular full synchronization is adopted. After each number is selected, the concurrency of this number is increased by 1. The gateway periodically collects the actual concurrency and overwrites the previous concurrency, which can make the concurrency of the number obtained more accurate.
[0056] In order to more clearly introduce the technical idea of the technical solution of the present application, the communication resource scheduling method for cloud services provided by the present embodiment is introduced through a specific embodiment below.
[0057] Figure 3 A schematic diagram of the design concept of a communication resource scheduling method for a cloud service provided in an embodiment of the present application. In this embodiment, the communication resource is the telephone number of the caller of the voice outbound call service. The cloud service predicts the connection rate of multiple telephone numbers in the number group in advance. The cloud service predicts the connection rate of multiple telephone numbers based on the historical call records of the telephone numbers, and divides these telephone numbers into three connection rate levels according to the connection rate, such as Figure 3 The high connection rate, medium connection rate and low connection rate shown in . After receiving the voice outbound call request, the number is scheduled according to the scheduling strategy. The scheduling strategy includes two dimensions: concurrent scheduling and connection rate scheduling. Concurrent scheduling refers to the number scheduling based on the current concurrent number of the number, and connection rate scheduling refers to the number scheduling based on the predicted connection rate level. Among them, the concurrent number refers to the number of multiple called numbers called by a phone number as the calling number. According to the concurrent number and connection rate level of each number in the number group, at least one phone number in the number group is scheduled for voice outbound calling. Figure 3The number example shown in is a phone number dispatched from a number group. This number is used as the calling number. The concurrent number represents multiple called numbers that are concurrently called out using the calling number. The concurrent counter records the number of multiple called numbers that are concurrently called out by each calling number. Through the Session Initialization Protocol (SIP) gateway and the communication operator, the outbound voice call function of the cloud service is realized by using the number dispatched from the number group, and the effect of using the scheme to dispatch the number for outbound voice calls is evaluated.
[0058] Corresponding to the application scenario and method of the method provided in the embodiment of the present application, the embodiment of the present application also provides a communication resource scheduling device for cloud services. Figure 4 The structure block diagram of a communication resource scheduling device for cloud services according to an embodiment of the present application is shown. The communication resource scheduling device for cloud services may include:
[0059] The resource scheduling module 401 is used to respond to the communication resource scheduling request and schedule at least one target communication resource in the resource group according to the current capacity and quality level respectively corresponding to the communication resources in the resource group; the quality level corresponding to the communication resource is determined according to the historical usage record of the communication resource, and the resource group is configured to the tenant of the cloud service;
[0060] The task execution module 402 is used to execute a communication task using at least one target communication resource to realize the service function of the cloud service.
[0061] The communication resource scheduling device for cloud services provided in the embodiment of the present application responds to a communication resource scheduling request, and schedules at least one target communication resource in the resource group according to the current capacity and quality level respectively corresponding to the communication resources in the resource group; the quality level corresponding to the communication resource is determined according to the historical usage record of the communication resource, and the resource group is configured to the tenant of the cloud service; and at least one target communication resource is used to perform a communication task to realize the service function of the cloud service. In this embodiment, the quality level of the communication resource is determined according to the historical usage record of the communication resource, and the communication resource is scheduled according to the current capacity and quality level of the communication resource. By scheduling the communication resource in this way, the success rate of task execution can be improved when executing the communication task. Among them, the communication resource can be a number resource, and the quality level of the number resource is determined according to the historical usage record of the number resource, and the number resource is scheduled according to the current capacity and quality level of the number resource. By scheduling the number resource in this way, the connection rate of voice outbound calls can be improved when executing voice tasks.
[0062] In a possible implementation manner, the device further includes a first level determination module, configured to:
[0063] Determine the quality score corresponding to the communication resource according to the historical usage record corresponding to the communication resource in the resource group; the quality score represents the execution success rate when the communication resource is used to perform the communication task;
[0064] According to the quality score corresponding to the communication resource, the quality level corresponding to the communication resource is determined.
[0065] In a possible implementation manner, the device further includes a second level determination module, configured to:
[0066] The quality levels corresponding to the communication resources are determined according to the quality scores respectively corresponding to the communication resources in the predetermined resource group and the current capacities respectively corresponding to the communication resources.
[0067] In a possible implementation, the resource scheduling module 401 is used to:
[0068] Among the communication resources in the resource group whose current capacity does not exceed the preset capacity threshold, at least one target communication resource is scheduled in descending order of the quality levels corresponding to the communication resources.
[0069] In a possible implementation, the resource scheduling module 401 is further configured to:
[0070] When communication resources are scheduled in communication resources of the same quality level, multiple communication resources of the same quality level are configured with equal scheduling probabilities to be used for scheduling at least one target communication resource.
[0071] In a possible implementation, the resource scheduling module 401 is further configured to:
[0072] When a communication resource scheduling request corresponds to multiple communication resource scheduling tasks, a first number of communication resource scheduling tasks are selected from the multiple communication resource scheduling tasks, and based on the first number of communication resource scheduling tasks, multiple target communication resources are scheduled among communication resources whose quality levels are less than a preset level threshold, and the proportion of the first number of communication resource scheduling tasks in the multiple communication resource scheduling tasks is less than a preset first proportion.
[0073] In a possible implementation, the resource scheduling module 401 is further configured to:
[0074] When a communication resource scheduling request corresponds to multiple communication resource scheduling tasks, a second number of communication resource scheduling tasks are selected from the multiple communication resource scheduling tasks, and based on the second number of communication resource scheduling tasks, multiple target communication resources are scheduled in the resource group with equal scheduling probabilities, and the proportion of the second number of communication resource scheduling tasks in the multiple communication resource scheduling tasks is less than a preset second proportion.
[0075] In a possible implementation, the device further includes an updating module, which is used to:
[0076] The quality corresponding to the communication resources decays as the number of times the communication resources are scheduled increases. When the quality decay value corresponding to the communication resources exceeds the preset decay threshold, the communication resources whose quality decay value does not exceed the preset decay threshold are obtained, and the communication resources whose quality decay value exceeds the preset decay threshold are updated.
[0077] In a possible implementation, the device further includes a capacity updating module, which is used to:
[0078] After scheduling at least one target communication resource in the resource group according to the current capacity and quality level corresponding to the communication resources in the resource group, the capacity corresponding to the target communication resource is increased, and when the actual capacity corresponding to the target communication resource is obtained, the current capacity of the target communication resource is updated using the actual capacity.
[0079] In a possible implementation, the communication resource includes the calling party's phone number, the capacity includes the number of called parties simultaneously called out by the calling party's phone number, and the quality level includes the call connection rate level of the calling party's phone number.
[0080] The functions of each module in each device in the embodiments of the present application can be found in the corresponding description in the above method, and have corresponding beneficial effects, which will not be repeated here.
[0081] Figure 5 FIG. 1 is a block diagram of an electronic device used to implement an embodiment of the present application. Figure 5 As shown, the electronic device includes: a memory 510 and a processor 520. The memory 510 stores a computer program that can be run on the processor 520. When the processor 520 executes the computer program, the method in the above embodiment is implemented. The number of the memory 510 and the processor 520 can be one or more.
[0082] The electronic device also includes:
[0083] The communication interface 530 is used to communicate with external devices and perform data exchange transmission.
[0084] If the memory 510, the processor 520 and the communication interface 530 are implemented independently, the memory 510, the processor 520 and the communication interface 530 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0085] Optionally, in a specific implementation, if the memory 510, the processor 520 and the communication interface 530 are integrated on a chip, the memory 510, the processor 520 and the communication interface 530 can communicate with each other through an internal interface.
[0086] An embodiment of the present application provides a computer-readable storage medium storing a computer program, which implements the method provided in the embodiment of the present application when the program is executed by a processor.
[0087] An embodiment of the present application also provides a chip, which includes a processor for calling and executing instructions stored in the memory from the memory, so that a communication device equipped with the chip executes the method provided by the embodiment of the present application.
[0088] An embodiment of the present application also provides a chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided in the embodiment of the application.
[0089] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the Advanced RISC Machines (ARM) architecture.
[0090] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of exemplary but not limiting description, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DR RAM).
[0091] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
[0092] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.
[0093] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0094] Any process or method described in the flow chart or otherwise described herein can be understood as a module, fragment or portion of a code representing one or more executable instructions for implementing the steps of a specific logical function or process. And the scope of the preferred embodiment of the present application includes other implementations, in which the functions may not be performed in the order shown or discussed, including in a substantially simultaneous manner or in a reverse order according to the functions involved.
[0095] The logic and / or steps described in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or used in combination with these instruction execution systems, devices or apparatuses.
[0096] It should be understood that the various parts of the present application can be implemented with hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented with software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the above embodiment method can be completed by instructing the relevant hardware through a program, which can be stored in a computer-readable storage medium, and when the program is executed, it includes one of the steps of the method embodiment or a combination thereof.
[0097] In addition, each functional unit in each embodiment of the present application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the above-mentioned integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a disk or an optical disk, etc.
[0098] The above is only an exemplary embodiment of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope recorded in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A communication resource scheduling method for cloud services, It is characterized in that The method comprises: In response to a communication resource scheduling request, at least one target communication resource is scheduled in the resource group according to the current capacity and quality level respectively corresponding to the communication resources in the resource group; when the communication resource scheduling request corresponds to multiple communication resource scheduling tasks, a first number of communication resource scheduling tasks are selected from the multiple communication resource scheduling tasks, and according to the first number of communication resource scheduling tasks, multiple target communication resources are scheduled in the communication resources whose quality level is less than a preset level threshold, and the proportion of the first number of communication resource scheduling tasks in the multiple communication resource scheduling tasks is less than a preset first proportion; or, when the communication resource scheduling request corresponds to multiple communication resource scheduling tasks, a second number of communication resource scheduling tasks are selected from the multiple communication resource scheduling tasks, and according to the second number of communication resource scheduling tasks, multiple target communication resources are scheduled in the resource group according to equal scheduling probability, and the proportion of the second number of communication resource scheduling tasks in the multiple communication resource scheduling tasks is less than a preset second proportion; the quality level corresponding to the communication resource is determined according to the historical usage record of the communication resource, and the resource group is configured to a tenant of a cloud service; The at least one target communication resource is utilized to perform a communication task to implement a service function of the cloud service.
2. The method according to claim 1, It is characterized in that Before responding to the communication resource scheduling request, the method further includes: Determining a quality score corresponding to the communication resource according to a historical usage record corresponding to the communication resource in the resource group; the quality score represents an execution success rate when the communication task is performed using the communication resource; A quality level corresponding to the communication resource is determined according to the quality score corresponding to the communication resource.
3. The method according to claim 1, It is characterized in that After responding to the communication resource scheduling request, the method further includes: The quality levels corresponding to the communication resources are determined according to the predetermined quality scores corresponding to the communication resources in the resource group and the current capacities corresponding to the communication resources.
4. The method according to claim 1, It is characterized in that The step of scheduling at least one target communication resource in the resource group according to current capacities and quality levels respectively corresponding to the communication resources in the resource group includes: Among the communication resources in the resource group whose current capacity does not exceed a preset capacity threshold, at least one target communication resource is scheduled in descending order of quality levels corresponding to the communication resources.
5. The method according to claim 1, It is characterized in that The method further comprises: When communication resources are scheduled in communication resources of the same quality level, multiple communication resources of the same quality level are configured with equal scheduling probabilities to be used for scheduling at least one target communication resource.
6. The method according to any one of claims 1 to 5, It is characterized in that The method further comprises: The quality corresponding to the communication resource decays as the number of times the communication resource is scheduled increases. When the quality decay value corresponding to the communication resource exceeds a preset decay threshold, the communication resource whose quality decay value does not exceed the preset decay threshold is obtained, and the communication resource whose quality decay value exceeds the preset decay threshold is updated.
7. The method according to any one of claims 1 to 5, It is characterized in that After scheduling at least one target communication resource in the resource group according to the current capacities and quality levels respectively corresponding to the communication resources in the resource group, the method further includes: The capacity corresponding to the target communication resource is increased, and when the actual capacity corresponding to the target communication resource is acquired, the current capacity of the target communication resource is updated using the actual capacity.
8. The method according to any one of claims 1 to 5, It is characterized in that The communication resource includes the calling party's phone number, the capacity includes the number of called parties simultaneously called out by the calling party's phone number, and the quality level includes the connection rate level of the calling party's phone number.
9. A communication resource scheduling device for cloud services, It is characterized in that The device comprises: A resource scheduling module, configured to respond to a communication resource scheduling request, and schedule at least one target communication resource in the resource group according to the current capacity and quality level respectively corresponding to the communication resources in the resource group; when the communication resource scheduling request corresponds to multiple communication resource scheduling tasks, select a first number of communication resource scheduling tasks from the multiple communication resource scheduling tasks, and schedule multiple target communication resources in the communication resources whose quality level is less than a preset level threshold according to the first number of communication resource scheduling tasks, wherein the proportion of the first number of communication resource scheduling tasks in the multiple communication resource scheduling tasks is less than a preset first proportion; or, when the communication resource scheduling request corresponds to multiple communication resource scheduling tasks, select a second number of communication resource scheduling tasks from the multiple communication resource scheduling tasks, and schedule multiple target communication resources in the resource group according to the second number of communication resource scheduling tasks according to an equal scheduling probability, wherein the proportion of the second number of communication resource scheduling tasks in the multiple communication resource scheduling tasks is less than a preset second proportion; the quality level corresponding to the communication resource is determined according to the historical usage record of the communication resource, and the resource group is configured to a tenant of a cloud service; The task execution module is used to execute the communication task by using the at least one target communication resource to realize the service function of the cloud service.
10. An electronic device, It is characterized in that The method comprises a memory, a processor and a computer program stored in the memory, wherein the processor implements the method according to any one of claims 1 to 8 when executing the computer program.
