Flexible manufacturing production line reliability evaluation micro-service management and control method and device

By introducing a priority level mechanism based on user role, business criticality and initiation time in the microservice management and control method, a pending microservice queue is generated, which solves the problem that important functional modules in the prior art have not responded for a long time, and improves the system's response efficiency and reliability.

CN119809258AInactive Publication Date: 2025-04-11BEIJING NAT INNOVATION INST OF LIGHTWEIGHT LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411942504.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-04-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When multiple users initiate requests at the same time, existing microservice control methods cannot effectively distinguish different roles and business importance, resulting in the unresponsiveness of important functional modules for a long time.

Method used

A microservice control method based on a preset priority level mechanism is adopted to generate a pending microservice queue. In the priority level mechanism, the first priority is the user role, the second priority is business criticality, and the third priority is the initiation time.

Benefits of technology

By comprehensively considering user roles, business criticality and initiation time, we generate pending microservice queues, which avoids the problem that important functional modules cannot respond in a timely manner, and improves the overall reliability and response efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119809258A_ABST
    Figure CN119809258A_ABST
Patent Text Reader

Abstract

The invention discloses a flexible manufacturing production line reliability evaluation micro-service management and control method and device, and relates to the field of computer services. According to the management and control method, when a server side receives a plurality of requests at the same time at the current moment, a to-be-processed micro-service queue is generated by adopting a method of combining a user role, business criticality and request initiating time. The to-be-processed micro-service queue comprehensively considers the importance degree of each functional module, and the to-be-processed micro-service queue is generated based on the importance degrees of the functional modules, so that the possibility that the important functional modules cannot be responded in time when the micro-service operand or the initiation time is taken as a processing sequence is avoided. And the idle time threshold value corresponding to the user is determined through the user login frequency, so that the problems that the user with relatively low login frequency occupies resources and the user with relatively high login frequency frequently logs in the system due to a fixed idle time threshold value are avoided, and the working efficiency is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer service technology, and more specifically, to a flexible manufacturing production line reliability evaluation microservice management and control method and device. Background Art

[0002] Flexible manufacturing production is widely used in many fields such as automobile manufacturing, electronic product manufacturing, and pharmaceutical industry. With the diversification and personalization of consumer demand and the acceleration of product updates and iterations, traditional manufacturing production methods can no longer fully meet market demand. Flexible manufacturing production can quickly respond to changes in market demand, improve production efficiency, and reduce production costs. At the same time, it can also improve product quality and quickly respond to market demand, thereby enhancing the competitiveness and sustainable development capabilities of enterprises.

[0003] Microservice architecture is an architectural pattern that builds applications as a series of small, autonomous services, each of which runs in its own independent process and communicates using lightweight communication mechanisms. The application of microservices in flexible manufacturing production is mainly reflected in improving production flexibility, optimizing resource allocation, and enhancing system reliability. Microservice architecture allows enterprises to quickly develop, deploy and iterate new functional modules. In flexible manufacturing production, enterprises can adjust production lines more quickly; microservice architecture supports dynamic adjustment of resource allocation according to business needs. Enterprises can adjust equipment, manpower and other resources on the production line in real time according to factors such as order volume and production progress; each service in the microservice architecture is independent and has its own fault recovery mechanism. When a service fails, it will not affect the normal operation of other services.

[0004] The commonly used methods in microservice management and control mainly use the time of initiating requests as the standard to generate a queue of pending microservices. In addition, Chinese patent document CN 117640363A discloses a microservice configuration and management method and system. In this management and control method, when the server faces multiple requests at the same time, the microservice operation amount required to respond to the requests initiated by each user end is calculated, and a queue of pending microservices is generated in order from small to large.

[0005] In summary, in the current existing microservice management and control methods, when multiple users initiate requests at the same time, the server will generate a queue of pending microservices based on the amount of microservice computing and the order of request time. However, different roles have different levels of importance in making decisions on the same request; different businesses in the system have different levels of importance. Therefore, relying solely on the request initiation time or the amount of microservice computing as a standard will cause some important functional modules of the system to not be responded to for a long time. Summary of the invention

[0006] In view of this, the present invention provides a flexible manufacturing production line reliability evaluation microservice management and control method and device, which are used to solve the problem that the existing microservice management and control method may cause some important functional modules of the system to fail to respond for a long time.

