WO2023155587A1 - Information updating method, micro-service system, and computer-readable storage medium - Google Patents

Information updating method, micro-service system, and computer-readable storage medium Download PDF

Info

Publication number
WO2023155587A1
WO2023155587A1 PCT/CN2022/140465 CN2022140465W WO2023155587A1 WO 2023155587 A1 WO2023155587 A1 WO 2023155587A1 CN 2022140465 W CN2022140465 W CN 2022140465W WO 2023155587 A1 WO2023155587 A1 WO 2023155587A1
Authority
WO
WIPO (PCT)
Prior art keywords
microservice
micro
service
name
host machine
Prior art date
Application number
PCT/CN2022/140465
Other languages
French (fr)
Chinese (zh)
Inventor
徐如庆
Original Assignee
苏州浪潮智能科技有限公司
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 苏州浪潮智能科技有限公司 filed Critical 苏州浪潮智能科技有限公司
Publication of WO2023155587A1 publication Critical patent/WO2023155587A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/164File meta data generation

Definitions

  • the present application relates to the field of microservices, and in particular to an information update method, a microservice system, and a computer-readable storage medium.
  • microservices In order to ensure service stability, microservices usually provide external services in the form of multiple copies, that is, multiple microservice devices run the same service content and provide services to the outside in a unified manner.
  • the operation request issued by the front-end device is usually processed by any micro-service device in the multi-copy mode, and the micro-service device will save the corresponding processing status information to the database, so that the front-end device can keep abreast of the processing progress details.
  • each microservice device may be down. At this time, the processing status information in the database will not be changed, and the user will not be able to understand the processing status of the operation request and the running status of the microservice. The user brings a bad experience.
  • the purpose of this application is to provide an information update method, microservice system and computer-readable storage medium, which can set the target microservice device to detect its own running status, and provide marking information to other microservice devices when they are about to exit, so that Other micro-service devices update the processing status information of the target micro-service device in the database according to the tag information, thereby solving the problem that the user cannot know the processing status of the operation request and the running status of the micro-service.
  • this application provides an information update method, which is applied to a microservice system.
  • the microservice system includes a microservice device, and the microservice device includes at least a first microservice device and a second microservice device.
  • the method includes:
  • the first micro-service device When the first micro-service device processes the operation request sent by the front-end device, it saves the corresponding processing status information and the name of the host machine where the first micro-service device is located in the database;
  • the first microservice device detects its own running state in real time, and when it is determined that the running state is about to be closed, creates a flag file named as the name of the host machine and saves it to the host machine;
  • the second microservice device searches for the flag file in the host machine, and updates the processing status information corresponding to the name of the flag file in the database as processing failure when the flag file is found.
  • the microservice system further includes a cluster scheduling device, and before the second microservice device searches for the flag file in the host machine, it also includes:
  • the cluster scheduling device detects the first working state of the second microservice device
  • the second microservice device is controlled to perform the step of searching the flag file in the host machine.
  • the cluster scheduling device after the cluster scheduling device detects the first working state of the second microservice device, it further includes:
  • the cluster scheduling device determines that the first working state is abnormal, it detects the second working state of other microservice devices in the microservice system, and when it determines that the second working state is normal, controls other microservice devices to execute Steps to find flag files in .
  • the second microservice device searches for a flag file in the host machine, including:
  • the second microservice device periodically searches the host computer for the logo file.
  • processing status information corresponding to the name of the flag file is updated as processing failure in the database, it further includes:
  • the second microservice device deletes the flag file.
  • a hook program is preset in the first microservice device, and the first microservice device detects its own running state, and when it is determined that the running state is about to close, it creates a flag file named as the name of the host machine and saves it. to the host machine, including:
  • the hook program detects the running state of the first micro-service device, and when it is determined that the running state is about to close, creates a flag file and saves it to the host machine.
  • the present application also provides a micro-service system, the micro-service system includes a micro-service device, and the micro-service device includes at least a first micro-service device and a second micro-service device, wherein,
  • the first micro-service device is used to store the corresponding processing status information and the name of the host machine where the first micro-service device is located in the database when processing the operation request sent by the front-end device; detect its own running status in real time, and When it is determined that the running status is about to be shut down, create a flag file named as the name of the host and save it to the host;
  • the second micro-service device is used to search the flag file in the host computer, and update the processing status information corresponding to the name of the flag file in the database to processing failure when the flag file is found.
  • it also includes: a cluster scheduling device, wherein,
  • the cluster scheduling device is used to detect the first working state of the second micro-service device; when it is determined that the first working state is normal, then control the second micro-service device to perform the step of searching the flag file in the host machine.
  • the cluster scheduling device is also used to detect the second working status of other microservice devices in the microservice system when it is determined that the first working status is abnormal, and when it is determined that the second working status is normal , to control other microservice devices to execute the step of searching for the flag file in the host machine.
  • the present application also provides a non-volatile computer-readable storage medium.
  • Computer-executable instructions are stored in the non-volatile computer-readable storage medium.
  • the above information can be realized. update method.
  • the microservice system includes a microservice device, and the microservice device includes at least a first microservice device and a second microservice device.
  • the method includes: the first microservice device processes When an operation request is sent by the front-end device, the corresponding processing status information and the name of the host machine where the first micro-service device is located are stored in the database; When closing, create a logo file named as the name of the host computer and save it to the host computer; the second microservice device searches the logo file in the host computer, and when the logo file is found, the processing status corresponding to the name of the logo file is stored in the database Information updated to process failed.
  • the first microservice device in this application processes the operation request sent by the front-end device, it will save the corresponding processing status information and the host name of the host where the microservice device is located in the database at the same time, so that other microservices
  • the service device locates all processing status information generated by the first micro-service device in the database; at the same time, the first micro-service device also detects its own running status in real time, and creates a
  • the file name is the logo file of the name of the host machine, so that other microservice devices can search; finally, this application will set another microservice device, that is, the second microservice device, to search for this logo file in each host machine.
  • marking a file it means that the microservice device corresponding to the file is down.
  • the processing status information corresponding to the name of the file can be updated in the database as processing failure, so that the front-end user can know the processing status of the operation request in a timely manner.
  • the present application also provides a microservice system and a non-volatile computer-readable storage medium, which have the above beneficial effects.
  • FIG. 1 is a schematic diagram of the update processing progress value of the microservice system in the related art provided by the embodiment of the present application;
  • FIG. 2 is a flow chart of an information updating method provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a microservice downtime processing flow provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a database update processing flow provided by an embodiment of the present application.
  • FIG. 5 is a structural diagram of a microservice system provided by an embodiment of the present application.
  • FIG. 6 is a structural diagram of another microservice system provided by the embodiment of the present application.
  • FIG. 7 is a structural diagram of another microservice system provided by the embodiment of the present application.
  • FIG. 8 is a structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 9 is a structural diagram of a non-volatile computer-readable storage medium provided by an embodiment of the present application.
  • FIG. 1 is a schematic diagram of the update processing progress value of the microservice system in the related art provided by the embodiment of the present application. It can be seen that the operation request from the front-end device (operation interface) is randomly sent by the gateway to the microservice A, microservice Service B or microservice C performs processing, and these microservices write the corresponding processing progress value into the database cluster (Mariadb), so that the front-end device can query in the database cluster.
  • each microservice device may be down. At this time, the processing status information in the database will not be changed, and the user will not be able to understand the processing status of the operation request and the running status of the microservice. The user brings a bad experience.
  • this application provides an information update method, which can set the target micro-service device to detect its own running status, and provide tag information to other micro-service devices when it is about to exit, so that other micro-service devices can update the target according to the tag information
  • the processing status information of the micro-service device in the database can further solve the problem that the user cannot understand the processing status of the operation request and the running status of the micro-service.
  • FIG. 2 is a flow chart of an information update method provided by an embodiment of the present application.
  • the method is applied to a microservice system.
  • the microservice system includes a microservice device, and the microservice device includes at least a first microservice device and a Second microservice installation.
  • the number of micro-service devices can be greater than 2, which can be set according to actual application requirements; in addition, the embodiment of the present application does not limit other devices that can be included in the micro-service system, you can refer to the description below, or It can be set according to actual application requirements.
  • the method can include:
  • the first micro-service device When processing the operation request sent by the front-end device, the first micro-service device saves the corresponding processing status information and the name of the host machine where the first micro-service device is located in the database.
  • the microservice device is deployed in the host machine, and the host machine is the physical device running the microservice.
  • the embodiment of the present application does not limit whether the host machine is a physical electronic device or a virtual machine, which can be set according to actual application requirements, wherein a virtual machine refers to a software simulation with complete hardware system functions, running in a completely isolated environment complete computer system. It should be pointed out that the corresponding relationship between the microservice device and the host machine is one-to-one.
  • the embodiment of the present application can uniquely determine a micro-service device according to the name of the host machine, and the first micro-service device simultaneously saves the processing status information and the host machine name of the host machine where it is located to the database, precisely for the convenience of Other microservice devices locate the first microservice device according to the name.
  • the embodiment of this application does not limit the specific operation requests that need to be processed by the microservice device, which can be set according to actual application requirements; this application also does not limit the specific database, and the processing status information and host machine name The storage form in the database can also be set according to actual application requirements.
  • the first micro-service device detects its running state in real time, and when it is determined that the running state is about to be shut down, creates a flag file named as the name of the host machine and saves it to the host machine.
  • the first microservice device in the embodiment of the present application will automatically detect its own running status to determine whether it is about to shut down. If it is determined that it is about to be closed, the first micro-service device will further generate a flag file in the host machine and name it as the name of the host machine. Obviously, since the relationship between the micro-service device and the host is one-to-one, other micro-service devices can determine that the first micro-service device is closed according to the name of the flag file, and then realize that the first micro-service device actively notifies itself to the outside world The effect of the running state.
  • a hook program can be set in the first microservice device, which is specially used to detect the running state of the first microservice device, and when it is determined that the device is about to be shut down, execute the step of creating a flag file. It should be noted that the embodiment of the present application does not limit the implementation manner of the hook program, and reference may be made to related technologies of the hook program.
  • a hook program is preset in the first microservice device, and the first microservice device detects its own running state, and when it is determined that the running state is about to close, it creates a flag file named as the name of the host machine and saves it. to the host machine, which can include:
  • Step 11 The hook program detects the running state of the first microservice device, and when it is determined that the running state is about to close, creates a flag file and saves it to the host machine.
  • the embodiment of the present application does not limit the specific type of the logo file, as long as the name of the file is the name of the host machine, and the specific type can be set according to actual application requirements.
  • This application does not limit the storage location of the logo file in the host computer, as long as the location is easy to find.
  • the second microservice device searches the host machine for the logo file, and when the logo file is found, updates the processing status information corresponding to the name of the logo file in the database to processing failure.
  • the second microservice device is used to help the closed microservice device update its processing status information in the database.
  • the second micro-service device will search for the flag file in each host machine, and update the corresponding processing status information in the database according to the name of the file. It can be understood that the closed micro-service device will not be able to complete the processing of the operation request, so the second micro-service device can update the processing status information corresponding to the flag file name as processing failure.
  • the reason for the processing failure is that the microservice device is down, which can be set according to actual application requirements.
  • the embodiment of the present application does not limit the manner in which the second microservice device executes the logo file search step, for example, it may be executed in real time or periodically. In order to improve resource utilization and reduce waste of resources, the second microservice device may periodically search for the logo file in the host machine.
  • the embodiment of the present application does not limit the specific period value, for example, it may be 30 seconds, or it may be other values, which can be set according to actual application requirements.
  • the second microservice device searches for the flag file in the host machine, which may include:
  • Step 21 The second microservice device periodically searches the host machine for the logo file.
  • the second microservice device may delete the flag file after completing the update operation.
  • processing status information corresponding to the name of the flag file may further include:
  • Step 31 The second microservice device deletes the logo file.
  • each microservice device needs to perform steps S101 and S102, for example, the microservice
  • the service system includes microservice device A, microservice device B and microservice device C, and these three microservice devices need to execute steps S101 and S102; in addition, in order to avoid waste of resources, a specific microservice device can be designated to execute In step S103, for example, in the above example, microservice device B may be designated to execute step S103.
  • the first microservice device in this application when the first microservice device in this application processes the operation request sent by the front-end device, it will simultaneously save the corresponding processing status information and the name of the host machine where the microservice device is located in the database, so that other microservice devices can locate all the processing status information generated by the first microservice device in the database; at the same time, the first microservice device will also perform real-time detection of its own running status, and when it is determined that it is in the state of being about to shut down , create a logo file with the name of the host computer so that other micro-service devices can search for it; finally, this application will set another micro-service device, the second micro-service device, to search for this logo file in each host machine, when When the flag file is found, it means that the microservice device corresponding to the file is down.
  • the processing status information corresponding to the name of the file can be updated in the database as processing failure, so that the front-end user can know the status of the operation request in a timely manner. Handle the situation, and then improve the user experience of the microservice system.
  • a cluster scheduling device can also be set separately to detect the second microservice device, and only control its execution flag when it is determined that the second microservice device is working normally File lookup steps.
  • the microservice system may also include a cluster scheduling device, and before the second microservice device searches for the flag file in the host computer, it may also include:
  • the cluster scheduling device detects the first working state of the second microservice device.
  • the embodiment of the present application does not limit a specific cluster scheduling device, and reference may be made to related technologies of microservice clusters.
  • the present application also does not limit the method of detecting the working state of the second microservice device, and reference may be made to related technologies of microservices.
  • the cluster scheduling device can only control the second microservice device to execute the flag file search step when it is working normally.
  • abnormal downtime may also occur in the second microservice device.
  • the cluster scheduling device can obtain the working status of other microservice devices, and when it is determined that other microservice devices are working normally, the flag file search task will be assigned to the second microservice device. The device is transferred to other microservice devices.
  • the cluster scheduling device after the cluster scheduling device detects the first working state of the second microservice device, it may further include:
  • Step 41 When the cluster scheduling device determines that the first working state is abnormal, it detects the second working state of other microservice devices in the microservice system, and when it determines that the second working state is normal, controls other microservice devices to execute Steps to find flag files on the host machine.
  • the embodiment of the present application does not limit the manner in which the cluster scheduling device detects the working status.
  • it may be real-time monitoring or periodic detection, which may also be set according to actual application requirements.
  • the system can also introduce a cluster scheduling device to detect the second microservice device, and only control it to execute the flag file search step when it is determined that the second microservice device is working normally, thereby effectively ensuring Flag file lookup tasks are executed correctly.
  • FIG. 3 is a schematic diagram of the microservice downtime processing flow provided by the embodiment of the present application. It can be seen that before the microservice A is about to be closed, it will call the hook program and write a file under a certain directory of the host computer (Pod), the name of the file is the host name (podName).
  • FIG. 4 is a schematic diagram of the database update processing flow provided by the embodiment of the present application. It can be seen that the microservice performing the logo file search will retrieve the database table data according to the podName, and then modify the progress and status of file processing. If there is no file processing in the current microservice, podName will also be written, but the data cannot be retrieved.
  • microservice system and non-volatile computer-readable storage medium provided by the embodiment of the present application.
  • the microservice system and non-volatile computer-readable storage medium described below can correspond to the information update method described above. refer to.
  • FIG. 5 is a structural diagram of a microservice system provided by an embodiment of the present application.
  • the microservice system includes a microservice device, and the microservice device includes at least a first microservice device 510 and a second microservice device 520. in,
  • the first microservice device 510 is used to save the corresponding processing status information and the host computer name of the host computer where the first microservice device is located to the database when processing the operation request sent by the front-end device; detect its own running status in real time, and When it is determined that the running state is about to be shut down, create a flag file named as the name of the host and save it to the host;
  • the second micro-service device 520 is configured to search for the flag file in the host machine, and update the processing status information corresponding to the name of the flag file in the database as processing failure when the flag file is found.
  • FIG. 6 is a structural diagram of another microservice system provided by the embodiment of the present application.
  • the system may also include: a cluster scheduling device 530, wherein,
  • the cluster scheduling device 530 is configured to detect the first working state of the second microservice device 520; when it is determined that the first working state is normal, then control the second microservice device 520 to execute the step of searching for the flag file in the host computer.
  • the cluster scheduling device 530 is further configured to detect the second working status of other microservice devices in the microservice system when the first working status is determined to be abnormal, and determine that the second working status is normal , control other microservice devices to execute the step of searching for the flag file in the host computer.
  • the second microservice device 520 may also be used to periodically search the host computer for the logo file.
  • the second microservice device 520 may also be configured to delete the flag file after updating the processing status information corresponding to the name of the flag file in the database to processing failure.
  • FIG. 7 is a structural diagram of another microservice system provided by the embodiment of the present application.
  • a hook program 511 is preset in the first microservice device, wherein,
  • the hook program 511 is used to detect the running state of the first microservice device, and when it is determined that the running state is about to close, create a flag file and save it to the host machine.
  • the embodiment of the present application also provides an electronic device, including: a memory 801, configured to store a computer program; and a processor 802, configured to execute the computer program, so as to implement the steps of the information update method in any of the foregoing embodiments.
  • the embodiment of the present application also provides a non-volatile computer-readable storage medium 9, and a computer program 91 is stored on the non-volatile computer-readable storage medium 9, and when the computer program 91 is executed by a processor, any of the above-mentioned embodiments can be realized.
  • the steps of the information update method are described in detail below.
  • each embodiment in the description is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.
  • the description is relatively simple, and for relevant details, please refer to the description of the method part.
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM
  • registers hard disk, removable disk, CD-ROM, or any other Any other known storage medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present application provides an information updating method, a micro-service system, and a computer-readable storage medium. The method is applied to a micro-service system, and the system at least comprises a first micro-service apparatus and a second micro-service apparatus; when the first micro-service apparatus processes an operation request sent by a front-end apparatus, the first micro-service apparatus simultaneously stores in a database corresponding processing state information and the hostname of a host where the first apparatus is located; at the same time, the first apparatus evaluates in real time a running state thereof, and when it is determined that the first apparatus is in an imminent shutdown state, same creates an identification file named as the hostname, so as to facilitate lookup by another micro-service apparatus; in addition, the second micro-service apparatus is further configured to search for the identification file in each host, and when the identification file is found, said apparatus updates, in the database, processing state information corresponding to the name of the file to processing failed, so as to facilitate a front-end user in understanding a processing situation of the operation request in a timely manner, and consequently improving the use experience of the user on the micro-service system.

