CN113094158A - Service drive calling method, service drive calling device, electronic equipment and storage medium - Google Patents

Service drive calling method, service drive calling device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113094158A
CN113094158A CN202110275067.6A CN202110275067A CN113094158A CN 113094158 A CN113094158 A CN 113094158A CN 202110275067 A CN202110275067 A CN 202110275067A CN 113094158 A CN113094158 A CN 113094158A
Authority
CN
China
Prior art keywords
drive
period
driver
online
calling
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
CN202110275067.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.)
Guozhengtong Technology Co ltd
Original Assignee
Guozhengtong Technology Co ltd
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 Guozhengtong Technology Co ltd filed Critical Guozhengtong Technology Co ltd
Priority to CN202110275067.6A priority Critical patent/CN113094158A/en
Publication of CN113094158A publication Critical patent/CN113094158A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/484Precedence

Abstract

The application discloses a service drive calling method, a service drive calling device, electronic equipment and a storage medium. The method comprises the following steps: setting the priority of each drive of the service according to a preset rule to obtain a default priority sequence; periodically detecting the real-time state of each drive at a first period, and marking each drive as an online drive or an offline drive according to the real-time state; according to the default priority sequence, periodically setting the calling priority of each online drive in a second period to obtain the calling priority sequence of the online drives; wherein the second period is greater than or equal to the first period; and calling the online driver according to the online driver calling priority sequence. The method can effectively realize the optimized calling of the service driver, improves the utilization efficiency of the service driver, can realize the efficient utilization of application program resources, improves the calling rate of the service driver, improves the operation efficiency and saves the operation time.

Description

