CN108845910A - Monitoring method, device and the storage medium of extensive micro services system - Google Patents

Monitoring method, device and the storage medium of extensive micro services system Download PDF

Info

Publication number
CN108845910A
CN108845910A CN201810547288.2A CN201810547288A CN108845910A CN 108845910 A CN108845910 A CN 108845910A CN 201810547288 A CN201810547288 A CN 201810547288A CN 108845910 A CN108845910 A CN 108845910A
Authority
CN
China
Prior art keywords
micro services
access
performance data
amount
extensive
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810547288.2A
Other languages
Chinese (zh)
Other versions
CN108845910B (en
Inventor
孙志博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kang Keyi Information Technology (shenzhen) Co Ltd
Original Assignee
Kang Keyi Information Technology (shenzhen) Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kang Keyi Information Technology (shenzhen) Co Ltd filed Critical Kang Keyi Information Technology (shenzhen) Co Ltd
Priority to CN201810547288.2A priority Critical patent/CN108845910B/en
Publication of CN108845910A publication Critical patent/CN108845910A/en
Application granted granted Critical
Publication of CN108845910B publication Critical patent/CN108845910B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Abstract

The present invention provides monitoring method, device and the computer readable storage medium of a kind of extensive micro services system.This approach includes the following steps:The properties data of each micro services are acquired in real time;Real-time collected performance data is stored with message mode to message queue;Message in message queue is handled, judges whether the performance data in message exceeds preset threshold;When a certain performance data of some micro services exceeds preset threshold, triggering alarm, dynamic adjusts the amount of access to the micro services, until the performance data of the micro services is restored to normal range (NR).The present invention is monitored in real time by the performance data to micro services a large amount of in extensive micro services system and is adjusted to the dynamic of abnormal micro services flowing of access, and the error rate of system is reduced, by way of triggering alarm, it helps improve the debugging efficiency of system.

Description

Monitoring method, device and the storage medium of extensive micro services system
Technical field
The present invention relates to micro services technical fields, more particularly to monitoring method, device and the meter of extensive micro services system Calculation machine readable storage medium storing program for executing.
Background technique
Micro services (Microservice Architecture) are a kind of emerging software architecture styles, it passes through exploitation The mode of some small services develops the application system of an independent completion.Each micro services carry out structure around business function It builds, and independent deployment can be carried out by automatically dispose mechanism, operate in the process of oneself, using light between micro services The communication mechanism of magnitude is normally based on the RESTfulAPI of HTTP.Different programming languages can be used in these micro services It writes, different data storage technologies can be used, and keep the centralized management of bottom line.
Extensive micro services system is related to thousands of a micro services.Due between micro services there may be dependence, because This any component error, which all may cause user, normally to be accessed.Currently, leading to when extensive micro services system breaks down It is often to be debugged by way of calling, analysis system serve log, due to the micro services enormous amount being related to, if hair It recalls when existing failure, analyze a large amount of log to debug, the efficiency of misarrangement is unable to get guarantee.
Summary of the invention
For these reasons, it is necessary to which monitoring method, device and the computer for providing a kind of extensive micro services system can Storage medium is read, all micro services are monitored in micro services platform architecture level, it is steady to guarantee to service in all operations It is qualitative, and improve the debugging efficiency of system.
To achieve the above object, the present invention provides a kind of monitoring method of extensive micro services system, and this method includes:
Acquisition step:The properties data of each micro services are acquired in real time;
Storing step:Real-time collected performance data is stored with message mode to message queue;
Judgment step:Message in message queue is handled, it is default to judge whether the performance data in message exceeds Threshold value;And
Set-up procedure:When a certain performance data of some micro services exceeds preset threshold, triggering alarm, and dynamic adjusts To the amount of access of the micro services, until the performance data of the micro services is restored to normal range (NR).
Preferably, this method further includes calculating step:When the properties data of each micro services are without departing from default threshold When value, present period properties data and history are calculated separately with the year-on-year difference of period properties data and with upper one The ring of period properties data is than difference, when the year-on-year difference or the ring exceed preset value than difference, triggering alarm.
Preferably, the data generated in the judgment step, set-up procedure and calculating step are stored to storage system.
Preferably, the performance data include the amount of requesting access to per second, the access response time (Response Time, RT), The concurrently visit in the access error amount (FAIL) and preset time in total amount of access (TOTAL), preset time in preset time The amount of asking (CONCUR).
Preferably, it is dynamically adjusted in the set-up procedure and the amount of access of micro services is included the following steps:
It is stepped up the concurrent amount of access to triggering alarm micro services;
When the concurrent amount of access reaches preset threshold, triggering alarm carries out flow degradation to the micro services, refuses subsequent The access request received.
The present invention also provides a kind of electronic device, which includes memory and processor, is wrapped in the memory The monitoring programme of extensive micro services system is included, it is real when the monitoring programme of the extensive micro services system is executed by the processor Existing following steps:
Acquisition step:The properties data of each micro services are acquired in real time;
Storing step:Real-time collected performance data is stored with message mode to message queue;
Judgment step:Message in message queue is handled, it is default to judge whether the performance data in message exceeds Threshold value;And
Set-up procedure:When a certain performance data of some micro services exceeds preset threshold, triggering alarm, and dynamic adjusts To the amount of access of the micro services, until the performance data of the micro services is restored to normal range (NR).
Preferably, when the properties data of each micro services without departing from preset threshold when, calculate separately present period The ring of properties data and history with the year-on-year difference of period properties data and with upper period properties data Than difference, when the year-on-year difference or the ring exceed preset value than difference, triggering alarm.
Preferably, the performance data includes the amount of requesting access to per second, access response time, total access in preset time The concurrent amount of access in access error amount and preset time in amount, preset time.
Preferably, it is dynamically adjusted in the set-up procedure and the amount of access of micro services is included the following steps:
It is stepped up the concurrent amount of access to triggering alarm micro services;
When the concurrent amount of access reaches preset threshold, triggering alarm carries out flow degradation to the micro services, refuses subsequent The access request received.
It include extensive micro- the present invention also provides a kind of computer readable storage medium, in the computer readable storage medium It is realized when the monitoring programme of the monitoring programme of service system, the extensive micro services system is executed by processor as described above big Arbitrary steps in the monitoring method of scale micro services system.
Monitoring method, device and the computer readable storage medium of extensive micro services system provided by the invention, pass through The properties data for acquiring each micro services in real time store it to message queue, then to message queue with message mode In message handled, it is without exception to judge that the performance data of acquisition has, if there is exception, triggers alarm, and dynamic adjustment pair The amount of access of triggering alarm micro services, until the performance data of the micro services is restored to normal range (NR), to reduce the error of system Rate;If collected performance data does not have exception, the situation of change of performance data is calculated, analyzes, if it find that performance data Anomalous variation then triggers alarm, checked in time to being likely to occur abnormal micro services, micro services is avoided to advise greatly extremely Sprawling in mould micro services system.
Detailed description of the invention
Fig. 1 is the schematic diagram of electronic device preferred embodiment of the present invention;
Fig. 2 is the Program modual graph of the monitoring programme preferred embodiment of extensive micro services system in Fig. 1;
Fig. 3 is the flow diagram of the first preferred embodiment of monitoring method of the extensive micro services system of the present invention;
Fig. 4 is the flow diagram of the second preferred embodiment of monitoring method of the extensive micro services system of the present invention;
Fig. 5 is the flow diagram of the monitoring method third preferred embodiment of the extensive micro services system of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
Understand to make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with several attached drawings and reality Example is applied, the present invention is further described in detail.It should be understood that specific embodiment described herein is only used to It explains the present invention, is not intended to limit the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
The present invention provides a kind of electronic device.It is the signal of 1 preferred embodiment of electronic device of the present invention shown in referring to Fig.1 Figure.In this embodiment, electronic device 1 acquires the properties data of each micro services in real time, carries out to the performance data Analytical calculation, the data that note abnormalities then trigger alarm, and it is micro- to the amount of access realization of triggering alarm micro services to pass through dynamic adjustment The graceful degradation of service helps to ensure that micro services in operation until the performance data of the micro services is restored to normal range (NR) Stability.
The electronic device 1 can be server, smart phone, tablet computer, portable computer, desktop PC etc. Terminal device with storage and calculation function.In one embodiment, when electronic device 1 is server, which can To be the one or more of rack-mount server, blade server, tower server or Cabinet-type server etc..
The electronic device 1 includes memory 11, processor 12, network interface 13 and communication bus 14.
Wherein, memory 11 includes the readable storage medium storing program for executing of at least one type.The readable of at least one type is deposited Storage media can be the non-volatile memory medium of such as flash memory, hard disk, multimedia card, card-type memory.In some embodiments, The readable storage medium storing program for executing can be the internal storage unit of the electronic device 1, such as the hard disk of the electronic device 1.Another In some embodiments, the readable storage medium storing program for executing is also possible to the external memory 11 of the electronic device 1, such as the electronics The plug-in type hard disk being equipped on device 1, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..
In the present embodiment, the readable storage medium storing program for executing of the memory 11 is commonly used in storage program area, extensive micro- The monitoring programme 10 of service system, the performance data acquired in real time and configuration information etc..The memory 11 can be also used for temporarily When store the data that has exported or will export.
Processor 12 can be in some embodiments a central processing unit (Central Processing Unit, CPU), microprocessor or other data processing chips, program code or processing data for being stored in run memory 11, example Such as execute the monitoring programme 10 of extensive micro services system.
Network interface 13 may include standard wireline interface and wireless interface (such as WI-FI interface).Commonly used in the electricity Communication connection is established between sub-device 1 and other electronic equipments or system.
Communication bus 14 is for realizing the connection communication between said modules.
Fig. 1 illustrates only the electronic device 1 of the monitoring programme 10 with component 11-14 and extensive micro services system, It should be understood that be not required for implementing all components shown, the implementation that can be substituted is more or less component.
Optionally, which can also include backstage manager's interface of micro services system, after micro services system Platform administrator interface may include input unit such as keyboard (Keyboard), speech input device such as microphone (Microphone) etc. with equipment, the instantaneous speech power such as sound equipment, earphone etc. of speech identifying function.Optionally, in incognito Backstage manager's interface of business system can also include standard wireline interface and wireless interface.
Optionally, which can also include display, be referred to as display screen or display unit.Some It can be light-emitting diode display, liquid crystal display, touch-control liquid crystal display and Organic Light Emitting Diode (Organic in embodiment Light-Emitting Diode, OLED) display etc..Display for show the information handled in the electronic apparatus 1 and For showing the back-stage management operator interfaces of visual micro services system.
Optionally, which further includes touch sensor.For micro services system provided by the touch sensor Backstage manager carry out touch operation region be known as touch area.In addition, touch sensor described here can be electricity Resistive touch sensor, capacitive touch sensors etc..Moreover, the touch sensor not only includes the touch sensing of contact Device may also comprise the touch sensor etc. of proximity.In addition, the touch sensor can be single sensor, or Such as multiple sensors of array arrangement.The backstage manager of micro services system can be started greatly by touching the touch area The monitoring programme 10 of scale micro services system.
In addition, the area of the display of the electronic device 1 can be identical as the area of the touch sensor, it can also not Together.Optionally, display and touch sensor stacking are arranged, to form touch display screen.The device is based on touching aobvious Display screen detects the touch control operation of backstage manager's triggering of micro services system.
The electronic device 1 can also include radio frequency (Radio Frequency, RF) circuit, sensor and voicefrequency circuit etc. Deng details are not described herein.
In the above-described embodiments, processor 12 executes the monitoring programme of the extensive micro services system stored in memory 11 Following steps are realized when 10:
Acquisition step:The properties data of each micro services are acquired in real time;
Storing step:Real-time collected performance data is stored with message mode to message queue;
Judgment step:Message in message queue is handled, it is default to judge whether the performance data in message exceeds Threshold value;And
Set-up procedure:When a certain performance data of some micro services exceeds preset threshold, triggering alarm, and dynamic adjusts To the amount of access of the micro services, until the performance data of the micro services is restored to normal range (NR).
About being discussed in detail for above-mentioned steps, monitoring programme 10 of following Fig. 2 about extensive micro services system is please referred to Monitoring method preferred embodiment of the Program modual graph and Fig. 3, Fig. 4, Fig. 5 of preferred embodiment about extensive micro services system Flow chart explanation.
In other embodiments, the monitoring programme 10 of extensive micro services system can be divided into multiple modules, this is more A module is stored in memory 12, and is executed by processor 13, to complete the present invention.The so-called module of the present invention refers to energy Enough complete the series of computation machine program instruction section of specific function.
It is the program module of 10 preferred embodiment of monitoring programme of extensive micro services system in Fig. 1 referring to shown in Fig. 2 Figure.In the present embodiment, the monitoring programme 10 of the extensive micro services system can be divided into:Acquisition module 110, storage Module 120, judgment module 130, computing module 140, alarm module 150, adjustment module 160 and configuration module 170.
Acquisition module 110, for acquiring the properties data of each micro services in real time.The performance data includes but not Be limited to the amount of requesting access to per second, the access response time, total amount of access in preset time, the access error amount in preset time and The system performance index such as the concurrency in preset time.In one embodiment, the utilization of acquisition module 110 is buried a technology and is adopted in real time Collect the performance data, the monitoring for micro services system of the present invention provides data supporting.For example, being transported in extensive micro services system During row, acquisition module 110 acquires all data of each micro services in real time in such a way that visualization is buried and a little or entirely buried a little.
Memory module 120, for being stored real-time collected performance data with message mode to message queue.For example, The memory module 120 according to chronological order, stores the n performance data acquired in real time in form of a message to message Queue.
Judgment module 130 judges that the performance data in message is for handling the message in the message queue It is no to exceed preset threshold.For example, the judgment module 130 calls a certain number of threads, to forward in the message queue The access error amount etc. of the access response time of micro services A and micro services A in preset time (such as 5 seconds) is handled, will It is compared with the preset threshold read from memory 11, judges whether the numerical value of above-mentioned performance data exceeds default threshold Value.
It is understood that judgment module 130 usually calls sufficient amount of thread to realize stronger real-time, and When the message in message queue is handled.
Computing module 140, for calculating present period properties data and history with the same of period properties data Than difference and with the rings of upper period properties data than difference, calculated result is made comparisons with preset value.When judging mould When block 130 judges the properties data of each micro services without departing from preset threshold, computing module 140 will be calculated separately currently Period properties data and history with period properties data year-on-year difference and with upper period properties data Ring than difference, if the year-on-year difference or the ring exceed preset value than difference, computing module 140 sends calculated result To alarm module 150.
For example, the calculating of computing module 140 micro services A present period (such as 10:00-11:00) access error amount and yesterday The difference of the access error amount of its same period, and with a upper period (9:00-10:00) difference of access error amount, such as Fruit exceeds preset value (such as 50), then computing module 140 notifies alarm module 150, the triggering alarm of alarm module 150.
Alarm module 150, for triggering alarm when meeting preset condition.For example, working as a certain performance of some micro services When data exceed preset threshold, triggering alarm.According to above-mentioned example, it is assumed that the preset threshold of the access response time of micro services A is 0.15 second, and the access response time of the real-time collected micro services A being stored in the message queue is 4.2 seconds, judgement The access response time of micro services A can be sent to alarm module 150 beyond the judging result of preset threshold by module 130, be alarmed The triggering alarm of module 150.For another example, if computing module 140 show that the year-on-year difference or the ring exceed preset value than difference, The triggering alarm of alarm module 150.
It should be noted that the type of the performance data exception-triggered alarm of different micro services may be different, for example, in incognito It is engaged in that hair may be organized to the backstage manager of the first micro services system or the backstage manager of the first micro services system when A triggering alarm Alarm short message is sent, and backstage manager or the second micro services system of the second micro services system may be given when micro services B triggering alarm The backstage manager of system, which organizes, sends alarm mail.Different type of alarm, which are triggered, above with respect to different abnormal conditions is only to provide part Example fails exhaustion.
Module 160 is adjusted, the amount of access of micro services is corresponded to for dynamically adjusting anomalous performance data, until the micro services Performance data is restored to normal range (NR).For example, exceeding preset threshold, report in the access response time of micro services A according to above-mentioned example After the alert triggering of module 150 alarm, adjustment module 160 is first stepped up that (such as every five seconds increases to the concurrent amount of access of micro services A Preset quantity), when the concurrent amount of access reaches preset threshold, it is micro- to this to adjust module 160 for the triggering alarm of alarm module 150 Service carries out flow degradation, refuses subsequently received access request and (such as mentions to the backward reference error of access request side Show), until the performance data of the micro services is restored to normal range (NR).
Module 160 is adjusted after the triggering alarm of alarm module 150, to the amount of access for the micro services for anomalous performance data occur It is dynamically adjusted, to realize the graceful degradation of micro services, and then realizes the technical effect for reducing system fault rate, entirely Process is not necessarily to manual intervention.It is understood that the backstage manager of micro services system is in the alarm for receiving alarm module 150 Afterwards, abnormal cause can also be analyzed, abnormal problem is solved by manual intervention.
Configuration module 160, for configuring alarm rule, the preset threshold of the properties data including each micro services. The preset threshold of the properties data of each micro services, can be by the backstage manager of micro services system according to business scenario Dynamic configuration is carried out, i.e., according to the threshold value of the practical application request of every kind of micro services configuration triggering alarm.For example, about above-mentioned micro- The alarm rule for servicing the access error amount of A within a preset time, can be configured as follows:
Rule name:provider_check
Rule description:ISP's error number accounts for relatively high
Rule calculates:${errorCount}*100/${invokeCount}>10&&${invokeCount}>1
In other embodiments, the memory module 120 is also used to judgment module 130, computing module 140, alarm mould Block 150, adjustment module 160, the data generated in 170 operational process of configuration module are stored into memory 11.
In addition, the present invention also provides a kind of monitoring methods of extensive micro services system.Referring to shown in Fig. 3, for the present invention The flow diagram of first preferred embodiment of the monitoring method of extensive micro services system.The processor 12 of electronic device 1 is held The monitoring side of extensive micro services system is realized when the monitoring programme 10 of the extensive micro services system stored in line storage 11 The following steps of method:
Step S300, acquisition module 110 acquire the properties data of each micro services in real time.For example, in micro services system It unites in operational process, acquisition module 110 acquires the amount of requesting access to per second of each micro services using a technology of burying in real time, access is rung Between seasonable, the systems such as total amount of access in preset time, the concurrency in access error amount and preset time in preset time Performance indicator, the monitoring for micro services system provide data supporting.
Step S301, memory module 120 store real-time collected performance data to message queue with message mode.
Step S302, judgment module 130 handle the message in the message queue, judge the performance number in message According to whether beyond preset threshold.For example, judgment module 130 calls sufficient amount of thread, to the message in the message queue, The message such as the access error amount of access response time and micro services A including micro services A in preset time (such as 5 seconds) carry out Processing, it is compared with the preset threshold read from memory 11, judges whether the numerical value of above-mentioned performance data exceeds Preset threshold.
Step S303, when a certain performance data of some micro services exceeds preset threshold, the triggering report of alarm module 150 Alert, adjustment module 160 dynamically adjusts the amount of access to the micro services, until the performance data of the micro services is restored to normal model It encloses.For example, it is assumed that the preset threshold of the access response time of micro services A is 0.15 second, and it is collected in real time be stored in it is described The access response time of micro services A in message queue is 4.2 seconds, and judgment module 130 can be by the access response time of micro services A Judging result beyond preset threshold is sent to alarm module 150, and the triggering alarm of alarm module 150 adjusts module 160 first gradually Increase the concurrent amount of access (such as every five seconds increase preset quantity) to micro services A, when the concurrent amount of access reaches preset threshold When, the triggering alarm of alarm module 150, adjustment module 160 carries out flow degradation to the micro services, refuses subsequently received access Request (such as prompt to access request side's backward reference error), until the performance data of the micro services is restored to normal model It encloses.
It should be noted that the type of the performance data exception-triggered alarm of different micro services may be different, for example, in incognito It is engaged in that hair may be organized to the backstage manager of the first micro services system or the backstage manager of the first micro services system when A triggering alarm Alarm short message is sent, and backstage manager or the second micro services system of the second micro services system may be given when micro services B triggering alarm The backstage manager of system, which organizes, sends alarm mail.Different alarm types, which are triggered, above with respect to different abnormal conditions is only to provide part Example fails exhaustion.
Referring to shown in Fig. 4, for the process of the second preferred embodiment of the monitoring method of the extensive micro services system of the present invention Schematic diagram.In the present embodiment, the step S400-S403 and first of the monitoring method of the extensive micro services system is preferably real The step S300-S303 for applying example is similar, and difference is that the embodiment further includes step S404.The processor 12 of electronic device 1 The prison of extensive micro services system is also realized when executing the monitoring programme 10 of the extensive micro services system stored in memory 11 The following steps of prosecutor method:
Step S404:When the properties data of each micro services without departing from preset threshold when, computing module 140 distinguish Calculating present period properties data and history are every with the year-on-year difference of period properties data and with a upper period The ring of performance data is than difference, when the year-on-year difference or the ring exceed preset value than difference, the triggering report of alarm module 150 It is alert.
It referring to Figure 5, is the process of the third preferred embodiment of the monitoring method of the extensive micro services system of the present invention Schematic diagram.In the present embodiment, the step S500-S504 and second of the monitoring method of the extensive micro services system is preferably real The step S400-S404 for applying example is similar, and difference is that the embodiment further includes step S505.The processor 12 of electronic device 1 The prison of extensive micro services system is also realized when executing the monitoring programme 10 of the extensive micro services system stored in memory 11 The following steps of prosecutor method:
Step S505, memory module 120 by judgment module 130, computing module 140, alarm module 150, adjustment module 160, the data generated in 170 operational process of configuration module are stored into memory 11.The data of storage include judgment module 130 Whether the judging result of preset threshold is exceeded to performance data, whether alarm module 150 triggers the actual conditions of alarm, alarm mould Year-on-year difference, the adjustment module 160 for the day part properties data that the type of the triggering alarm of block 150, computing module 140 calculate The properties data for each micro services that the concrete operations of dynamic adjustment micro services amount of access and configuration module 170 are arranged Preset threshold etc..
In addition, the computer readable storage medium can be firmly the present invention also provides a kind of computer readable storage medium Disk, multimedia card, SD card, flash card, SMC, read-only memory (ROM), Erasable Programmable Read Only Memory EPROM (EPROM), just Take any one in formula aacompactadisk read onlyamemory (CD-ROM), USB storage etc. or several any combination.The meter It include the monitoring programme 10 of extensive micro services system, the monitoring journey of the extensive micro services system in calculation machine readable storage medium storing program for executing Following operation is realized when sequence 10 is executed by the processor 12:
Acquisition step:The properties data of each micro services are acquired in real time;
Storing step:Real-time collected performance data is stored with message mode to message queue;
Judgment step:Message in message queue is handled, it is default to judge whether the performance data in message exceeds Threshold value;And
Set-up procedure:When a certain performance data of some micro services exceeds preset threshold, triggering alarm, and dynamic adjusts To the amount of access of the micro services, until the performance data of the micro services is restored to normal range (NR).
The monitoring of the specific embodiment of the computer readable storage medium of the present invention and above-mentioned extensive micro services system Method and the specific embodiment of electronic device 1 are roughly the same, please refer to monitoring of the above-mentioned Fig. 2 about extensive micro services system The Program modual graph and Fig. 3, Fig. 4, Fig. 5 of 10 preferred embodiment of program are preferable about the monitoring method of extensive micro services system The flow chart of embodiment is discussed in detail, and details are not described herein.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, device, article or the method that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, device, article or method institute it is intrinsic Element.It in addition, the technical solution between each embodiment can be combined with each other, but must be with ordinary skill people Based on member can be realized, this technical solution will be understood that when the combination of technical solution appearance is conflicting or cannot achieve Combination be not present, also not the present invention claims protection scope within.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium, used including some instructions so that electronic device executes method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of monitoring method of extensive micro services system is applied to electronic device, which is characterized in that this method includes:
Acquisition step:The properties data of each micro services are acquired in real time;
Storing step:Real-time collected performance data is stored with message mode to message queue;
Judgment step:Message in message queue is handled, judges whether the performance data in message exceeds preset threshold; And
Set-up procedure:When a certain performance data of some micro services exceeds preset threshold, triggering alarm, and dynamic is adjusted to this The amount of access of micro services, until the performance data of the micro services is restored to normal range (NR).
2. the monitoring method of micro services system as described in claim 1 extensive, which is characterized in that this method further includes:
Calculate step:When the properties data of each micro services without departing from preset threshold when, it is each to calculate separately present period The ring ratio of item performance data and history with the year-on-year difference of period properties data and with upper period properties data Difference, when the year-on-year difference or the ring exceed preset value than difference, triggering alarm.
3. the monitoring method of micro services system as claimed in claim 2 extensive, which is characterized in that this method further includes:
The data generated in the judgment step, set-up procedure and calculating step are stored to storage system.
4. the monitoring method of extensive micro services system as claimed in claim 1 or 2, which is characterized in that the performance data Including total amount of access in the amount of requesting access to per second, access response time, preset time, the access error amount in preset time and Concurrent amount of access in preset time.
5. the monitoring method of extensive micro services system as claimed in claim 4, which is characterized in that moved in the set-up procedure State adjustment includes the following steps the amount of access of micro services:
It is stepped up the concurrent amount of access to triggering alarm micro services;
When the concurrent amount of access reaches preset threshold, triggering alarm carries out flow degradation to the micro services, refuses receipt of subsequent The access request arrived.
6. a kind of electronic device, including memory and processor, which is characterized in that include extensive micro services in the memory The monitoring programme of the monitoring programme of system, the extensive micro services system realizes following steps when being executed by the processor:
Acquisition step:The properties data of each micro services are acquired in real time;
Storing step:Real-time collected performance data is stored with message mode to message queue;
Judgment step:Message in message queue is handled, judges whether the performance data in message exceeds preset threshold; And
Set-up procedure:When a certain performance data of some micro services exceeds preset threshold, triggering alarm, and dynamic is adjusted to this The amount of access of micro services, until the performance data of the micro services is restored to normal range (NR).
7. electronic device as claimed in claim 6, which is characterized in that when each micro services properties data without departing from When preset threshold, calculate separately present period properties data and history with the year-on-year difference of period properties data and With the rings of upper period properties data than difference, when the year-on-year difference or the ring exceed preset value than difference, touching Hair alarm.
8. electronic device as claimed in claims 6 or 7, which is characterized in that the performance data include the amount of requesting access to per second, The concurrently visit in the access error amount and preset time in total amount of access, preset time in access response time, preset time The amount of asking.
9. electronic device as claimed in claim 8, which is characterized in that dynamically adjust the visit to micro services in the set-up procedure The amount of asking includes the following steps:
It is stepped up the concurrent amount of access to triggering alarm micro services;
When the concurrent amount of access reaches preset threshold, triggering alarm carries out flow degradation to the micro services, refuses receipt of subsequent The access request arrived.
10. a kind of computer readable storage medium, which is characterized in that include extensive micro- in the computer readable storage medium Such as claim 1 is realized when the monitoring programme of the monitoring programme of service system, the extensive micro services system is executed by processor To described in any one of 5 the step of the monitoring method of extensive micro services system.
CN201810547288.2A 2018-05-31 2018-05-31 Monitoring method, device and storage medium of large-scale micro-service system Active CN108845910B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810547288.2A CN108845910B (en) 2018-05-31 2018-05-31 Monitoring method, device and storage medium of large-scale micro-service system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810547288.2A CN108845910B (en) 2018-05-31 2018-05-31 Monitoring method, device and storage medium of large-scale micro-service system

Publications (2)

Publication Number Publication Date
CN108845910A true CN108845910A (en) 2018-11-20
CN108845910B CN108845910B (en) 2024-02-06

Family

ID=64210119

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810547288.2A Active CN108845910B (en) 2018-05-31 2018-05-31 Monitoring method, device and storage medium of large-scale micro-service system

Country Status (1)

Country Link
CN (1) CN108845910B (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109739727A (en) * 2019-01-03 2019-05-10 优信拍(北京)信息科技有限公司 Service monitoring method and device in micro services framework
CN109831356A (en) * 2019-01-29 2019-05-31 网联清算有限公司 Data processing method, device, system, computer readable storage medium
CN109873736A (en) * 2019-01-18 2019-06-11 苏宁易购集团股份有限公司 A kind of micro services monitoring method and system
CN110149364A (en) * 2019-04-15 2019-08-20 厦门市美亚柏科信息股份有限公司 Method, apparatus, the storage medium of micro services are provided based on data service platform
CN110365762A (en) * 2019-07-10 2019-10-22 腾讯科技(深圳)有限公司 Service processing method, device, equipment and storage medium
CN110535779A (en) * 2019-08-30 2019-12-03 百度在线网络技术(北京)有限公司 Flow down method and device
CN110535902A (en) * 2019-07-16 2019-12-03 平安普惠企业管理有限公司 The processing method and electronic device of monitoring intelligent are realized based on micro services
CN110727518A (en) * 2019-10-14 2020-01-24 北京奇艺世纪科技有限公司 Data processing method and related equipment
CN110852598A (en) * 2019-11-07 2020-02-28 腾讯科技(深圳)有限公司 Data processing method, device, equipment and storage medium
CN110990245A (en) * 2019-12-04 2020-04-10 北京明略软件系统有限公司 Micro-service operation state judgment method and device based on call chain data
CN111092778A (en) * 2019-12-31 2020-05-01 谷云科技(广州)有限责任公司 System and method for realizing API real-time early warning based on limited time sequence data queue
CN111290924A (en) * 2020-01-22 2020-06-16 北京字节跳动网络技术有限公司 Monitoring method and device and electronic equipment
CN111309442A (en) * 2020-02-19 2020-06-19 望海康信(北京)科技股份公司 Method, device, system, medium and equipment for adjusting number of micro-service containers
CN112350950A (en) * 2020-10-28 2021-02-09 北京中电普华信息技术有限公司 Request message control method and device
CN112596979A (en) * 2020-12-23 2021-04-02 树根互联技术有限公司 Micro-service access data acquisition and monitoring platform, method and electronic equipment
CN113419852A (en) * 2021-06-22 2021-09-21 康键信息技术(深圳)有限公司 Request response method, device, equipment and storage medium of microservice
CN114201231A (en) * 2021-11-29 2022-03-18 江苏金农股份有限公司 Distributed micro-service arranging system and method
CN114285642A (en) * 2021-12-24 2022-04-05 苏州浪潮智能科技有限公司 Control management method and device for host sensitive service and port in cloud platform
CN115474165A (en) * 2021-05-24 2022-12-13 中移动金融科技有限公司 Self-monitoring dynamic adjustment method and system for short message service

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130080502A1 (en) * 2011-09-23 2013-03-28 Microsoft Corporation User interface responsiveness monitor
CN107623610A (en) * 2017-09-22 2018-01-23 郑州云海信息技术有限公司 A kind of monitoring method of application apparatus, device and computer-readable storage medium
CN107871190A (en) * 2016-09-23 2018-04-03 阿里巴巴集团控股有限公司 A kind of operational indicator monitoring method and device
CN107992398A (en) * 2017-12-22 2018-05-04 宜人恒业科技发展(北京)有限公司 The monitoring method and monitoring system of a kind of operation system
CN108073465A (en) * 2017-12-29 2018-05-25 中国平安人寿保险股份有限公司 Dynamic current limiting method, Nginx servers, storage medium and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130080502A1 (en) * 2011-09-23 2013-03-28 Microsoft Corporation User interface responsiveness monitor
CN107871190A (en) * 2016-09-23 2018-04-03 阿里巴巴集团控股有限公司 A kind of operational indicator monitoring method and device
CN107623610A (en) * 2017-09-22 2018-01-23 郑州云海信息技术有限公司 A kind of monitoring method of application apparatus, device and computer-readable storage medium
CN107992398A (en) * 2017-12-22 2018-05-04 宜人恒业科技发展(北京)有限公司 The monitoring method and monitoring system of a kind of operation system
CN108073465A (en) * 2017-12-29 2018-05-25 中国平安人寿保险股份有限公司 Dynamic current limiting method, Nginx servers, storage medium and device

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109739727A (en) * 2019-01-03 2019-05-10 优信拍(北京)信息科技有限公司 Service monitoring method and device in micro services framework
CN109739727B (en) * 2019-01-03 2022-07-01 优信拍(北京)信息科技有限公司 Service monitoring method and device in micro-service architecture
CN109873736A (en) * 2019-01-18 2019-06-11 苏宁易购集团股份有限公司 A kind of micro services monitoring method and system
CN109831356A (en) * 2019-01-29 2019-05-31 网联清算有限公司 Data processing method, device, system, computer readable storage medium
CN110149364A (en) * 2019-04-15 2019-08-20 厦门市美亚柏科信息股份有限公司 Method, apparatus, the storage medium of micro services are provided based on data service platform
CN110365762A (en) * 2019-07-10 2019-10-22 腾讯科技(深圳)有限公司 Service processing method, device, equipment and storage medium
CN110535902A (en) * 2019-07-16 2019-12-03 平安普惠企业管理有限公司 The processing method and electronic device of monitoring intelligent are realized based on micro services
WO2021008031A1 (en) * 2019-07-16 2021-01-21 平安普惠企业管理有限公司 Processing method for implementing monitoring intellectualization on the basis of micro-services, and electronic device
CN110535779A (en) * 2019-08-30 2019-12-03 百度在线网络技术(北京)有限公司 Flow down method and device
CN110535779B (en) * 2019-08-30 2020-09-11 百度在线网络技术(北京)有限公司 Traffic degradation method and device
CN110727518A (en) * 2019-10-14 2020-01-24 北京奇艺世纪科技有限公司 Data processing method and related equipment
CN110727518B (en) * 2019-10-14 2022-05-27 北京奇艺世纪科技有限公司 Data processing method and related equipment
CN110852598A (en) * 2019-11-07 2020-02-28 腾讯科技(深圳)有限公司 Data processing method, device, equipment and storage medium
CN110852598B (en) * 2019-11-07 2023-07-11 腾讯科技(深圳)有限公司 Data processing method, device, equipment and storage medium
CN110990245A (en) * 2019-12-04 2020-04-10 北京明略软件系统有限公司 Micro-service operation state judgment method and device based on call chain data
CN111092778A (en) * 2019-12-31 2020-05-01 谷云科技(广州)有限责任公司 System and method for realizing API real-time early warning based on limited time sequence data queue
CN111290924A (en) * 2020-01-22 2020-06-16 北京字节跳动网络技术有限公司 Monitoring method and device and electronic equipment
CN111309442A (en) * 2020-02-19 2020-06-19 望海康信(北京)科技股份公司 Method, device, system, medium and equipment for adjusting number of micro-service containers
CN112350950A (en) * 2020-10-28 2021-02-09 北京中电普华信息技术有限公司 Request message control method and device
CN112596979A (en) * 2020-12-23 2021-04-02 树根互联技术有限公司 Micro-service access data acquisition and monitoring platform, method and electronic equipment
CN115474165A (en) * 2021-05-24 2022-12-13 中移动金融科技有限公司 Self-monitoring dynamic adjustment method and system for short message service
CN113419852A (en) * 2021-06-22 2021-09-21 康键信息技术(深圳)有限公司 Request response method, device, equipment and storage medium of microservice
CN113419852B (en) * 2021-06-22 2023-10-20 康键信息技术(深圳)有限公司 Method, device, equipment and storage medium for responding request of micro service
CN114201231A (en) * 2021-11-29 2022-03-18 江苏金农股份有限公司 Distributed micro-service arranging system and method
CN114285642A (en) * 2021-12-24 2022-04-05 苏州浪潮智能科技有限公司 Control management method and device for host sensitive service and port in cloud platform
CN114285642B (en) * 2021-12-24 2023-07-18 苏州浪潮智能科技有限公司 Control management method and device for host sensitive service and port in cloud platform

Also Published As

Publication number Publication date
CN108845910B (en) 2024-02-06

Similar Documents

Publication Publication Date Title
CN108845910A (en) Monitoring method, device and the storage medium of extensive micro services system
CN109726072B (en) WebLogic server monitoring and alarming method, device and system and computer storage medium
JP7237110B2 (en) FAILURE PREDICTION METHOD, DEVICE, ELECTRONIC EQUIPMENT, STORAGE MEDIUM, AND PROGRAM
US8661291B2 (en) Diagnosing a fault incident in a data center
CN110493080B (en) Block link point monitoring method and device, electronic equipment and storage medium
CN109752047A (en) Computer room alarm method, device and storage medium based on temperature and humidity
US20140379714A1 (en) Detecting hardware and software problems in remote systems
CN113704065A (en) Monitoring method, device, equipment and computer storage medium
US20140164933A1 (en) Smart user interface adaptation in on-demand business applications
CN103473643A (en) Product management data auditing method and system for BOSS system
CN112631887A (en) Abnormality detection method, abnormality detection device, electronic apparatus, and computer-readable storage medium
CN111754123A (en) Data monitoring method and device, computer equipment and storage medium
US9563485B2 (en) Business transaction context for call graph
CN111339466A (en) Interface management method and device, electronic equipment and readable storage medium
CN108039956A (en) Using monitoring method, system and computer-readable recording medium
CN113420935A (en) Fault location method, apparatus, device and medium
CN110879701B (en) Workflow visual configuration method, server, system and medium
CN111710403A (en) Medical equipment supervision method, equipment and readable storage medium
US11496376B2 (en) Method and apparatus for processing local hot spot, electronic device and storage medium
CN115454673A (en) Data collection method, device and medium for baseboard management controller
CN114780378A (en) Service interface-based system stability detection traceability method and related equipment
US10296967B1 (en) System, method, and computer program for aggregating fallouts in an ordering system
CN112131077A (en) Fault node positioning method and device and database cluster system
CN113656207B (en) Fault processing method, device, electronic equipment and medium
CN110554942A (en) method and device for monitoring code execution

Legal Events

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