Description

一种信息更新方法、微服务***及计算机可读存储介质A method for updating information, a microservice system, and a computer-readable storage medium
相关申请的交叉引用Cross References to Related Applications
本申请要求于2022年02月16日提交中国专利局,申请号为202210139568.6,申请名称为“一种信息更新方法、微服务***及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted to the China Patent Office on February 16, 2022, with the application number 202210139568.6, and the application name is "An Information Update Method, Microservice System, and Computer-Readable Storage Medium", all of which The contents are incorporated by reference in this application.
技术领域technical field
本申请涉及微服务领域,特别涉及一种信息更新方法、微服务***及计算机可读存储介质。The present application relates to the field of microservices, and in particular to an information update method, a microservice system, and a computer-readable storage medium.
背景技术Background technique
为确保服务稳定,微服务通常会采用多副本形式向外提供服务,即由多个微服务装置运行相同的服务内容,并统一向外部提供服务。相关技术中,前端装置所下发的操作请求通常由多副本模式中的任一微服务装置处理,而该微服务装置则会将对应的处理状态信息保存至数据库,以便前端装置及时了解处理进度详情。但在实际应用中,各微服务装置可能出现宕机情况,此时数据库中的处理状态信息将无法被改变,进而导致用户无法了解操作请求的处理情况以及微服务的运行状态,而这容易为用户带来不好的使用体验。In order to ensure service stability, microservices usually provide external services in the form of multiple copies, that is, multiple microservice devices run the same service content and provide services to the outside in a unified manner. In the related art, the operation request issued by the front-end device is usually processed by any micro-service device in the multi-copy mode, and the micro-service device will save the corresponding processing status information to the database, so that the front-end device can keep abreast of the processing progress details. However, in practical applications, each microservice device may be down. At this time, the processing status information in the database will not be changed, and the user will not be able to understand the processing status of the operation request and the running status of the microservice. The user brings a bad experience.
发明内容Contents of the invention
本申请的目的是提供一种信息更新方法、微服务***及计算机可读存储介质,可设置目标微服务装置对自身运行状态进行检测,并在即将退出时向其他微服务装置提供标记信息,以便其他微服务装置依照标记信息更新目标微服务装置在数据库中的处理状态信息,进而解决用户无法了解操作请求的处理情况以及微服务运行状态的问题。The purpose of this application is to provide an information update method, microservice system and computer-readable storage medium, which can set the target microservice device to detect its own running status, and provide marking information to other microservice devices when they are about to exit, so that Other micro-service devices update the processing status information of the target micro-service device in the database according to the tag information, thereby solving the problem that the user cannot know the processing status of the operation request and the running status of the micro-service.
为解决上述技术问题,本申请提供一种信息更新方法,应用于微服务***,微服务***包括微服务装置,微服务装置至少包括第一微服务装置和第二微服务装置,方法包括:In order to solve the above technical problems, this application provides an information update method, which is applied to a microservice system. The microservice system includes a microservice device, and the microservice device includes at least a first microservice device and a second microservice device. The method includes:
第一微服务装置在处理前端装置发送的操作请求时,将对应的处理状态信息及第一微服务装置所在宿主机的宿主机名称保存至数据库;When the first micro-service device processes the operation request sent by the front-end device, it saves the corresponding processing status information and the name of the host machine where the first micro-service device is located in the database;
第一微服务装置实时检测自身的运行状态,并在确定运行状态为即将关闭时,创建名称为宿主机名称的标志文件并保存至宿主机;The first microservice device detects its own running state in real time, and when it is determined that the running state is about to be closed, creates a flag file named as the name of the host machine and saves it to the host machine;
第二微服务装置在宿主机中查找标志文件,并在查找到标志文件时在数据库中将标志文件的名称对应的处理状态信息更新为处理失败。The second microservice device searches for the flag file in the host machine, and updates the processing status information corresponding to the name of the flag file in the database as processing failure when the flag file is found.
在一些实施例中,微服务***还包括集群调度装置,在第二微服务装置在宿主机中查找标志文件之前,还包括:In some embodiments, the microservice system further includes a cluster scheduling device, and before the second microservice device searches for the flag file in the host machine, it also includes:
集群调度装置检测第二微服务装置的第一工作状态;The cluster scheduling device detects the first working state of the second microservice device;
在确定第一工作状态为正常时,则控制第二微服务装置执行在宿主机中查找标志文件的步骤。When it is determined that the first working state is normal, the second microservice device is controlled to perform the step of searching the flag file in the host machine.
在一些实施例中,在集群调度装置检测第二微服务装置的第一工作状态之后,还包括:In some embodiments, after the cluster scheduling device detects the first working state of the second microservice device, it further includes:
集群调度装置在确定第一工作状态为异常时,则检测微服务***中的其他微服务装置的第二工作状态,并在确定第二工作状态为正常时,控制其他微服务装置执行在宿主机中查找标志文件的步骤。When the cluster scheduling device determines that the first working state is abnormal, it detects the second working state of other microservice devices in the microservice system, and when it determines that the second working state is normal, controls other microservice devices to execute Steps to find flag files in .
在一些实施例中,第二微服务装置在宿主机中查找标志文件,包括:In some embodiments, the second microservice device searches for a flag file in the host machine, including:
第二微服务装置周期性在宿主机中查找标志文件。The second microservice device periodically searches the host computer for the logo file.
在一些实施例中,在数据库中将标志文件的名称对应的处理状态信息更新为处理失败之后,还包括:In some embodiments, after the processing status information corresponding to the name of the flag file is updated as processing failure in the database, it further includes:
第二微服务装置删除标志文件。The second microservice device deletes the flag file.
在一些实施例中,第一微服务装置中预设有钩子程序,第一微服务装置检测自身的运行状态,并在确定运行状态为即将关闭时,创建名称为宿主机名称的标志文件并保存至宿主机,包括:In some embodiments, a hook program is preset in the first microservice device, and the first microservice device detects its own running state, and when it is determined that the running state is about to close, it creates a flag file named as the name of the host machine and saves it. to the host machine, including:
钩子程序检测第一微服务装置的运行状态,并在确定运行状态为即将关闭时,创建标志文件并保存至宿主机。The hook program detects the running state of the first micro-service device, and when it is determined that the running state is about to close, creates a flag file and saves it to the host machine.
本申请还提供一种微服务***,微服务***包括微服务装置,微服务装置至少包括第一微服务装置和第二微服务装置,其中,The present application also provides a micro-service system, the micro-service system includes a micro-service device, and the micro-service device includes at least a first micro-service device and a second micro-service device, wherein,
第一微服务装置,用于在处理前端装置发送的操作请求时,将对应的处理状态信息及第一微服务装置所在宿主机的宿主机名称保存至数据库;实时检测自身的运行状态,并在确定运行状态为即将关闭时,创建名称为宿主机名称的标志文件并保存至宿主机;The first micro-service device is used to store the corresponding processing status information and the name of the host machine where the first micro-service device is located in the database when processing the operation request sent by the front-end device; detect its own running status in real time, and When it is determined that the running status is about to be shut down, create a flag file named as the name of the host and save it to the host;
第二微服务装置,用于在宿主机中查找标志文件,并在查找到标志文件时在数据库中将标志文件的名称对应的处理状态信息更新为处理失败。The second micro-service device is used to search the flag file in the host computer, and update the processing status information corresponding to the name of the flag file in the database to processing failure when the flag file is found.
在一些实施例中,还包括:集群调度装置,其中,In some embodiments, it also includes: a cluster scheduling device, wherein,
集群调度装置,用于检测第二微服务装置的第一工作状态;在确定第一工作状态为正常 时,则控制第二微服务装置执行在宿主机中查找标志文件的步骤。The cluster scheduling device is used to detect the first working state of the second micro-service device; when it is determined that the first working state is normal, then control the second micro-service device to perform the step of searching the flag file in the host machine.
在一些实施例中,集群调度装置,还用于在确定第一工作状态为异常时,则检测微服务***中的其他微服务装置的第二工作状态,并在确定第二工作状态为正常时,控制其他微服务装置执行在宿主机中查找标志文件的步骤。In some embodiments, the cluster scheduling device is also used to detect the second working status of other microservice devices in the microservice system when it is determined that the first working status is abnormal, and when it is determined that the second working status is normal , to control other microservice devices to execute the step of searching for the flag file in the host machine.
本申请还提供一种非易失性计算机可读存储介质,非易失性计算机可读存储介质中存储有计算机可执行指令,计算机可执行指令被处理器加载并执行时,实现如上述的信息更新方法。The present application also provides a non-volatile computer-readable storage medium. Computer-executable instructions are stored in the non-volatile computer-readable storage medium. When the computer-executable instructions are loaded and executed by a processor, the above information can be realized. update method.
本申请提供一种信息更新方法,应用于微服务***,微服务***包括微服务装置,微服务装置至少包括第一微服务装置和第二微服务装置,方法包括:第一微服务装置在处理前端装置发送的操作请求时,将对应的处理状态信息及第一微服务装置所在宿主机的宿主机名称保存至数据库;第一微服务装置实时检测自身的运行状态,并在确定运行状态为即将关闭时,创建名称为宿主机名称的标志文件并保存至宿主机;第二微服务装置在宿主机中查找标志文件,并在查找到标志文件时在数据库中将标志文件的名称对应的处理状态信息更新为处理失败。This application provides an information update method, which is applied to a microservice system. The microservice system includes a microservice device, and the microservice device includes at least a first microservice device and a second microservice device. The method includes: the first microservice device processes When an operation request is sent by the front-end device, the corresponding processing status information and the name of the host machine where the first micro-service device is located are stored in the database; When closing, create a logo file named as the name of the host computer and save it to the host computer; the second microservice device searches the logo file in the host computer, and when the logo file is found, the processing status corresponding to the name of the logo file is stored in the database Information updated to process failed.
可见,本申请中的第一微服务装置在处理前端装置所发送的操作请求时,会将对应的处理状态信息和该微服务装置所在宿主机的宿主机名称同时保存在数据库中,以便其他微服务装置在数据库中定位第一微服务装置所生成的所有处理状态信息;同时,第一微服务装置还会对自身的运行状态进行实时检测,并在确定自身处于即将关机的状态时,创建一个文件名为宿主机名称的标志文件,以便其他微服务装置进行查找;最后,本申请将设置另一个微服务装置即第二微服务装置在各宿主机中查找这一标志文件,当查找到该标志文件时,则说明该文件对应的微服务装置已宕机,此时便可在数据库中将该文件的名称对应的处理状态信息更新为处理失败,以便前端用户及时了解操作请求的处理情况,进而提升用户对微服务***的使用体验。本申请还提供一种微服务***及非易失性计算机可读存储介质,具有上述有益效果。It can be seen that when the first microservice device in this application processes the operation request sent by the front-end device, it will save the corresponding processing status information and the host name of the host where the microservice device is located in the database at the same time, so that other microservices The service device locates all processing status information generated by the first micro-service device in the database; at the same time, the first micro-service device also detects its own running status in real time, and creates a The file name is the logo file of the name of the host machine, so that other microservice devices can search; finally, this application will set another microservice device, that is, the second microservice device, to search for this logo file in each host machine. When marking a file, it means that the microservice device corresponding to the file is down. At this time, the processing status information corresponding to the name of the file can be updated in the database as processing failure, so that the front-end user can know the processing status of the operation request in a timely manner. Thus improving the user experience of the microservice system. The present application also provides a microservice system and a non-volatile computer-readable storage medium, which have the above beneficial effects.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附 图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present application, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1为本申请实施例所提供的相关技术中微服务***更新处理进度值的示意图;FIG. 1 is a schematic diagram of the update processing progress value of the microservice system in the related art provided by the embodiment of the present application;
图2为本申请实施例所提供的一种信息更新方法的流程图;FIG. 2 is a flow chart of an information updating method provided by an embodiment of the present application;
图3为本申请实施例所提供的微服务宕机处理流程的示意图;FIG. 3 is a schematic diagram of a microservice downtime processing flow provided by an embodiment of the present application;
图4为本申请实施例所提供的数据库更新处理流程的示意图;FIG. 4 is a schematic diagram of a database update processing flow provided by an embodiment of the present application;
图5为本申请实施例所提供的一种微服务***的结构图;FIG. 5 is a structural diagram of a microservice system provided by an embodiment of the present application;
图6为本申请实施例所提供的另一种微服务***的结构图;FIG. 6 is a structural diagram of another microservice system provided by the embodiment of the present application;
图7为本申请实施例所提供的又一种微服务***的结构图;FIG. 7 is a structural diagram of another microservice system provided by the embodiment of the present application;
图8为本申请实施例所提供的一种电子设备的结构图;FIG. 8 is a structural diagram of an electronic device provided by an embodiment of the present application;
图9为本申请实施例所提供的一种非易失性计算机可读存储介质的结构图。FIG. 9 is a structural diagram of a non-volatile computer-readable storage medium provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
相关技术中,前端装置所下发的操作请求通常由多副本模式中的任一微服务装置处理,而该微服务装置则会将对应的处理状态信息保存至数据库,以便前端装置及时了解处理进度详情。请参考图1,图1为本申请实施例所提供的相关技术中微服务***更新处理进度值的示意图,可见,来自前端装置(操作界面)的操作请求由网关随机发送给微服务A、微服务B或微服务C进行处理,而这些微服务将对应的处理进度值写入数据库集群(Mariadb),以便前端装置在数据库集群中进行查询。但在实际应用中,各微服务装置可能出现宕机情况,此时数据库中的处理状态信息将无法被改变,进而导致用户无法了解操作请求的处理情况以及微服务的运行状态,而这容易为用户带来不好的使用体验。In the related art, the operation request issued by the front-end device is usually processed by any micro-service device in the multi-copy mode, and the micro-service device will save the corresponding processing status information to the database, so that the front-end device can keep abreast of the processing progress details. Please refer to FIG. 1. FIG. 1 is a schematic diagram of the update processing progress value of the microservice system in the related art provided by the embodiment of the present application. It can be seen that the operation request from the front-end device (operation interface) is randomly sent by the gateway to the microservice A, microservice Service B or microservice C performs processing, and these microservices write the corresponding processing progress value into the database cluster (Mariadb), so that the front-end device can query in the database cluster. However, in practical applications, each microservice device may be down. At this time, the processing status information in the database will not be changed, and the user will not be able to understand the processing status of the operation request and the running status of the microservice. The user brings a bad experience.
有鉴于此,本申请提供一种信息更新方法,可设置目标微服务装置对自身运行状态进行检测,并在即将退出时向其他微服务装置提供标记信息,以便其他微服务装置依照标记信息更新目标微服务装置在数据库中的处理状态信息,进而解决用户无法了解操作请求的处理情况以及微服务运行状态的问题。In view of this, this application provides an information update method, which can set the target micro-service device to detect its own running status, and provide tag information to other micro-service devices when it is about to exit, so that other micro-service devices can update the target according to the tag information The processing status information of the micro-service device in the database can further solve the problem that the user cannot understand the processing status of the operation request and the running status of the micro-service.
参考图2,图2为本申请实施例所提供的一种信息更新方法的流程图,该方法应用于微服 务***,微服务***包括微服务装置,微服务装置至少包括第一微服务装置和第二微服务装置。需要说明的是,微服务装置的数量可大于2,可根据实际应用需求进行设定;此外,本申请实施例并不限定微服务***中可包含的其他装置,可以参考后文中的描述,也可根据实际应用需求进行设定。该方法可以包括:Referring to FIG. 2, FIG. 2 is a flow chart of an information update method provided by an embodiment of the present application. The method is applied to a microservice system. The microservice system includes a microservice device, and the microservice device includes at least a first microservice device and a Second microservice installation. It should be noted that the number of micro-service devices can be greater than 2, which can be set according to actual application requirements; in addition, the embodiment of the present application does not limit other devices that can be included in the micro-service system, you can refer to the description below, or It can be set according to actual application requirements. The method can include:
S101、第一微服务装置在处理前端装置发送的操作请求时,将对应的处理状态信息及第一微服务装置所在宿主机的宿主机名称保存至数据库。S101. When processing the operation request sent by the front-end device, the first micro-service device saves the corresponding processing status information and the name of the host machine where the first micro-service device is located in the database.
微服务装置部署在宿主机中,宿主机即为运行微服务的物理设备。本申请实施例并不限定宿主机是实体的电子设备,还是虚拟机,可根据实际应用需求进行设定,其中虚拟机指通过软件模拟的具有完整硬件***功能的、运行在一个完全隔离环境中的完整计算机***。需要指出的是,微服务装置与宿主机的对应关系为一对一。也正是如此,本申请实施例可根据宿主机的名称唯一确定一个微服务装置,而第一微服务装置同时将处理状态信息及所在宿主机的宿主机名称保存至数据库,也正是为了便于其他微服务装置根据该名称定位第一微服务装置。The microservice device is deployed in the host machine, and the host machine is the physical device running the microservice. The embodiment of the present application does not limit whether the host machine is a physical electronic device or a virtual machine, which can be set according to actual application requirements, wherein a virtual machine refers to a software simulation with complete hardware system functions, running in a completely isolated environment complete computer system. It should be pointed out that the corresponding relationship between the microservice device and the host machine is one-to-one. This is also the case, the embodiment of the present application can uniquely determine a micro-service device according to the name of the host machine, and the first micro-service device simultaneously saves the processing status information and the host machine name of the host machine where it is located to the database, precisely for the convenience of Other microservice devices locate the first microservice device according to the name.
进一步,需要说明的是,本申请实施例并不限定微服务装置具体需要处理的操作请求,可根据实际应用需求进行设定;本申请也不限定具体的数据库,以及处理状态信息和宿主机名称在该数据库中的存储形式,同样可根据实际应用需求进行设定。Further, it should be noted that the embodiment of this application does not limit the specific operation requests that need to be processed by the microservice device, which can be set according to actual application requirements; this application also does not limit the specific database, and the processing status information and host machine name The storage form in the database can also be set according to actual application requirements.
S102、第一微服务装置实时检测自身的运行状态,并在确定运行状态为即将关闭时,创建名称为宿主机名称的标志文件并保存至宿主机。S102. The first micro-service device detects its running state in real time, and when it is determined that the running state is about to be shut down, creates a flag file named as the name of the host machine and saves it to the host machine.
为及时向外界告知自身运行状态,本申请实施例中的第一微服务装置会自动检测自身运行状态,以确定自身是否即将发生关闭情况。若确定即将关闭,第一微服务装置则会进一步在宿主机中生成一个标志文件并命名为宿主机名称。显然,由于微服务装置与宿主机的关系为一对一,因此其他微服务装置可根据标志文件的名称确定第一微服务装置已关闭,进而便实现了第一微服务装置主动向外界告知自身运行状态的效果。In order to inform the outside world of its own running status in a timely manner, the first microservice device in the embodiment of the present application will automatically detect its own running status to determine whether it is about to shut down. If it is determined that it is about to be closed, the first micro-service device will further generate a flag file in the host machine and name it as the name of the host machine. Obviously, since the relationship between the micro-service device and the host is one-to-one, other micro-service devices can determine that the first micro-service device is closed according to the name of the flag file, and then realize that the first micro-service device actively notifies itself to the outside world The effect of the running state.
需要说明的是,本申请实施例并不限定检测微服务运行状态的具体方式,可参考微服务的相关技术。为提升检测效率,可在第一微服务装置中设置一个钩子程序(Hook),专用于检测第一微服务装置的运行状态,并在确定该装置即将关闭时,执行创建标志文件的步骤。需要说明的是,本申请实施例并不限定钩子程序的实现方式,可参考钩子程序的相关技术。It should be noted that the embodiment of the present application does not limit the specific manner of detecting the running state of the microservice, and reference may be made to related technologies of the microservice. In order to improve the detection efficiency, a hook program (Hook) can be set in the first microservice device, which is specially used to detect the running state of the first microservice device, and when it is determined that the device is about to be shut down, execute the step of creating a flag file. It should be noted that the embodiment of the present application does not limit the implementation manner of the hook program, and reference may be made to related technologies of the hook program.
在一些实施例中,第一微服务装置中预设有钩子程序,第一微服务装置检测自身的运行状态,并在确定运行状态为即将关闭时,创建名称为宿主机名称的标志文件并保存至宿主机,可以包括:In some embodiments, a hook program is preset in the first microservice device, and the first microservice device detects its own running state, and when it is determined that the running state is about to close, it creates a flag file named as the name of the host machine and saves it. to the host machine, which can include:
步骤11:钩子程序检测第一微服务装置的运行状态,并在确定运行状态为即将关闭时,创建标志文件并保存至宿主机。Step 11: The hook program detects the running state of the first microservice device, and when it is determined that the running state is about to close, creates a flag file and saves it to the host machine.
本申请实施例并不限定标志文件的具体类型,只要该文件的名称为宿主机名称即可,其具体类型可根据实际应用需求进行设置。本申请也不限定标志文件在宿主机中的存放位置,只要该位置便于查找即可。The embodiment of the present application does not limit the specific type of the logo file, as long as the name of the file is the name of the host machine, and the specific type can be set according to actual application requirements. This application does not limit the storage location of the logo file in the host computer, as long as the location is easy to find.
S103、第二微服务装置在宿主机中查找标志文件,并在查找到标志文件时在数据库中将标志文件的名称对应的处理状态信息更新为处理失败。S103. The second microservice device searches the host machine for the logo file, and when the logo file is found, updates the processing status information corresponding to the name of the logo file in the database to processing failure.
在本申请实施例中,第二微服务装置用于帮助已关闭的微服务装置更新其在数据库中的处理状态信息。第二微服务装置会在各宿主机中查找标志文件,并根据该文件的名称在数据库中更新对应的处理状态信息。可以理解的是,已关闭的微服务装置将无法完成操作请求处理,因此第二微服务装置可将标志文件名称对应的处理状态信息更新为处理失败。当然,也可进一步标注处理失败的原因是微服务装置宕机,可根据实际应用需求进行设定。In the embodiment of the present application, the second microservice device is used to help the closed microservice device update its processing status information in the database. The second micro-service device will search for the flag file in each host machine, and update the corresponding processing status information in the database according to the name of the file. It can be understood that the closed micro-service device will not be able to complete the processing of the operation request, so the second micro-service device can update the processing status information corresponding to the flag file name as processing failure. Of course, it can also be further marked that the reason for the processing failure is that the microservice device is down, which can be set according to actual application requirements.
需要说明的是,本申请实施例并不限定第二微服务装置执行标志文件查找步骤的方式,例如可以实时执行,也可以周期性执行。为提升资源利用率,降低资源浪费,第二微服务装置可周期性在宿主机中查找标志文件。本申请实施例并不限定具体的周期数值,例如可以为30秒,也可以为其他数值,可根据实际应用需求进行设定。It should be noted that the embodiment of the present application does not limit the manner in which the second microservice device executes the logo file search step, for example, it may be executed in real time or periodically. In order to improve resource utilization and reduce waste of resources, the second microservice device may periodically search for the logo file in the host machine. The embodiment of the present application does not limit the specific period value, for example, it may be 30 seconds, or it may be other values, which can be set according to actual application requirements.
在一些实施例中,第二微服务装置在宿主机中查找标志文件,可以包括:In some embodiments, the second microservice device searches for the flag file in the host machine, which may include:
步骤21:第二微服务装置周期性在宿主机中查找标志文件。Step 21: The second microservice device periodically searches the host machine for the logo file.
进一步,为避免反复更新相同的处理状态信息,第二微服务装置在完成更新操作后,可将该标志文件进行删除。Further, in order to avoid repeatedly updating the same processing state information, the second microservice device may delete the flag file after completing the update operation.
在一些实施例中,在数据库中将标志文件的名称对应的处理状态信息更新为处理失败之后,还可以包括:In some embodiments, after the processing status information corresponding to the name of the flag file is updated as processing failure in the database, it may further include:
步骤31:第二微服务装置删除标志文件。Step 31: The second microservice device deletes the logo file.
进一步,虽然本申请实施例采用第一微服务装置和第二微服务装置进行介绍,但在实际应用中为保障微服务的服务质量,每一微服务装置均需要执行步骤S101和S102,例如微服务***中包含微服务装置A,微服务装置B和微服务装置C,则这三个微服务装置均需要执行步骤S101和S102;此外,为避免资源浪费,可指定一个特定的微服务装置执行步骤S103,例如在上述例子中,可指定微服务装置B执行步骤S103。Further, although the embodiment of this application uses the first microservice device and the second microservice device for introduction, in order to ensure the service quality of microservices in practical applications, each microservice device needs to perform steps S101 and S102, for example, the microservice The service system includes microservice device A, microservice device B and microservice device C, and these three microservice devices need to execute steps S101 and S102; in addition, in order to avoid waste of resources, a specific microservice device can be designated to execute In step S103, for example, in the above example, microservice device B may be designated to execute step S103.
基于上述实施例,本申请中的第一微服务装置在处理前端装置所发送的操作请求时,会将对应的处理状态信息和该微服务装置所在宿主机的宿主机名称同时保存在数据库中,以便 其他微服务装置在数据库中定位第一微服务装置所生成的所有处理状态信息;同时,第一微服务装置还会对自身的运行状态进行实时检测,并在确定自身处于即将关机的状态时,创建一个文件名为宿主机名称的标志文件,以便其他微服务装置进行查找;最后,本申请将设置另一个微服务装置即第二微服务装置在各宿主机中查找这一标志文件,当查找到该标志文件时,则说明该文件对应的微服务装置已宕机,此时便可在数据库中将该文件的名称对应的处理状态信息更新为处理失败,以便前端用户及时了解操作请求的处理情况,进而提升用户对微服务***的使用体验。Based on the above-mentioned embodiment, when the first microservice device in this application processes the operation request sent by the front-end device, it will simultaneously save the corresponding processing status information and the name of the host machine where the microservice device is located in the database, so that other microservice devices can locate all the processing status information generated by the first microservice device in the database; at the same time, the first microservice device will also perform real-time detection of its own running status, and when it is determined that it is in the state of being about to shut down , create a logo file with the name of the host computer so that other micro-service devices can search for it; finally, this application will set another micro-service device, the second micro-service device, to search for this logo file in each host machine, when When the flag file is found, it means that the microservice device corresponding to the file is down. At this time, the processing status information corresponding to the name of the file can be updated in the database as processing failure, so that the front-end user can know the status of the operation request in a timely manner. Handle the situation, and then improve the user experience of the microservice system.
基于上述实施例,为确保第二微服务装置可靠,也可单独设置集群调度装置,用于对第二微服务装置进行检测,并在确定第二微服务装置正常工作时,才控制其执行标志文件查找步骤。在一些实施例中,微服务***还可以包括集群调度装置,在第二微服务装置在宿主机中查找标志文件之前,还可以包括:Based on the above-mentioned embodiment, in order to ensure the reliability of the second microservice device, a cluster scheduling device can also be set separately to detect the second microservice device, and only control its execution flag when it is determined that the second microservice device is working normally File lookup steps. In some embodiments, the microservice system may also include a cluster scheduling device, and before the second microservice device searches for the flag file in the host computer, it may also include:
S201、集群调度装置检测第二微服务装置的第一工作状态。S201. The cluster scheduling device detects the first working state of the second microservice device.
需要说明的是,本申请实施例并不限定具体的集群调度装置,可参考微服务集群的相关技术。本申请同样不限定检测第二微服务装置工作状态的方式,可参考微服务的相关技术。It should be noted that the embodiment of the present application does not limit a specific cluster scheduling device, and reference may be made to related technologies of microservice clusters. The present application also does not limit the method of detecting the working state of the second microservice device, and reference may be made to related technologies of microservices.
S202、在确定第一工作状态为正常时,则控制第二微服务装置执行在宿主机中查找标志文件的步骤。S202. When it is determined that the first working state is normal, control the second microservice device to execute the step of searching the flag file in the host machine.
可以理解的是,集群调度装置仅在第二微服务装置正常工作时,才可控制其执行标志文件查找步骤。然而,第二微服务装置也可能发生异常宕机,此时集群调度装置可获取其他微服务装置的工作状态,并在确定其他微服务装置正常工作时,将标志文件查找任务由第二微服务装置转移至其他微服务装置。It can be understood that the cluster scheduling device can only control the second microservice device to execute the flag file search step when it is working normally. However, abnormal downtime may also occur in the second microservice device. At this time, the cluster scheduling device can obtain the working status of other microservice devices, and when it is determined that other microservice devices are working normally, the flag file search task will be assigned to the second microservice device. The device is transferred to other microservice devices.
在一些实施例中,在集群调度装置检测第二微服务装置的第一工作状态之后,还可以包括:In some embodiments, after the cluster scheduling device detects the first working state of the second microservice device, it may further include:
步骤41:集群调度装置在确定第一工作状态为异常时,则检测微服务***中的其他微服务装置的第二工作状态,并在确定第二工作状态为正常时,控制其他微服务装置执行在宿主机中查找标志文件的步骤。Step 41: When the cluster scheduling device determines that the first working state is abnormal, it detects the second working state of other microservice devices in the microservice system, and when it determines that the second working state is normal, controls other microservice devices to execute Steps to find flag files on the host machine.
需要说明的是,本申请实施例并不限定集群调度装置执行工作状态检测的方式,例如可以为实时监测,也可以为周期性检测,同样可根据实际应用需求进行设定。It should be noted that the embodiment of the present application does not limit the manner in which the cluster scheduling device detects the working status. For example, it may be real-time monitoring or periodic detection, which may also be set according to actual application requirements.
基于上述实施例,本***还可引入集群调度装置,用于对第二微服务装置进行检测,并在确定第二微服务装置正常工作时,才控制其执行标志文件查找步骤,进而可有效确保标志 文件查找任务能够被正确执行。Based on the above embodiments, the system can also introduce a cluster scheduling device to detect the second microservice device, and only control it to execute the flag file search step when it is determined that the second microservice device is working normally, thereby effectively ensuring Flag file lookup tasks are executed correctly.
下面基于流程图介绍上述信息更新方法进行介绍。参考图3,图3为本申请实施例所提供的微服务宕机处理流程的示意图,可见,微服务A在即将关闭之前,会调用钩子程序,在宿主主机的某个目录下面写入一个文件(Pod),文件的名字就是宿主机名称(podName)。参考图4,图4为本申请实施例所提供的数据库更新处理流程的示意图,可见,执行标志文件查找的微服务会根据podName检索数据库表数据,然后修改文件处理的进度和状态。如果当前微服务不存在文件处理,也会写入podName,只是检索不出来数据而已。The above information update method will be described below based on the flow chart. Referring to Figure 3, Figure 3 is a schematic diagram of the microservice downtime processing flow provided by the embodiment of the present application. It can be seen that before the microservice A is about to be closed, it will call the hook program and write a file under a certain directory of the host computer (Pod), the name of the file is the host name (podName). Referring to FIG. 4, FIG. 4 is a schematic diagram of the database update processing flow provided by the embodiment of the present application. It can be seen that the microservice performing the logo file search will retrieve the database table data according to the podName, and then modify the progress and status of file processing. If there is no file processing in the current microservice, podName will also be written, but the data cannot be retrieved.
下面对本申请实施例提供的微服务***及非易失性计算机可读存储介质进行介绍,下文描述的微服务***及非易失性计算机可读存储介质与上文描述的信息更新方法可相互对应参照。The following introduces the microservice system and non-volatile computer-readable storage medium provided by the embodiment of the present application. The microservice system and non-volatile computer-readable storage medium described below can correspond to the information update method described above. refer to.
参考图5,图5为本申请实施例所提供的一种微服务***的结构图,微服务***包括微服务装置,微服务装置至少包括第一微服务装置510和第二微服务装置520,其中,Referring to FIG. 5, FIG. 5 is a structural diagram of a microservice system provided by an embodiment of the present application. The microservice system includes a microservice device, and the microservice device includes at least a first microservice device 510 and a second microservice device 520. in,
第一微服务装置510,用于在处理前端装置发送的操作请求时,将对应的处理状态信息及第一微服务装置所在宿主机的宿主机名称保存至数据库;实时检测自身的运行状态,并在确定运行状态为即将关闭时,创建名称为宿主机名称的标志文件并保存至宿主机;The first microservice device 510 is used to save the corresponding processing status information and the host computer name of the host computer where the first microservice device is located to the database when processing the operation request sent by the front-end device; detect its own running status in real time, and When it is determined that the running state is about to be shut down, create a flag file named as the name of the host and save it to the host;
第二微服务装置520,用于在宿主机中查找标志文件,并在查找到标志文件时在数据库中将标志文件的名称对应的处理状态信息更新为处理失败。The second micro-service device 520 is configured to search for the flag file in the host machine, and update the processing status information corresponding to the name of the flag file in the database as processing failure when the flag file is found.
在一些实施例中,请参考图6,图6为本申请实施例所提供的另一种微服务***的结构图,该***还可以包括:集群调度装置530,其中,In some embodiments, please refer to FIG. 6, which is a structural diagram of another microservice system provided by the embodiment of the present application. The system may also include: a cluster scheduling device 530, wherein,
集群调度装置530,用于检测第二微服务装置520的第一工作状态;在确定第一工作状态为正常时,则控制第二微服务装置520执行在宿主机中查找标志文件的步骤。The cluster scheduling device 530 is configured to detect the first working state of the second microservice device 520; when it is determined that the first working state is normal, then control the second microservice device 520 to execute the step of searching for the flag file in the host computer.
在一些实施例中,集群调度装置530,还用于在确定第一工作状态为异常时,则检测微服务***中的其他微服务装置的第二工作状态,并在确定第二工作状态为正常时,控制其他微服务装置执行在宿主机中查找标志文件的步骤。In some embodiments, the cluster scheduling device 530 is further configured to detect the second working status of other microservice devices in the microservice system when the first working status is determined to be abnormal, and determine that the second working status is normal , control other microservice devices to execute the step of searching for the flag file in the host computer.
在一些实施例中,第二微服务装置520,还可以用于周期性在宿主机中查找标志文件。In some embodiments, the second microservice device 520 may also be used to periodically search the host computer for the logo file.
在一些实施例中,第二微服务装置520,还可以用于在数据库中将标志文件的名称对应的处理状态信息更新为处理失败之后,删除标志文件。In some embodiments, the second microservice device 520 may also be configured to delete the flag file after updating the processing status information corresponding to the name of the flag file in the database to processing failure.
在一些实施例中,请参考图7,图7为本申请实施例所提供的又一种微服务***的结构 图,第一微服务装置中预设有钩子程序511,其中,In some embodiments, please refer to FIG. 7. FIG. 7 is a structural diagram of another microservice system provided by the embodiment of the present application. A hook program 511 is preset in the first microservice device, wherein,
钩子程序511,用于检测第一微服务装置的运行状态,并在确定运行状态为即将关闭时,创建标志文件并保存至宿主机。The hook program 511 is used to detect the running state of the first microservice device, and when it is determined that the running state is about to close, create a flag file and save it to the host machine.
本申请实施例还提供一种电子设备,包括:存储器801,用于存储计算机程序;处理器802,用于执行计算机程序,以实现上述任意实施例的信息更新方法的步骤。The embodiment of the present application also provides an electronic device, including: a memory 801, configured to store a computer program; and a processor 802, configured to execute the computer program, so as to implement the steps of the information update method in any of the foregoing embodiments.
本申请实施例还提供一种非易失性计算机可读存储介质9,非易失性计算机可读存储介质9上存储有计算机程序91,计算机程序91被处理器执行时实现上述任意实施例的信息更新方法的步骤。The embodiment of the present application also provides a non-volatile computer-readable storage medium 9, and a computer program 91 is stored on the non-volatile computer-readable storage medium 9, and when the computer program 91 is executed by a processor, any of the above-mentioned embodiments can be realized. The steps of the information update method.
由于电子设备和非易失性计算机可读存储介质部分的实施例与信息更新方法部分的实施例相互对应,因此电子设备和非易失性计算机可读存储介质部分的实施例请参见信息更新方法部分的实施例的描述,这里暂不赘述。Since the embodiments of the electronic device and the non-volatile computer-readable storage medium correspond to the embodiments of the information update method, please refer to the information update method for the embodiments of the electronic device and the non-volatile computer-readable storage medium. The description of some embodiments will not be repeated here.
说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in the description is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for relevant details, please refer to the description of the method part.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Professionals can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the possible For interchangeability, in the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.
以上对本申请所提供的一种信息更新方法、微服务***及计算机可读存储介质进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修 饰也落入本申请权利要求的保护范围内。The information updating method, the microservice system and the computer-readable storage medium provided by the present application have been introduced in detail above. In this paper, specific examples are used to illustrate the principles and implementation methods of the present application, and the descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application. It should be pointed out that those skilled in the art can make several improvements and modifications to the application without departing from the principle of the application, and these improvements and modifications also fall within the protection scope of the claims of the application.