[0007] To achieve the above objectives, the proposed solution is as follows: A microservice management and control method for reliability evaluation of a flexible manufacturing production line is applied to the server side. The microservice management and control method includes: Determine whether the number of requests in the request set received at the current moment is greater than 1; If so, a queue of pending microservices is generated based on a preset priority level mechanism, wherein the first priority in the priority level mechanism is the user role, the second priority is the business criticality, and the third priority is the initiation time.

[0008] Preferably, the process of generating a queue of microservices to be processed based on a preset priority level mechanism specifically includes: Determine whether the user role levels of the initiators of each request in the request set are the same; If they are not the same, sorting each first request subset according to the user role level of the initiator, wherein each request in the request set is classified according to the user role level of the initiator to obtain the first request subset; Determining whether the business criticality levels of the requests in the first request subsets are the same; If they are not the same, sorting each second request subset according to the business criticality level, wherein each request in the first request set is classified according to the business criticality level to obtain the second request subset; Determine respectively whether the initiation time of each request in each second request subset is the same; If they are not the same, the requests in the second request subset are sorted according to the initiation time to obtain a microservice queue to be processed.

[0009] Preferably, before determining whether the business criticality levels of the requests in the first request subset are the same, the microservice management and control method further includes: Determine whether the number of requests in each first request subset is greater than 1; If yes, then executing the step of determining whether the business criticality levels of the requests in the first request subsets are the same; If not, the order in the queue of pending microservices is determined based on the order of the first request subset.

[0010] Preferably, before determining whether the initiation time of each request in each second request subset is the same, the microservice management and control method further includes: Determine whether the number of requests in each second request subset is greater than 1; If yes, then executing the step of determining whether the initiation time of each request in each second request subset is the same; If not, the order in the queue of pending microservices is determined based on the order of the second request subset.

[0011] Preferably, the user role level specifically includes: The first level is for enterprise managers; The second level is for department managers; The third level is ordinary employees.

[0012] Preferably, the business criticality levels are divided according to the reliability of the flexible manufacturing production system.

[0013] Preferably, the business criticality level specifically includes: The first level includes production reliability analysis, process reliability analysis, and resource reliability analysis; The second level includes resource reliability analysis and environmental reliability analysis; The third level includes quality reliability analysis.

[0014] Preferably, the microservice management and control method further includes: Determine whether the user's current idle time reaches the idle time threshold corresponding to the user; If reached, the user will be automatically logged out.

[0015] Preferably, the idle time threshold is calculated according to the user login frequency.

[0016] A microservice control device for reliability evaluation of a flexible manufacturing production line, the device comprising: A quantity determination unit, used to determine whether the number of requests in the request set received at the current moment is greater than 1; The queue generation unit is used to generate a queue of pending microservices based on a preset priority level mechanism when the number of requests is greater than 1, wherein the first priority in the priority level mechanism is the user role, the second priority is the business criticality, and the third priority is the initiation time.

[0017] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects: The flexible manufacturing production line reliability evaluation microservice management and control method provided by the present invention first determines whether the server has received multiple requests at the same time at the current moment. If so, a queue of pending microservices is generated in accordance with the user role, business criticality and initiation time according to a preset priority level mechanism. The present invention generates a queue of pending microservices by combining user role, business criticality and request initiation time. The queue of pending microservices takes into account the importance of each functional module. The queue of pending microservices is generated based on the importance of the functional modules, thereby avoiding the possibility that important functional modules cannot be responded to in a timely manner when the processing order is based on the microservice computing volume or initiation time.

[0018] The present invention determines the idle time threshold corresponding to the user by the user's login frequency. In the present invention, the user's idle time threshold is dynamically set according to the login frequency. Therefore, it can avoid the problem that the fixed idle time threshold causes users with lower login frequency to occupy resources and users with higher login frequency to frequently log into the system, thereby further improving work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0020] Figure 1 A flow chart of a flexible manufacturing production line reliability evaluation microservice management and control method provided by an embodiment of the present invention; Figure 2 A microservice queue generation flow chart provided in an embodiment of the present invention; Figure 3 A schematic diagram of the structure of a microservice control device for reliability evaluation of a flexible manufacturing production line provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0021] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0022] First, combine Figure 1 A microservice management and control method for reliability evaluation of a flexible manufacturing production line provided by an embodiment of the present invention is introduced. The microservice management and control method provided by an embodiment of the present invention is mainly applied to the server side, such as Figure 1 As shown in the figure, the microservice management and control methods include: Step S01, determining whether the number of requests in the request set currently received is greater than 1.