Service drive calling method, service drive calling device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of computers, in particular to a service drive calling method, a service drive calling device, electronic equipment and a storage medium.
Background
With the development of internet technology and intelligent terminal technology, various application programs are increasingly applied to various fields, so that convenient operation service is provided for people, and the work and life of people are greatly facilitated. More and more applications with the same function are provided, and for example, enterprise information query applications are provided with multiple types of APPs such as enterprise and sky. For example, when domain name registration is performed, query verification needs to be performed on enterprise information provided by an applicant, and at this time, a service for enterprise information query needs to be invoked. A service refers to a combination of a set of drivers with similar functions. A driver is an application program interface for accessing an application program. How to effectively utilize a plurality of application programs with the same function to realize corresponding operation and efficiently utilize application program resources is one of the hot technical problems in the technical field at present. In the prior art, the optimized calling of the service drive cannot be effectively realized, the utilization efficiency of multiple application programs with the same function is influenced, the operation efficiency is influenced, and the operation time is wasted.
Disclosure of Invention
The application aims to provide a service drive calling method, a service drive calling device, electronic equipment and a storage medium. The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview and is intended to neither identify key/critical elements nor delineate the scope of such embodiments. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is presented later.
According to an aspect of an embodiment of the present application, there is provided a method for calling a driver of a service, including:
setting the priority of each drive of the service according to a preset rule to obtain a default priority sequence;
periodically detecting the real-time state of each drive at a first period, and marking each drive as an online drive or an offline drive according to the real-time state;
according to the default priority sequence, periodically setting the calling priority of each online drive in a second period to obtain the calling priority sequence of the online drives; wherein the second period is greater than or equal to the first period;
and calling the online driver according to the online driver calling priority sequence.
Further, before the periodically setting the call priority of each online driver at a second period according to the default priority order, the method further includes:
periodically counting the offline times of each drive in a third period, and marking the drive of which the offline times in the latest third period exceed a preset offline time threshold as a failure drive;
setting that the failed drive does not accept real-time state detection within a first preset time period from when the failed drive is marked as the failed drive; wherein the third period is greater than or equal to the second period.
Further, the method for calling the driver further includes:
and counting the current number of the online drivers in real time, and adjusting the period for periodically detecting the real-time state of each driver according to the counting result.
Further, the adjusting the period for periodically detecting the real-time status of each of the drivers according to the statistical result includes:
comparing the current online driving quantity in the statistical result with a preset quantity threshold value;
if the current number of the online drivers is smaller than the preset number threshold value and the current detection period of the real-time state of each driver is the first period, replacing the first period with a fourth period;
if the current number of the online drivers is larger than the preset number threshold value and the current detection cycle of the real-time state of each driver is the fourth cycle, replacing the fourth cycle with the first cycle; wherein the fourth period is less than the first period.
Further, the method for calling the driver further includes:
when the real-time state of each drive is periodically detected in the fourth period, the current real-time state of each off-line drive is detected first, and then the current real-time state of each on-line drive is detected.
Further, the method for calling the driver further includes:
periodically counting the calling fault times of each driver, and marking the driver of which the calling fault time of the latest counting period exceeds a preset fault time threshold as a fault driver;
setting the faulty drive to not accept real-time status detection for a second preset duration from when it is marked as a faulty drive.
Further, the method further comprises: sending an early warning message containing the fault-driven information.
According to another aspect of the embodiments of the present application, there is provided a device for invoking a driver of a service, including:
the first setting module is used for setting the priority of each drive of the service according to a preset rule to obtain a default priority sequence;
the detection marking module is used for periodically detecting the real-time state of each drive in a first period and marking each drive as an online drive or an offline drive according to the real-time state;
the second setting module is used for periodically setting the calling priority of each online drive in a second period according to the default priority sequence to obtain the calling priority sequence of the online drives; wherein the second period is greater than or equal to the first period;
and the calling module is used for calling the online driver according to the online driver calling priority sequence.
According to another aspect of the embodiments of the present application, there is provided an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the method for invoking a service as described above.
According to another aspect of embodiments of the present application, there is provided a computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the method for driving invocation of a service as described above.
The technical scheme provided by one aspect of the embodiment of the application can have the following beneficial effects:
according to the service drive calling method, each drive is marked as an online drive or an offline drive according to the real-time state of each drive, the calling priority of each online drive is periodically set according to the default priority sequence, the online drives are called according to the online drive calling priority sequence, the optimized calling of the service drive can be effectively achieved, the utilization efficiency of the service drive is improved, the application program resources can be efficiently utilized, the service drive calling rate is improved, the operation efficiency is improved, and the operation time is saved.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the application, or may be learned by the practice of the embodiments. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 illustrates a flow diagram of a method for driver invocation of a service in accordance with an embodiment of the present application;
FIG. 2 illustrates a flow diagram of a method for driver invocation of a service in accordance with another embodiment of the present application;
FIG. 3 illustrates a flow diagram of a method for driver invocation of a service in accordance with another embodiment of the present application;
FIG. 4 is a flow chart illustrating the embodiment of FIG. 3 for adjusting the period for detecting the real-time status of each driver according to the statistical result;
FIG. 5 illustrates a flow diagram of a method for driver invocation of a service in accordance with another embodiment of the present application;
FIG. 6 illustrates a flow diagram of a method for driver invocation of a service in accordance with another embodiment of the present application;
FIG. 7 shows a block diagram of a device for driver invocation of a service of an embodiment of the present application;
fig. 8 shows a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It will be understood by those within the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
A service refers to a combination of a set of drivers with similar functions. A driver refers to an application program interface for accessing an application program. The offline state refers to an unavailable state of the drive. The online state refers to an available state of the drive.
As shown in fig. 1, an embodiment of the present application provides a method for invoking a driver of a service, including:
and S10, setting the priority of each drive of the service according to a preset rule to obtain a default priority sequence.
The preset rule may set the priority of each driver according to the network score of the application corresponding to each driver, for example.
Take domain name registration service as an example. Domain name registration is a service in the Internet for solving address correspondence problems. According to the internet domain name management method, a domain name registration service organization and a domain name registration management organization need to check whether a domain name proposed by an applicant violates the right of a third party and the real identity of the applicant. The registration of the second level domain name in each of the same top level domain names is unique and non-repeatable, but the second level domain names in different top level domain names may be the same. Thus, domain names on the web are relatively limited resources, and their value is gradually gaining attention as the number of registered businesses and individual users increases. Verification is a service. To achieve the highest service efficiency, the service for verification includes several drivers, each driver for accessing an application to complete verification of information provided by an applicant.
For example, querying enterprise information may be accomplished by accessing an enterprise search APP (an enterprise information query tool), and a driver for the enterprise search APP is included in the service. Querying business information may be accomplished by accessing a query by day APP (a business information query tool), which contains a driver for the query by day APP within the service. And obtaining scores of various application programs according to the network information big data, and setting the priority of corresponding drive according to the score. For example, a service for verification includes drivers of five applications A, B, C, D, E, scores of the five applications are obtained according to network information big data, the scores are B, D, E, C, A from high to low, and a default priority order of the five drivers is set to be B, D, E, C, A according to the order of the scores in the network big data.
And S20, periodically detecting the real-time state of each drive at a first period, and marking each drive as an online drive or an offline drive according to the real-time state.
The real-time state of the driver includes that the corresponding driver is currently in an online state or an offline state. And if the real-time state shows that the corresponding drive is in an online state, marking that the corresponding drive is currently in an online drive, and if the real-time state shows that the corresponding drive is in an offline state, marking that the corresponding drive is currently in an offline drive.
The first period can be set according to the actual application requirement. For example, the first period may be preset to 5 minutes, and each driver in the service is subjected to real-time status detection every 5 minutes to determine which drivers are available and which are unavailable currently.
And S40, periodically setting the calling priority of each online drive in a second period according to the default priority sequence, and obtaining the calling priority sequence of the online drives. The second period is greater than or equal to the first period.
For each online driver determined by S20, the call priority of each online driver is set according to the default priority order obtained by S10. For example, assuming that A, C, D, E is an online driver and C is an offline driver among the drivers of five applications A, B, C, D, E, the call priority of A, B, D, E is set, and the online driver call priority order is B, D, E, A according to the relative order of A, B, D, E in the default priority order B, D, E, C, A. The length of the second period may be set according to actual needs, and is greater than or equal to the first period, for example, if the first period is set to 5 minutes, the second period may be set to 5 minutes, 6 minutes, or the like.
And S50, calling the online drivers according to the online driver calling priority sequence.
Taking the example that the preset rule is to set the priority of each driver according to the network score of the application program corresponding to each driver, if the online driver calls the priority sequence of B, D, E, A, the driver B is called preferentially when the service is implemented, and then D, E, A is performed in sequence. This ensures that the online driver with the highest network score is invoked preferentially, thereby ensuring the best implementation of the service.
As shown in fig. 2, in some embodiments, before step S40, the method further comprises:
and S30, periodically counting the offline times of each drive in a third period, marking the drive of which the offline time exceeds a preset offline time threshold in the latest third period as a failed drive, and setting that the failed drive does not accept real-time state detection within a first preset time period from the time when the failed drive is marked as the failed drive. The third period is greater than or equal to the second period. The number of times a drive goes offline, i.e., the number of times the drive is marked as an offline drive.
Due to various reasons, such as the current access congestion of the application program and the like, the offline frequency of the failed drive in the current period of time is high, if the real-time state of the failed drive is still periodically detected, the detection of the failed drive causes time waste, so that the real-time state of the failed drive is not detected within the first preset time period, and the detection time of the real-time state of the drive can be saved. The first preset time period may be set according to actual needs, and may be set to 10 minutes, for example. After the first preset time period is over, the reason for the failed drive may be eliminated, for example, the access congestion of the application program is relieved, the offline frequency of the failed drive is reduced, and then the real-time state is continuously detected. Especially for time-sensitive application programs, the access amount is large in a certain fixed time period every day, and the problem of access congestion is very easy to occur, so that non-failed drives can be marked in the fixed time period, real-time state detection is not carried out on the fixed time period, and the real-time state of the fixed time period is detected after the fixed time period elapses. Therefore, the detection efficiency can be improved, the efficiency of finding the online drive can be improved, and the time is saved.
As shown in fig. 3, in some embodiments, the method further comprises:
and S60, counting the current online drive number in real time, and adjusting the period for periodically detecting the real-time state of each drive according to the counting result.
As shown in fig. 4, in some embodiments, the adjusting the period of detecting the real-time status of each driver according to the statistical result in step S60 includes:
s601, comparing the current online driving quantity in the statistical result with a preset quantity threshold value.
And S602, if the current number of the online drivers is smaller than the preset number threshold and the period of currently detecting the real-time state of each driver is the first period, replacing the first period with a fourth period.
S603, if the current number of the online drivers is larger than the preset number threshold value and the period for currently detecting the real-time state of each driver is the fourth period, replacing the fourth period with the first period; wherein the fourth period is less than the first period.
Specifically, if the current number of online drivers is smaller than a preset number threshold and the current detection period of the real-time state of each driver is a first period, replacing the first period with a fourth period until the current number of online drivers is counted to be larger than the preset number threshold, and replacing the fourth period with the first period, wherein the fourth period is smaller than the first period.
If the number of the current online drivers is smaller than the preset number threshold, the situation that the online drivers are insufficient when the service calls the online drivers may occur, therefore, the fourth period smaller than the first period is replaced by the first period, the detection frequency of the real-time state of each driver can be improved, the drivers which are out of the offline state can be timely brought into the online driver calling priority order to receive the service call, and the problem that the current online drivers are insufficient is solved.
As shown in fig. 5, in some embodiments, the method further comprises:
and S70, when the real-time state of each drive is periodically detected in the fourth period, the real-time state of each current off-line drive is detected, and then the real-time state of each current on-line drive is detected.
The real-time state of each current offline driver is detected firstly, so that the drivers which are out of the offline state are found in time, and the drivers which are out of the offline state are brought into the online driver calling priority order in time to receive service calling.
As shown in fig. 6, in some embodiments, the method further comprises:
and S80, periodically counting the calling fault times of each driver, marking the driver of which the calling fault time of the latest counting period exceeds a preset fault time threshold as a fault driver, setting that the fault driver does not receive real-time state detection within a second preset time period from the time when the driver is marked as the fault driver, and sending an early warning message containing information of the fault driver.
There are many reasons for the generation of the call failure of the driver, for example, the call failure may be caused by the failure of the corresponding application, and a long time may be required for solving the problem of the failure of the application, so that it is set that the failed driver does not accept the real-time status detection within the second preset time period from the time when the failed driver is marked as the failed driver, so as to avoid wasting the time for performing the real-time status detection on the failed driver. In addition, the early warning message is sent to remind the staff to take corresponding processing measures in time, such as fault detection, repair and other measures. The second preset time period may be set according to actual needs, and may be set to 20 minutes, 30 minutes, and the like, for example.
According to the service drive calling method, each drive is marked as an online drive or an offline drive according to the real-time state of each drive, the calling priority of each online drive is periodically set according to the default priority sequence, the online drives are called according to the online drive calling priority sequence, the optimized calling of the service drive can be effectively achieved, the utilization efficiency of the service drive is improved, the application program resources can be efficiently utilized, the service drive calling rate is improved, the operation efficiency is improved, and the operation time is saved.
As shown in fig. 7, another embodiment of the present application provides a device for invoking a driver of a service, including:
the first setting module is used for setting the priority of each drive of the service according to a preset rule to obtain a default priority sequence;
the detection marking module is used for periodically detecting the real-time state of each drive in a first period and marking each drive as an online drive or an offline drive according to the real-time state;
the second setting module is used for periodically setting the calling priority of each online drive in a second period according to the default priority sequence to obtain the calling priority sequence of the online drives; wherein the second period is greater than or equal to the first period;
and the calling module is used for calling the online driver according to the online driver calling priority sequence.
In some embodiments, the service driver invoking device further includes a first statistical marking module, where the first statistical marking module is configured to periodically set, according to the default priority order, the invocation priority of each online driver in a second period at the second setting module, periodically count, in a third period, the number of offline times of each driver before obtaining the invocation priority order of the online drivers, mark, as a failed driver, a driver whose number of offline times in a last third period exceeds a preset offline time threshold, and set that the failed driver does not receive real-time status detection within a first preset time period from when the driver is marked as the failed driver. The third period is greater than or equal to the second period. The number of times a drive goes offline, i.e., the number of times the drive is marked as an offline drive.
In some embodiments, the device for invoking the service driver further comprises:
and the counting and adjusting module is used for counting the number of the current online drivers in real time and adjusting the period for periodically detecting the real-time state of each driver according to the counting result.
In some embodiments, the statistics adjusting module includes a sub-module for adjusting a period of detecting a real-time status of each driver according to a result of the statistics, the sub-module including:
the comparison unit is used for comparing the current online driving quantity in the statistical result with a preset quantity threshold value;
and the replacing unit is used for replacing the first period with a fourth period if the current number of the online drivers is smaller than the preset number threshold and the period of currently detecting the real-time state of each driver is the first period.
The replacing unit is further configured to replace the fourth period with the first period if the current number of the online drivers is greater than the preset number threshold and a period of currently detecting a real-time state of each driver is the fourth period; wherein the fourth period is less than the first period.
In some embodiments, the detection marking module is further configured to detect a current real-time status of each offline drive and then detect a current real-time status of each online drive when the real-time status of each drive is periodically detected at the fourth period.
In some embodiments, the service driver invoking device further includes a second statistical marking module, where the second statistical marking module is configured to periodically count the number of invocation failure times of each driver, mark a driver whose invocation failure time of the latest statistical period exceeds a preset failure time threshold as a failure driver, set the failure driver not to accept real-time status detection within a second preset time period from when the driver is marked as the failure driver, and send an early warning message including information of the failure driver.
Another embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the program to implement the method for calling a service in any of the above embodiments. As shown in fig. 8, the electronic device 10 of an embodiment may include: the system comprises a processor 100, a memory 101, a bus 102 and a communication interface 103, wherein the processor 100, the communication interface 103 and the memory 101 are connected through the bus 102; the memory 101 stores a computer program that can be executed on the processor 100, and the processor 100 executes the computer program to perform the method provided by any of the foregoing embodiments of the present application.
The Memory 101 may include a high-speed Random Access Memory (RAM), and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
The bus 102 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 101 is used for storing a program, and the processor 100 executes the program after receiving an execution instruction, and the method disclosed in any of the foregoing embodiments of the present application may be applied to the processor 100, or implemented by the processor 100.
Processor 100 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 100. The Processor 100 may be a general-purpose Processor, and may include a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method in combination with the hardware.
The electronic device provided by the embodiment of the application and the method provided by the embodiment of the application have the same inventive concept and have the same beneficial effects as the method adopted, operated or realized by the electronic device.
Another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, the computer program being executed by a processor to implement the method for invoking a service according to any one of the above embodiments. Examples of the computer-readable storage medium may include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory, or other optical and magnetic storage media, which are not described in detail herein.
It should be noted that:
the term "module" is not intended to be limited to a particular physical form. Depending on the particular application, a module may be implemented as hardware, firmware, software, and/or combinations thereof. Furthermore, different modules may share common components or even be implemented by the same component. There may or may not be clear boundaries between the various modules. Moreover, this application is not intended to be limited to any particular programming language, and the subject matter of the application described herein may be implemented using a variety of programming languages.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The above-mentioned embodiments only express the embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A method for driving and calling a service, comprising:
setting the priority of each drive of the service according to a preset rule to obtain a default priority sequence;
periodically detecting the real-time state of each drive at a first period, and marking each drive as an online drive or an offline drive according to the real-time state;
according to the default priority sequence, periodically setting the calling priority of each online drive in a second period to obtain the calling priority sequence of the online drives; wherein the second period is greater than or equal to the first period;
and calling the online driver according to the online driver calling priority sequence.
2. The driver invocation method according to claim 1, wherein prior to said periodically setting the invocation priority of each of said online drivers at a second period according to said default priority order, said method further comprises:
periodically counting the offline times of each drive in a third period, and marking the drive of which the offline times in the latest third period exceed a preset offline time threshold as a failure drive;
setting that the failed drive does not accept real-time state detection within a first preset time period from when the failed drive is marked as the failed drive; wherein the third period is greater than or equal to the second period.
3. The driver invocation method according to claim 1, wherein said driver invocation method further comprises:
and counting the current number of the online drivers in real time, and adjusting the period for periodically detecting the real-time state of each driver according to the counting result.
4. The method for calling drivers according to claim 3, wherein the adjusting the period for periodically detecting the real-time status of each driver according to the statistical result comprises:
comparing the current online driving quantity in the statistical result with a preset quantity threshold value;
if the current number of the online drivers is smaller than the preset number threshold value and the current detection period of the real-time state of each driver is the first period, replacing the first period with a fourth period;
if the current number of the online drivers is larger than the preset number threshold value and the current detection cycle of the real-time state of each driver is the fourth cycle, replacing the fourth cycle with the first cycle; wherein the fourth period is less than the first period.
5. The driver invocation method according to claim 4, wherein said driver invocation method further comprises:
when the real-time state of each drive is periodically detected in the fourth period, the current real-time state of each off-line drive is detected first, and then the current real-time state of each on-line drive is detected.
6. The driver invocation method according to claim 1, wherein said driver invocation method further comprises:
periodically counting the calling fault times of each driver, and marking the driver of which the calling fault time of the latest counting period exceeds a preset fault time threshold as a fault driver;
setting the faulty drive to not accept real-time status detection for a second preset duration from when it is marked as a faulty drive.
7. The drive invocation method of claim 6, wherein the method further comprises: sending an early warning message containing the fault-driven information.
8. A device for invoking a service, comprising:
the first setting module is used for setting the priority of each drive of the service according to a preset rule to obtain a default priority sequence;
the detection marking module is used for periodically detecting the real-time state of each drive in a first period and marking each drive as an online drive or an offline drive according to the real-time state;
the second setting module is used for periodically setting the calling priority of each online drive in a second period according to the default priority sequence to obtain the calling priority sequence of the online drives; wherein the second period is greater than or equal to the first period;
and the calling module is used for calling the online driver according to the online driver calling priority sequence.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the program to implement a drive-call method of a service according to any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the program is executed by a processor to implement a method for driver invocation of a service according to any of claims 1-7.
CN202110275067.6A 2021-03-15 2021-03-15 Service drive calling method, service drive calling device, electronic equipment and storage medium Pending CN113094158A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110275067.6A CN113094158A (en) 2021-03-15 2021-03-15 Service drive calling method, service drive calling device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110275067.6A CN113094158A (en) 2021-03-15 2021-03-15 Service drive calling method, service drive calling device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113094158A true CN113094158A (en) 2021-07-09