Claims (20)

  1. 一种信息更新方法,其特征在于,应用于微服务***,所述微服务***包括微服务装置,所述微服务装置至少包括第一微服务装置和第二微服务装置,所述方法包括:An information update method, characterized in that it is applied to a microservice system, the microservice system includes a microservice device, and the microservice device includes at least a first microservice device and a second microservice device, and the method includes:
    所述第一微服务装置在处理前端装置发送的操作请求时,将对应的处理状态信息及所述第一微服务装置所在宿主机的宿主机名称保存至数据库;When the first micro-service device processes the operation request sent by the front-end device, it saves the corresponding processing status information and the name of the host machine where the first micro-service device is located in the database;
    所述第一微服务装置实时检测自身的运行状态,并在确定所述运行状态为即将关闭时,创建名称为所述宿主机名称的标志文件并保存至所述宿主机;The first micro-service device detects its own running state in real time, and when it is determined that the running state is about to close, creates a flag file named as the name of the host machine and saves it to the host machine;
    所述第二微服务装置在所述宿主机中查找所述标志文件,并在查找到所述标志文件时在所述数据库中将所述标志文件的名称对应的处理状态信息更新为处理失败。The second microservice device searches for the flag file in the host machine, and updates the processing status information corresponding to the name of the flag file in the database to processing failure when the flag file is found.
  2. 根据权利要求1所述的信息更新方法,其特征在于,所述微服务***还包括集群调度装置,在所述第二微服务装置在所述宿主机中查找所述标志文件之前,还包括:The information update method according to claim 1, wherein the microservice system further includes a cluster scheduling device, and before the second microservice device searches for the flag file in the host computer, it also includes:
    所述集群调度装置检测所述第二微服务装置的第一工作状态;The cluster scheduling device detects the first working state of the second microservice device;
    在确定所述第一工作状态为正常时,则控制所述第二微服务装置执行所述在所述宿主机中查找所述标志文件的步骤。When it is determined that the first working state is normal, the second microservice device is controlled to execute the step of searching the flag file in the host machine.
  3. 根据权利要求2所述的信息更新方法,其特征在于,在所述集群调度装置检测所述第二微服务装置的第一工作状态之后,还包括:The method for updating information according to claim 2, further comprising: after the cluster scheduling device detects the first working state of the second microservice device:
    所述集群调度装置在确定所述第一工作状态为异常时,则检测所述微服务***中的其他微服务装置的第二工作状态,并在确定所述第二工作状态为正常时,控制所述其他微服务装置执行所述在所述宿主机中查找所述标志文件的步骤。When the cluster scheduling device determines that the first working state is abnormal, it detects the second working state of other microservice devices in the microservice system, and when it determines that the second working state is normal, controls The other microservice device executes the step of searching for the flag file in the host computer.
  4. 根据权利要求1所述的信息更新方法,其特征在于,所述第二微服务装置在所述宿主机中查找所述标志文件,包括:The information update method according to claim 1, wherein the second microservice device searches for the flag file in the host machine, including:
    所述第二微服务装置周期性在所述宿主机中查找所述标志文件。The second microservice device periodically searches for the flag file in the host computer.
  5. 根据权利要求1所述的信息更新方法,其特征在于,在所述数据库中将所述标志文件的名称对应的处理状态信息更新为处理失败之后,还包括:The information updating method according to claim 1, characterized in that after updating the processing status information corresponding to the name of the flag file in the database to processing failure, further comprising:
    所述第二微服务装置删除所述标志文件。The second microservice device deletes the flag file.
  6. 根据权利要求1至5任一项所述的信息更新方法,其特征在于,所述第一微服务装置中预设有钩子程序,所述第一微服务装置检测自身的运行状态,并在确定所述运行状态为即将关闭时,创建名称为所述宿主机名称的标志文件并保存至所述宿主机,包括:The information update method according to any one of claims 1 to 5, wherein a hook program is preset in the first micro-service device, and the first micro-service device detects its own running status, and when determining When the running state is about to be shut down, create a flag file with the name of the host machine and save it to the host machine, including:
    所述钩子程序检测所述第一微服务装置的运行状态,并在确定所述运行状态为即将关闭时,创建所述标志文件并保存至所述宿主机。The hook program detects the running state of the first micro-service device, and when it is determined that the running state is about to close, creates the flag file and saves it to the host computer.
  7. 根据权利要求1所述的信息更新方法,其特征在于,所述方法还包括:The method for updating information according to claim 1, further comprising:
    所述第二微服务装置,对处理失败的原因进行标注。The second microservice device marks the reason for the processing failure.
  8. 根据权利要求7所述的信息更新方法,其特征在于,所述原因为第一微服务装置宕机。The information update method according to claim 7, wherein the reason is that the first microservice device is down.
  9. 根据权利要求1所述的信息更新方法,其特征在于,所述第二微服务装置为一特定的微服务装置,所述方法还包括:The method for updating information according to claim 1, wherein the second microservice device is a specific microservice device, and the method further comprises:
    除第一微服务装置外的其他微服务装置在处理前端装置发送的操作请求时,将对应的处理状态信息及所述其他微服务装置所在宿主机的宿主机名称保存至数据库;When other micro-service devices except the first micro-service device process the operation request sent by the front-end device, the corresponding processing status information and the host name of the host where the other micro-service devices are located are stored in the database;
    所述其他微服务装置实时检测自身的运行状态,并在确定所述其他微服务装置的运行状态为即将关闭时,创建名称为所述其他微服务装置对应的宿主机名称的标志文件并保存至所述其他微服务装置对应的宿主机。The other micro-service devices detect their own running status in real time, and when it is determined that the running status of the other micro-service devices is about to close, create a flag file whose name is the name of the host machine corresponding to the other micro-service devices and save it to The host computer corresponding to the other microservice devices.
  10. 根据权利要求1所述的信息更新方法,其特征在于,The information update method according to claim 1, wherein:
    微服务装置与宿主机的对应关系为一对一。The corresponding relationship between the microservice device and the host machine is one-to-one.
  11. 一种微服务***,其特征在于,所述微服务***包括微服务装置,所述微服务装置至少包括第一微服务装置和第二微服务装置,其中,A microservice system, characterized in that the microservice system includes a microservice device, and the microservice device includes at least a first microservice device and a second microservice device, wherein,
    所述第一微服务装置,用于在处理前端装置发送的操作请求时,将对应的处理状态信息及所述第一微服务装置所在宿主机的宿主机名称保存至数据库;实时检测自身的运行状态,并在确定所述运行状态为即将关闭时,创建名称为所述宿主机名称的标志文件并保存至所述宿主机;The first micro-service device is used to store the corresponding processing status information and the name of the host machine where the first micro-service device is located in the database when processing the operation request sent by the front-end device; real-time detection of its own operation state, and when it is determined that the operating state is about to be shut down, create a flag file named as the name of the host machine and save it to the host machine;
    所述第二微服务装置,用于在所述宿主机中查找所述标志文件,并在查找到所述标志文件时在所述数据库中将所述标志文件的名称对应的处理状态信息更新为处理失败。The second microservice device is configured to search for the logo file in the host machine, and update the processing status information corresponding to the name of the logo file in the database when the logo file is found as Processing failed.
  12. 根据权利要求11所述的微服务***,其特征在于,还包括:集群调度装置,其中,The microservice system according to claim 11, further comprising: a cluster scheduling device, wherein,
    所述集群调度装置,用于检测所述第二微服务装置的第一工作状态;在确定所述第一工作状态为正常时,则控制所述第二微服务装置执行所述在所述宿主机中查找所述标志文件的步骤。The cluster scheduling device is configured to detect the first working state of the second microservice device; when it is determined that the first working state is normal, then control the second microservice device to execute the Steps to find said flags file in the host.
  13. 根据权利要求12所述的微服务***,其特征在于,The microservice system according to claim 12, wherein:
    所述集群调度装置,还用于在确定所述第一工作状态为异常时,则检测所述微服务***中的其他微服务装置的第二工作状态,并在确定所述第二工作状态为正常时,控制所述其他微服务装置执行所述在所述宿主机中查找所述标志文件的步骤。The cluster scheduling device is further configured to detect the second working status of other micro-service devices in the micro-service system when it is determined that the first working status is abnormal, and determine that the second working status is Normally, control the other micro-service devices to execute the step of searching the flag file in the host computer.
  14. 根据权利要求11所述的微服务***,其特征在于,The microservice system according to claim 11, wherein,
    所述第二微服务装置,用于周期性在所述宿主机中查找所述标志文件。The second microservice device is configured to periodically search for the flag file in the host machine.
  15. 根据权利要求11所述的微服务***,其特征在于,The microservice system according to claim 11, wherein:
    所述第二微服务装置,用于在所述数据库中将所述标志文件的名称对应的处理状态信息更新为处理失败之后,删除所述标志文件。The second microservice device is configured to delete the flag file after updating the processing status information corresponding to the name of the flag file in the database to processing failure.
  16. 根据权利要求11至15任一项所述的微服务***,其特征在于,The microservice system according to any one of claims 11 to 15, characterized in that,
    所述第一微服务装置中预设有钩子程序,所述第一微服务装置,用于所述钩子程序检测所述第一微服务装置的运行状态,并在确定所述运行状态为即将关闭时,创建所述标志文件并保存至所述宿主机。A hook program is preset in the first micro-service device, and the first micro-service device is used for the hook program to detect the running state of the first micro-service device, and determine that the running state is about to close , create the logo file and save it to the host machine.
  17. 根据权利要求11所述的微服务***,其特征在于,The microservice system according to claim 11, wherein:
    所述第二微服务装置,用于对处理失败的原因进行标注。The second microservice device is used to mark the reason for the processing failure.
  18. 根据权利要求11所述的微服务***,其特征在于,所述第二微服务装置为一特定的微服务装置;The microservice system according to claim 11, wherein the second microservice device is a specific microservice device;
    除第一微服务装置外的其他微服务装置,用于在处理前端装置发送的操作请求时,将对应的处理状态信息及所述其他微服务装置所在宿主机的宿主机名称保存至数据库;实时检测自身的运行状态,并在确定所述其他微服务装置的运行状态为即将关闭时,创建名称为所述其他微服务装置对应的宿主机名称的标志文件并保存至所述其他微服务装置对应的宿主机。Other micro-service devices except the first micro-service device are used to save the corresponding processing status information and the host name of the host where the other micro-service devices are located to the database when processing the operation request sent by the front-end device; real-time Detect the running state of itself, and when it is determined that the running state of the other microservice devices is about to close, create a flag file whose name is the name of the host machine corresponding to the other microservice devices and save it to the corresponding host machine.
  19. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    存储器,用于存储计算机程序;memory for storing computer programs;
    处理器,用于执行所述计算机程序,以实现如权利要求1至10任一项所述的信息更新方法。A processor, configured to execute the computer program, so as to realize the information updating method according to any one of claims 1 to 10.
  20. 一种非易失性计算机可读存储介质,其特征在于,所述非易失性计算机可读存储介质中存储有计算机程序,所述计算机程序被处理器加载并执行时,实现如权利要求1至10任一项所述的信息更新方法。A non-volatile computer-readable storage medium, wherein a computer program is stored in the non-volatile computer-readable storage medium, and when the computer program is loaded and executed by a processor, the implementation of claim 1 The information updating method described in any one of 10 to 10.