[0023] Specifically, it is determined whether the current server receives multiple requests at the same time. When the server only receives one request at the current moment, the server does not need to generate a queue of pending microservices. When the server receives multiple requests at the same time at the current moment, the following step S02 is executed.

[0024] Step S02: Generate a queue of microservices to be processed based on a preset priority level mechanism.

[0025] Specifically, based on the preset priority level, the requests in the request set are generated into a queue of pending microservices. The priority level mechanism combines user roles, business criticality and the time when the request is initiated. Among them, the first priority in the priority level mechanism is the user role, the second priority is the business criticality, and the third priority is the initiation time. That is, when two users initiate requests at the same time, when the user roles of the two requests are different, the processing order is determined according to the user role level; when the user role levels of the two requests are the same, the processing order is determined according to the business criticality; when the user roles and business criticality of the two requests are the same, the queue of pending microservices is generated according to the time when the requests are initiated.

[0026] Different user positions give different importance to the business. For example, the requests initiated by senior managers of an enterprise are often more important to the development of the enterprise than those of ordinary people. Therefore, the user roles of the flexible manufacturing production reliability evaluation system can be divided into three levels according to the employee positions, as shown in Table 1.

[0027] Table 1 Position grade Business managers one Department managers such as department heads and department heads two Ordinary employees three Different businesses in the system often have different degrees of importance. For example, the fault diagnosis function module in the system is often more important than the data query function module. The business criticality level is divided according to the reliability of the flexible manufacturing production system. The flexible manufacturing production reliability evaluation system can perform reliability analysis on six dimensions: production reliability caused by production plan adjustment, process reliability caused by production process adjustment, resource reliability caused by resource allocation, quality reliability caused by product failure, environmental reliability caused by production environment abnormality, and network reliability caused by network instability. The flexible manufacturing production reliability evaluation system divides business criticality into three levels according to the business importance, as shown in Table 2.

[0028] Table 2 System business name grade Production reliability analysis one Process reliability analysis one Resource reliability analysis one Environmental reliability analysis two Network reliability analysis two Quality reliability analysis three As shown in Table 2, changes in the production process such as product production plan, process, and resources will directly affect the reliability of the flexible manufacturing production system. Therefore, production reliability analysis, process reliability analysis, and resource reliability analysis are set as the most important business and are set to the first level. The production environment and network communication are relatively stable, and their impact on the reliability of the flexible manufacturing production system is relatively small. Therefore, environmental reliability analysis and network reliability analysis are set to the second level. Product quality is the most direct manifestation of the reliability of the flexible manufacturing production system. Therefore, quality reliability analysis is set to the third level.

[0029] The flexible manufacturing production line reliability evaluation microservice management and control method provided by the embodiment of the present invention first determines whether the server has received multiple requests at the same time at the current moment. If so, a queue of pending microservices is generated in accordance with the user role, business criticality and initiation time according to the preset priority level mechanism. The embodiment of the present invention uses a method that combines user role, business criticality and request initiation time to generate a queue of pending microservices. The queue of pending microservices generated by the embodiment of the present invention comprehensively considers the importance of each functional module, and generates a queue of pending microservices based on the importance of the functional modules, thereby avoiding the possibility that important functional modules cannot be responded to in a timely manner when the microservice computing volume or initiation time is used as the processing order.

[0030] Embodiments of the present invention are combined Figure 2 The process of generating a queue of microservices to be processed based on a preset priority level mechanism in step S02 of the aforementioned embodiment is introduced as follows: Figure 2 As shown, the process of step S02 is as follows: Step S021, determining whether the user role levels of the initiators of the requests in the request set are the same.

[0031] Specifically, it is determined whether the user levels of the initiators of the requests received at the same time are the same. For example, users A, B, C, and D initiate requests at the same time, where user A initiates request a, user B initiates request b, user C initiates request c, and user D initiates request d. It is determined whether the user role levels of users A, B, C, and D are the same.

[0032] If the levels are the same, execute the following step S023; if they are not the same, execute the following step S022.

[0033] Step S022: sort the first request subsets according to the user role level of the initiator.

[0034] Specifically, the requests in the request set are classified according to the user role level of the initiator to obtain the first request subsets, and then the first request subsets are sorted according to the user role level of the initiator. For example, the user role level of user A is the third level; the role levels of users B, C, and D are the first level. The requests in the request set are classified according to the user role level to obtain the first request subset M. 1 and the first requested subset M 2 , where the first request subset M 1 Including b, c, d, the first request subset M 2 Including a. Sort the first request subset to get M 1 , M 2 .