Family

ID=76667208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110275067.6A Pending CN113094158A (en) 2021-03-15 2021-03-15 Service drive calling method, service drive calling device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113094158A (en)

Citations (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
BE672964A (en) * 1964-11-27 1966-03-16
AU2229883A (en) * 1982-12-17 1984-06-21 Adt Inc. Security system with multiprogrammed controller
JPS6024647A (en) * 1983-07-20 1985-02-07 Hitachi Ltd Autonomous resource managing system of system
GB8923874D0 (en) * 1989-10-24 1989-12-13 Ibm Servicing interrupt requests in a data processing system without using the services of an operating system
CA2009550A1 (en) * 1989-05-17 1990-11-17 John Monroe Dinwiddie Jr. Data processing system with total system resource management for itself and for an associated alien processor
CA2009529A1 (en) * 1989-05-17 1990-11-17 John Monroe Dinwiddie Jr. Servicing interrupt requests in a data processing system without using the services of an operating system
CA2021826A1 (en) * 1989-10-23 1991-04-24 Darryl Edmond Judice Delay logic for preventing cpu lockout from bus ownership
DE4417424A1 (en) * 1994-05-18 1995-11-23 Siemens Ag Step drive control e.g for motor driven machine parts
US5940610A (en) * 1995-10-05 1999-08-17 Brooktree Corporation Using prioritized interrupt callback routines to process different types of multimedia information
US6323882B1 (en) * 1998-10-26 2001-11-27 Simulation Sciences, Inc. Method and systems for a graphical real time flow task scheduler
US20050165881A1 (en) * 2004-01-23 2005-07-28 Pipelinefx, L.L.C. Event-driven queuing system and method
CN1836208A (en) * 2003-10-23 2006-09-20 微软公司 Model-based management of computer systems and distributed applications
EP1724684A1 (en) * 2005-05-17 2006-11-22 BUSI Incubateur d'entreprises d'AUVEFGNE System and method for task scheduling, signal analysis and remote sensor
US7451447B1 (en) * 1998-08-07 2008-11-11 Arc International Ip, Inc. Method, computer program and apparatus for operating system dynamic event management and task scheduling using function calls
CN101441580A (en) * 2008-12-09 2009-05-27 华北电网有限公司 Distributed paralleling calculation platform system and calculation task allocating method thereof
CN101499019A (en) * 2009-03-24 2009-08-05 武汉烽火网络有限责任公司 Carrier-grade Ethernet system and real-time task scheduling method used for the same
CN101807159A (en) * 2010-03-18 2010-08-18 西北工业大学 Self-adapting task scheduling method
US20130080641A1 (en) * 2011-09-26 2013-03-28 Knoa Software, Inc. Method, system and program product for allocation and/or prioritization of electronic resources
CN103164269A (en) * 2011-12-08 2013-06-19 中兴通讯股份有限公司 Method and terminal achieving multi-window display of application programs
CN103365708A (en) * 2012-04-06 2013-10-23 阿里巴巴集团控股有限公司 Method and device for scheduling tasks
WO2014131707A1 (en) * 2013-02-27 2014-09-04 Nec Europe Ltd. A method for operating a network
CN104781812A (en) * 2012-09-28 2015-07-15 甲骨文国际公司 Policy driven data placement and information lifecycle management
CN106339268A (en) * 2016-09-12 2017-01-18 广东欧珀移动通信有限公司 Application program control method and intelligent terminal
US20170206529A1 (en) * 2009-01-28 2017-07-20 Headwater Research Llc Wireless End-User Device Providing Ambient or Sponsored Services
CN107102894A (en) * 2017-04-07 2017-08-29 百度在线网络技术(北京)有限公司 Method for scheduling task, device and system
CN108632365A (en) * 2018-04-13 2018-10-09 腾讯科技(深圳)有限公司 Service Source method of adjustment, relevant apparatus and equipment
US20180321975A1 (en) * 2017-05-04 2018-11-08 Salesforce.Com, Inc. Systems, methods, and apparatuses for implementing a stateless, deterministic scheduler and work discovery system with interruption recovery
CN109347974A (en) * 2018-11-16 2019-02-15 北京航空航天大学 A kind of online offline mixed scheduling system improving online service quality and cluster resource utilization
CN110324417A (en) * 2019-06-29 2019-10-11 河南信大网御科技有限公司 A kind of cloud service execution body dynamic reconfiguration method based on mimicry defence
CN110554921A (en) * 2019-08-30 2019-12-10 腾讯科技(深圳)有限公司 Time slice distribution method and device, storage medium and computer equipment
CN110955501A (en) * 2018-09-27 2020-04-03 北京京东尚科信息技术有限公司 Service request processing method and device, electronic equipment and readable medium
WO2020133408A1 (en) * 2018-12-29 2020-07-02 深圳市欢太科技有限公司 Application program priority level adjustment method and apparatus, and storage medium and electronic device
CN112130963A (en) * 2020-09-30 2020-12-25 腾讯科技(深圳)有限公司 Virtual machine task scheduling method and device, computer equipment and storage medium
CN112199194A (en) * 2020-10-14 2021-01-08 广州虎牙科技有限公司 Container cluster-based resource scheduling method, device, equipment and storage medium
CN112306939A (en) * 2020-10-29 2021-02-02 山东云海国创云计算装备产业创新中心有限公司 Bus calling method, device, equipment and storage medium

Patent Citations (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
BE672964A (en) * 1964-11-27 1966-03-16
AU2229883A (en) * 1982-12-17 1984-06-21 Adt Inc. Security system with multiprogrammed controller
JPS6024647A (en) * 1983-07-20 1985-02-07 Hitachi Ltd Autonomous resource managing system of system
CA2009550A1 (en) * 1989-05-17 1990-11-17 John Monroe Dinwiddie Jr. Data processing system with total system resource management for itself and for an associated alien processor
CA2009529A1 (en) * 1989-05-17 1990-11-17 John Monroe Dinwiddie Jr. Servicing interrupt requests in a data processing system without using the services of an operating system
CA2021826A1 (en) * 1989-10-23 1991-04-24 Darryl Edmond Judice Delay logic for preventing cpu lockout from bus ownership
GB8923874D0 (en) * 1989-10-24 1989-12-13 Ibm Servicing interrupt requests in a data processing system without using the services of an operating system
DE4417424A1 (en) * 1994-05-18 1995-11-23 Siemens Ag Step drive control e.g for motor driven machine parts
US5940610A (en) * 1995-10-05 1999-08-17 Brooktree Corporation Using prioritized interrupt callback routines to process different types of multimedia information
US7451447B1 (en) * 1998-08-07 2008-11-11 Arc International Ip, Inc. Method, computer program and apparatus for operating system dynamic event management and task scheduling using function calls
US6323882B1 (en) * 1998-10-26 2001-11-27 Simulation Sciences, Inc. Method and systems for a graphical real time flow task scheduler
CN1836208A (en) * 2003-10-23 2006-09-20 微软公司 Model-based management of computer systems and distributed applications
US20050165881A1 (en) * 2004-01-23 2005-07-28 Pipelinefx, L.L.C. Event-driven queuing system and method
EP1724684A1 (en) * 2005-05-17 2006-11-22 BUSI Incubateur d'entreprises d'AUVEFGNE System and method for task scheduling, signal analysis and remote sensor
CN101441580A (en) * 2008-12-09 2009-05-27 华北电网有限公司 Distributed paralleling calculation platform system and calculation task allocating method thereof
US20170206529A1 (en) * 2009-01-28 2017-07-20 Headwater Research Llc Wireless End-User Device Providing Ambient or Sponsored Services
CN101499019A (en) * 2009-03-24 2009-08-05 武汉烽火网络有限责任公司 Carrier-grade Ethernet system and real-time task scheduling method used for the same
CN101807159A (en) * 2010-03-18 2010-08-18 西北工业大学 Self-adapting task scheduling method
US20130080641A1 (en) * 2011-09-26 2013-03-28 Knoa Software, Inc. Method, system and program product for allocation and/or prioritization of electronic resources
CN103164269A (en) * 2011-12-08 2013-06-19 中兴通讯股份有限公司 Method and terminal achieving multi-window display of application programs
CN103365708A (en) * 2012-04-06 2013-10-23 阿里巴巴集团控股有限公司 Method and device for scheduling tasks
CN104781812A (en) * 2012-09-28 2015-07-15 甲骨文国际公司 Policy driven data placement and information lifecycle management
WO2014131707A1 (en) * 2013-02-27 2014-09-04 Nec Europe Ltd. A method for operating a network
CN106339268A (en) * 2016-09-12 2017-01-18 广东欧珀移动通信有限公司 Application program control method and intelligent terminal
CN107102894A (en) * 2017-04-07 2017-08-29 百度在线网络技术(北京)有限公司 Method for scheduling task, device and system
US20180321975A1 (en) * 2017-05-04 2018-11-08 Salesforce.Com, Inc. Systems, methods, and apparatuses for implementing a stateless, deterministic scheduler and work discovery system with interruption recovery
CN108632365A (en) * 2018-04-13 2018-10-09 腾讯科技(深圳)有限公司 Service Source method of adjustment, relevant apparatus and equipment
CN110955501A (en) * 2018-09-27 2020-04-03 北京京东尚科信息技术有限公司 Service request processing method and device, electronic equipment and readable medium
CN109347974A (en) * 2018-11-16 2019-02-15 北京航空航天大学 A kind of online offline mixed scheduling system improving online service quality and cluster resource utilization
WO2020133408A1 (en) * 2018-12-29 2020-07-02 深圳市欢太科技有限公司 Application program priority level adjustment method and apparatus, and storage medium and electronic device
CN110324417A (en) * 2019-06-29 2019-10-11 河南信大网御科技有限公司 A kind of cloud service execution body dynamic reconfiguration method based on mimicry defence
CN110554921A (en) * 2019-08-30 2019-12-10 腾讯科技(深圳)有限公司 Time slice distribution method and device, storage medium and computer equipment
CN112130963A (en) * 2020-09-30 2020-12-25 腾讯科技(深圳)有限公司 Virtual machine task scheduling method and device, computer equipment and storage medium
CN112199194A (en) * 2020-10-14 2021-01-08 广州虎牙科技有限公司 Container cluster-based resource scheduling method, device, equipment and storage medium
CN112306939A (en) * 2020-10-29 2021-02-02 山东云海国创云计算装备产业创新中心有限公司 Bus calling method, device, equipment and storage medium

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
D. GESSNER, M. BARRANCO AND J. PROENZA: "Design and Verification of a Media Redundancy Management Driver for a CAN Star Topology", 《IEEE TRANSACTIONS ON INDUSTRIAL INFORMATICS》 *
J. WANG, S. LOU, P. ZHOU AND G. HUANG: "A design approach for event-driven optimization in complex air conditioning systems", 《2017 13TH IEEE CONFERENCE ON AUTOMATION SCIENCE AND ENGINEERING (CASE)》 *
何勇灵编著: "《汽车电子控制技术》", 31 December 2013, 北京航空航天大学出版社, pages: 1 *
张惠娟, 翟鸿鸣, 周利华: "实时协同的调度算法研究", 《计算机工程与设计》 *
赖嘉钦: "物料分配调度自动化管理系统设计与实现", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *
赵明: "具备约束的实时调度关键问题的研究", 《中国博士学位论文全文数据库》 *

Similar Documents

Publication Publication Date Title
CN109992350B (en) Migration method and device for virtual machines in resource pool of cloud computing system
US20130212436A1 (en) Method and system for detecting abnormality of network processor
CN111625331B (en) Task scheduling method, device, platform, server and storage medium
CN110659123B (en) Distributed task distribution scheduling method and device based on message
CN111367693B (en) Method, system, device and medium for scheduling plug-in tasks based on message queue
CN115277566B (en) Load balancing method and device for data access, computer equipment and medium
CN110806971A (en) Version testing method and device and electronic equipment
CN110162344A (en) A kind of method, apparatus, computer equipment and readable storage medium storing program for executing that current limliting is isolated
CN114143327B (en) Cluster resource quota allocation method and device and electronic equipment
CN113760658A (en) Monitoring method, device and equipment
CN113094158A (en) Service drive calling method, service drive calling device, electronic equipment and storage medium
CN110647463B (en) Method and device for restoring test breakpoint and electronic equipment
CN111464598A (en) Data pushing method and device
CN115981826A (en) Task scheduling processing method and device, computer equipment and readable storage medium
CN101944056B (en) Method and device for monitoring multitask system
CN115525392A (en) Container monitoring method and device, electronic equipment and storage medium
CN112559565A (en) Abnormity detection method, system and device
US20230143343A1 (en) Method and system for regular testing of datacenter hardware
CN114070658B (en) PCC system and PCC policy configuration method
CN111475306B (en) Micro service node, asynchronous task processing method, system and storage medium
CN114691379A (en) Service control method, device, electronic equipment and storage medium
CN111177515B (en) Product label matching method, device, computer equipment and storage medium
CN111104284B (en) Service health detection method and device, computer equipment and storage medium
CN109726032B (en) SSD exception handling method and device, computer equipment and storage medium
CN115499299A (en) Cluster equipment monitoring method and device

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