PCT/CN2022/140465 2022-02-16 2022-12-20 Information updating method, micro-service system, and computer-readable storage medium WO2023155587A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210139568.6 2022-02-16
CN202210139568.6A CN114201458B (en) 2022-02-16 2022-02-16 Information updating method, micro-service system and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2023155587A1 true WO2023155587A1 (en) 2023-08-24

Family

ID=80658958

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/140465 WO2023155587A1 (en) 2022-02-16 2022-12-20 Information updating method, micro-service system, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN114201458B (en)
WO (1) WO2023155587A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114201458B (en) * 2022-02-16 2022-04-26 苏州浪潮智能科技有限公司 Information updating method, micro-service system and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108427581A (en) * 2018-02-07 2018-08-21 平安普惠企业管理有限公司 System micro services method and terminal device
CN111459760A (en) * 2020-04-01 2020-07-28 交通银行股份有限公司太平洋***中心 Micro-service monitoring method and device and computer storage medium
CN112749050A (en) * 2019-10-29 2021-05-04 ***通信集团浙江有限公司 Micro-service-framework-based safety circuit breaking method and device and computing equipment
CN113190417A (en) * 2021-06-01 2021-07-30 京东科技控股股份有限公司 Microservice state detection method, model training method, device and storage medium
CN113220377A (en) * 2021-05-11 2021-08-06 上海销氪信息科技有限公司 Method, system and storage medium for managing and controlling functions of micro-service
WO2021159657A1 (en) * 2020-02-14 2021-08-19 平安科技(深圳)有限公司 Method and device for microservice deployment, computer device, and storage medium
US20210390005A1 (en) * 2020-06-16 2021-12-16 Fujitsu Limited Delay cause identification method, non-transitory computer-readable storage medium, delay cause identification apparatus
CN114201458A (en) * 2022-02-16 2022-03-18 苏州浪潮智能科技有限公司 Information updating method, micro-service system and computer readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9749428B2 (en) * 2014-10-21 2017-08-29 Twilio, Inc. System and method for providing a network discovery service platform
CN110968392B (en) * 2018-09-30 2024-04-12 华为技术有限公司 Method and device for upgrading virtualized simulator
CN112579118A (en) * 2019-09-30 2021-03-30 北京国双科技有限公司 Method, device, system, medium and equipment for updating configuration information of microservice
US20210279816A1 (en) * 2020-03-09 2021-09-09 Adp, Llc. On-demand payroll system and interface
CN112511608A (en) * 2020-11-19 2021-03-16 中国平安财产保险股份有限公司 Micro-service module registration and test method, device, equipment and storage medium
CN113660359B (en) * 2021-08-25 2024-01-19 北京搜房科技发展有限公司 Domain name resolution record management method and device, storage medium and electronic equipment
CN113961245A (en) * 2021-10-28 2022-01-21 绿盟科技集团股份有限公司 Security protection system, method and medium based on micro-service application

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108427581A (en) * 2018-02-07 2018-08-21 平安普惠企业管理有限公司 System micro services method and terminal device
CN112749050A (en) * 2019-10-29 2021-05-04 ***通信集团浙江有限公司 Micro-service-framework-based safety circuit breaking method and device and computing equipment
WO2021159657A1 (en) * 2020-02-14 2021-08-19 平安科技(深圳)有限公司 Method and device for microservice deployment, computer device, and storage medium
CN111459760A (en) * 2020-04-01 2020-07-28 交通银行股份有限公司太平洋***中心 Micro-service monitoring method and device and computer storage medium
US20210390005A1 (en) * 2020-06-16 2021-12-16 Fujitsu Limited Delay cause identification method, non-transitory computer-readable storage medium, delay cause identification apparatus
CN113220377A (en) * 2021-05-11 2021-08-06 上海销氪信息科技有限公司 Method, system and storage medium for managing and controlling functions of micro-service
CN113190417A (en) * 2021-06-01 2021-07-30 京东科技控股股份有限公司 Microservice state detection method, model training method, device and storage medium
CN114201458A (en) * 2022-02-16 2022-03-18 苏州浪潮智能科技有限公司 Information updating method, micro-service system and computer readable storage medium