[0035] Step S023: determine whether the service criticality levels of the requests in the first request subsets are the same.

[0036] Specifically, an analysis is performed on each first request subset to determine whether the service criticality levels of the requests in the first request subset are the same.

[0037] If they are not the same, execute the following step S024; if they are the same, execute the following step S025.

[0038] Step S024: sort the second request subsets according to the business criticality level.

[0039] Specifically, the requests in the first request set are classified according to the business criticality level to obtain the second request subsets, and then the second request subsets are sorted according to the business criticality level. 1 Including b, c, d, where b is production reliability analysis, c is process reliability analysis, and d is network reliability analysis. Classify according to the business criticality level to obtain the second request subset N 1 and the second request subset N 2 , where the second request subset N 1 Including b, c, the second request subset N 2 Including d. Sort the second request subset to get N 1 , N 2 .

[0040] Step S025, determining whether the initiation time of each request in each second request subset is the same.

[0041] Specifically, each second request subset is analyzed to determine whether the initiation time of each request in each second request subset is the same. If not, the following step S026 is executed; if the same, each request in the second request subset is randomly sorted.

[0042] Step S026, sorting the requests in the second request subset according to the initiation time.

[0043] Specifically, the requests in the second request subset are sorted according to the initiation time to obtain a queue of pending microservices. The server side processes the requests according to the queue of pending microservices and returns the processing results to the corresponding user side. 1 Including b and c, where request b is initiated earlier than request c, and the requests in the second request subset are sorted to obtain b and c. 1 , N 2 , M 2 Finally, the microservice queues to be processed are b, c, d, and a.

[0044] Furthermore, considering that the first request subset and the second request subset may contain only one request, before executing step S023 to determine whether the service criticality levels of the requests in the first request subsets are the same, the following steps may be further performed: It is determined whether the number of requests in each first request subset is greater than 1.

[0045] Specifically, each first request subset is analyzed respectively. If the first request subset contains more than one request, the above step S023 is executed based on the first request subset to determine whether the business criticality levels of the requests in each first request subset are the same.

[0046] If the first request subset includes only one request, the order in the queue of microservices to be processed is determined based on the order of the first request subset.

[0047] Before executing step S025 to determine whether the initiation time of each request in each second request subset is the same, the following steps may also be executed: Determine whether the number of requests in each second request subset is greater than 1; Specifically, each second request subset is analyzed respectively, and if the first request subset contains more than one request, step S025 is executed based on the first request subset to determine whether the initiation time of each request in each second request subset is the same. If not, the order in the queue of pending microservices is determined based on the order of the second request subsets.

[0048] Considering that setting a fixed idle time threshold will reduce work efficiency for users with high usage frequency, based on the flexible manufacturing production line reliability evaluation microservice management and control method in the above embodiment, it may also include: Determine whether the user's current idle time reaches the idle time threshold corresponding to the user.

[0049] Specifically, when the operator does not perform any operation for more than the idle time threshold, the system will automatically log out and the user needs to enter the user name and password to log in again. The user login frequency is calculated based on the user login system records, and then the user's idle time threshold is dynamically measured based on the user login frequency. For frequent users, the idle time threshold is appropriately extended, and for seldom users, the idle time threshold is appropriately shortened.

[0050] according to Calculate the idle time threshold corresponding to the user ,in, is the base login frequency, is the benchmark time threshold corresponding to the benchmark login frequency, The actual login frequency of the user. For example, if the system user logs in to the system within a week, the base login frequency is 10 times / week, and its corresponding benchmark time threshold is 5 minutes, and the actual login frequency of system users in a week is , then the idle time threshold corresponding to the user .

[0051] The embodiment of the present invention determines the idle time threshold corresponding to the user by the user's login frequency. The idle time threshold of the user in the embodiment of the present invention is dynamically set according to the login frequency. Therefore, it can avoid the problem that the fixed idle time threshold causes users with low login frequency to occupy resources and users with high login frequency to frequently log into the system, thereby further improving work efficiency.

[0052] The following describes a flexible manufacturing production line reliability evaluation microservice control device provided in an embodiment of the present invention. The flexible manufacturing production line reliability evaluation microservice control device described below and the flexible manufacturing production line reliability evaluation microservice control method described above can be referenced to each other.