Also Published As

Publication number Publication date
CN114201458B (en) 2022-04-26
CN114201458A (en) 2022-03-18

Similar Documents

Publication Publication Date Title
US11086725B2 (en) Orchestration of heterogeneous multi-role applications
US10896102B2 (en) Implementing secure communication in a distributed computing system
US11226847B2 (en) Implementing an application manifest in a node-specific manner using an intent-based orchestrator
US10642694B2 (en) Monitoring containers in a distributed computing system
US10255147B2 (en) Fault tolerance for containers in a virtualized computing environment
US11113158B2 (en) Rolling back kubernetes applications
TWI728036B (en) Information processing method, device and system
US11392363B2 (en) Implementing application entrypoints with containers of a bundled application
US11347684B2 (en) Rolling back KUBERNETES applications including custom resources
US8245013B2 (en) Mapped offsets preset ahead of process migration
US8244954B2 (en) On-demand paging-in of pages with read-only file system
WO2023155587A1 (en) Information updating method, micro-service system, and computer-readable storage medium
JP2008033483A (en) Computer system, computer, and moving method of computer operating environment
US11184263B1 (en) Intelligent serverless function scaling
US10877684B2 (en) Changing a distributed storage volume from non-replicated to replicated
EP2524302B1 (en) Persistent application activation and timer notifications
US20190220205A1 (en) Job Manager For Deploying A Bundled Application
CN114153660A (en) Database backup method, device, server and medium
WO2021042595A1 (en) Virtual disk migration method, apparatus and device, and readable storage medium
US20080109607A1 (en) Method, system and article for managing memory
CN114691304B (en) Method, device, equipment and medium for realizing high availability of cluster virtual machine
WO2023151352A1 (en) Memory snapshot management method and apparatus, and device and medium
WO2021229640A1 (en) Control device, control method, and control program
CN111625262B (en) Rollback method, system, equipment and storage medium of workload resource
US20210303339A1 (en) Data backup method, electronic device and computer program product

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22926886

Country of ref document: EP

Kind code of ref document: A1