[0053] First combine Figure 3 ,The micro-service control device for reliability evaluation of flexible manufacturing production line is introduced, such as Figure 3 As shown, the flexible manufacturing production line reliability evaluation microservice control device may include: The quantity determination unit 100 is used to determine whether the number of requests in the request set received at the current moment is greater than 1; The queue generation unit 200 is used to generate a queue of pending microservices based on a preset priority level mechanism when the number of requests is greater than 1, wherein the first priority in the priority level mechanism is the user role, the second priority is the business criticality, and the third priority is the initiation time.

[0054] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0055] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0056] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A microservice management and control method for reliability evaluation of a flexible manufacturing production line, characterized in that: Applied to the server side, microservice management and control methods include: Determine whether the number of requests in the request set received at the current moment is greater than 1; If so, a queue of pending microservices is generated based on a preset priority level mechanism, wherein the first priority in the priority level mechanism is the user role, the second priority is the business criticality, and the third priority is the initiation time.

2. The flexible manufacturing production line reliability evaluation microservice management and control method according to claim 1 is characterized in that: The process of generating a queue of microservices to be processed based on a preset priority level mechanism specifically includes: Determine whether the user role levels of the initiators of each request in the request set are the same; If they are not the same, sorting each first request subset according to the user role level of the initiator, wherein each request in the request set is classified according to the user role level of the initiator to obtain the first request subset; Determining whether the business criticality levels of the requests in the first request subsets are the same; If they are not the same, sorting each second request subset according to the business criticality level, wherein each request in the first request set is classified according to the business criticality level to obtain the second request subset; Determine respectively whether the initiation time of each request in each second request subset is the same; If they are not the same, the requests in the second request subset are sorted according to the initiation time to obtain a microservice queue to be processed.

3. The flexible manufacturing production line reliability evaluation microservice management and control method according to claim 2 is characterized in that: Before determining whether the business criticality levels of the requests in the first request subset are the same, the microservice management and control method further includes: Determine whether the number of requests in each first request subset is greater than 1; If yes, then executing the step of determining whether the business criticality levels of the requests in the first request subsets are the same; If not, the order in the queue of pending microservices is determined based on the order of the first request subset.

4. The flexible manufacturing production line reliability evaluation microservice management and control method according to claim 2 is characterized in that: Before determining whether the initiation time of each request in each second request subset is the same, the microservice management and control method further includes: Determine whether the number of requests in each second request subset is greater than 1; If yes, then executing the step of determining whether the initiation time of each request in each second request subset is the same; If not, the order in the queue of pending microservices is determined based on the order of the second request subset.

5. The flexible manufacturing production line reliability evaluation microservice management and control method according to claim 2 is characterized in that: The user role level specifically includes: The first level is for enterprise managers; The second level is for department managers; The third level is ordinary employees.

6. The flexible manufacturing production line reliability evaluation microservice management and control method according to claim 2 is characterized in that: The business criticality levels are divided according to the reliability of the flexible manufacturing production system.

7. The flexible manufacturing production line reliability evaluation microservice management and control method according to claim 6 is characterized in that: The business criticality levels specifically include: The first level includes production reliability analysis, process reliability analysis, and resource reliability analysis; The second level includes resource reliability analysis and environmental reliability analysis; The third level includes quality reliability analysis.

8. The flexible manufacturing production line reliability evaluation microservice management and control method according to any one of claims 1 to 7, characterized in that: The microservice management and control method further includes: Determine whether the user's current idle time reaches the idle time threshold corresponding to the user; If reached, the user will be automatically logged out.

9. The flexible manufacturing production line reliability evaluation microservice management and control method according to claim 8, characterized in that: The idle time threshold is calculated according to the user login frequency.

10. A microservice control device for reliability evaluation of a flexible manufacturing production line, characterized in that: The device includes: A quantity determination unit, used to determine whether the number of requests in the request set received at the current moment is greater than 1; The queue generation unit is used to generate a queue of pending microservices based on a preset priority level mechanism when the number of requests is greater than 1, wherein the first priority in the priority level mechanism is the user role, the second priority is the business criticality, and the third priority is the initiation time.

Citation Information

Patent Citations

  • Service request processing method, apparatus, computer device, and storage medium

    CN109104336A

  • Power system cloud platform computing analysis micro-service resource scheduling method

    CN110737517A

  • Micro-service configuration and control method and system

    CN117640363A

  • Nanosecond-Scale Power Resource Allocation Method and System for Microservices

    US20220317754A1