CN108920327A - A kind of cloud computing alarm method and device - Google Patents
A kind of cloud computing alarm method and device Download PDFInfo
- Publication number
- CN108920327A CN108920327A CN201810681127.2A CN201810681127A CN108920327A CN 108920327 A CN108920327 A CN 108920327A CN 201810681127 A CN201810681127 A CN 201810681127A CN 108920327 A CN108920327 A CN 108920327A
- Authority
- CN
- China
- Prior art keywords
- resources
- type
- alarm
- item
- resource status
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring 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
Abstract
The invention discloses a kind of cloud computing alarm method, this method includes:Periodically acquire the alarm item of one or more resources-type one or more monitored item, wherein described resources-type including mysql, oracle, host, virtual machine, the monitored item refers to pre-set monitor control index;For each resources-type, respectively according to the alarm item of the resources-type monitored item, the resources-type resource status is determined;After any one resources-type resource status meets predetermined condition, alarm is issued.Invention additionally discloses cloud computing alarm devices.Method and apparatus provided by the invention can effectively improve alarm efficiency.
Description
Technical field
The present invention relates to field of cloud computer technology, especially one of field of cloud computer technology cloud computing alarm method and dress
It sets.
Background technique
In cloud computing era, cloud computing cluster needs to monitor a large amount of software and hardware information and a large amount of monitored item.
When a failure generates alarm, other failure can be led in the form of reaction chain, so that countless alarms are generated,
To cover real failure.How alarm is clustered in real time, and improving alarm quality is that large-scale cloud computing cluster is to be solved
Problem.
Summary of the invention
The technical problem to be solved by the present invention is to propose a kind of cloud computing alarm method and device, alarm efficiency is improved.
In order to solve the above-mentioned technical problems, the present invention provides a kind of cloud computing alarm methods, including:
Periodically acquire the alarm item of one or more resources-type one or more monitored item, wherein described resources-type
Including mysql, oracle, host, virtual machine, the monitored item refers to pre-set monitor control index;
For each resources-type, respectively according to the alarm item of the resources-type monitored item, the resources-type resource status is determined;
After any one resources-type resource status meets predetermined condition, alarm is issued.
Further, the above method also has following features:
The alarm item for periodically acquiring one or more resources-type one or more monitored item includes:
After reaching preset monitoring timed length, one or more resources-type one or more monitored item are obtained
Item is alerted, and the alarm item of one or more of resources-type one or more monitored item is stored to database.
Further, the above method also has following features:
It is described alarm item state include:Severe conditions, moderate state and normal condition;
The determination resources-type resource status includes:
If there are severe conditions, the resources-type resource status at least one alarm item in resources-type each alarm item
It is serious;If severe conditions are not present in resources-type each alarm item, but there are moderate states, then the resources-type resource status
For moderate;If severe conditions and moderate state, the resources-type resource status is not present in resources-type each alarm item
It is normal.
Further, the above method also has following features:
The alarm item according to the resources-type monitored item further includes before determining the resources-type resource status:
For each resources-type, the announcement for the monitored item that the alarm item and last time for being respectively compared the monitored item of this storage store
Alert item;When the alarm item of the monitored item changes, to the resources-type execution according to the alarm of the resources-type monitored item
, determine that the operation of the resources-type resource status executes.
Further, the above method also has following features:
After any one resources-type resource status meets predetermined condition, alarm is issued, including:
For each resources-type, it is respectively compared this resources-type resource status and last resource status, if the money
The resource status of source class changes, then issues alarm.
To solve the above-mentioned problems, the present invention also provides a kind of cloud computing alarm devices, including:Memory and processing
Device.
The memory, for saving the program for being used for cloud computing alarm;
The processor executes the program for cloud computing alarm for reading, performs the following operations:
Periodically acquire the alarm item of one or more resources-type one or more monitored item, wherein described resources-type
Including mysql, oracle, host, virtual machine, the monitored item refers to pre-set monitor control index;
For each resources-type, respectively according to the alarm item of the resources-type monitored item, the resources-type resource status is determined;
After any one resources-type resource status meets predetermined condition, alarm is issued.
Further, above-mentioned apparatus also has following features:
The processor reads and executes the program for cloud computing alarm, also performs the following operations:
The alarm item for periodically acquiring one or more resources-type one or more monitored item includes:
After reaching preset monitoring timed length, one or more resources-type one or more monitored item are obtained
Item is alerted, and the alarm item of one or more of resources-type one or more monitored item is stored to database.
Further, above-mentioned apparatus also has following features:
It is described alarm item state include:Severe conditions, moderate state and normal condition;
The processor reads and executes the program for cloud computing alarm, also performs the following operations:
The determination resources-type resource status includes:
If there are severe conditions, the resources-type resource status at least one alarm item in resources-type each alarm item
It is serious;If severe conditions are not present in resources-type each alarm item, but there are moderate states, then the resources-type resource status
For moderate;If severe conditions and moderate state, the resources-type resource status is not present in resources-type each alarm item
It is normal.
Further, above-mentioned apparatus also has following features:
The processor reads and executes the program for cloud computing alarm, also performs the following operations:
The alarm item according to the resources-type monitored item further includes before determining the resources-type resource status:
For each resources-type, the announcement for the monitored item that the alarm item and last time for being respectively compared the monitored item of this storage store
Alert item;When the alarm item of the monitored item changes, to the resources-type execution according to the alarm of the resources-type monitored item
, determine that the operation of the resources-type resource status executes.
Further, above-mentioned apparatus also has following features:
The processor reads and executes the program for cloud computing alarm, also performs the following operations:
After any one resources-type resource status meets predetermined condition, alarm is issued, including:
For each resources-type, it is respectively compared this resources-type resource status and last resource status, if the money
The resource status of source class changes, then issues alarm.
To sum up, the present invention provides a kind of cloud computing alarm method and device, improves alarm efficiency.
Detailed description of the invention
Fig. 1 is the flow chart of the cloud computing alarm method of the embodiment of the present invention.
Fig. 2 is the embodiment of the present invention using exemplary flow chart.
Fig. 3 is the schematic diagram of the cloud computing alarm device of the embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention
Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application
Feature can mutual any combination.
Fig. 1 is the flow chart of the cloud computing alarm method of the embodiment of the present invention, is included the steps that following:
S10, the alarm item for periodically acquiring one or more resources-type one or more monitored item.
Wherein, described resources-type including mysql, oracle, host, virtual machine, the monitored item refers to pre-set
Monitor control index.
S02, for each resources-type, respectively according to the alarm item of the resources-type monitored item, determine the resources-type resource
State.
S03, after any one resources-type resource status meets predetermined condition, issue alarm.
Optionally, above-mentioned steps further include:
It is described alarm item state include:Severe conditions, moderate state and normal condition;
The determination resources-type resource status includes:
If there are severe conditions, the resources-type resource status at least one alarm item in resources-type each alarm item
It is serious;If severe conditions are not present in resources-type each alarm item, but there are moderate states, then the resources-type resource status
For moderate;If severe conditions and moderate state, the resources-type resource status is not present in resources-type each alarm item
It is normal.
Optionally, the alarm item according to the resources-type monitored item, is also wrapped before determining the resources-type resource status
It includes:
For each resources-type, the announcement for the monitored item that the alarm item and last time for being respectively compared the monitored item of this storage store
Alert item;When the alarm item of the monitored item changes, to the resources-type execution according to the alarm of the resources-type monitored item
, determine that the operation of the resources-type resource status executes.
Optionally, after any one resources-type resource status meets predetermined condition, alarm is issued, including:
For each resources-type, it is respectively compared this resources-type resource status and last resource status, if the money
The resource status of source class changes, then issues alarm.
By the way that several original alarms are polymerized to resources-type alarm, realize and several original alarms are aggregated into super announcement
It is alert, and the confidence level of super alarm, urgency level are assessed, improve alarm efficiency and quality.
Fig. 2 is the embodiment of the present invention using exemplary flow chart, including below step:
Step 201:Monitored item dimension resource is obtained after resource major class table, resource group table are associated with resource rule list,
And it is synchronized to memory database (such as redis).Wherein, for example resource items are host 1 (i.e. above resources-type), prison
Controlling item dimension is, for example,:Host 1 includes CPU usage (monitored item i.e. above);Memory usage (monitoring i.e. above
);Network interface card speed (monitored item i.e. above) etc..
Resource major class table, resource group table and resource rule list are initialized when deployment.
Resource major class include such as database, service, open source cloud management platform openstack, resource group refer to by
Certain resource type for being classified again of one kind in resource major class, for example, database may include mysql, oracle,
Postgresql etc..As shown in table 1, resource major class table includes resource major class mark ID, the big class name of resource etc..As shown in table 2,
Resource group table includes resource group mark ID, resource major class ID, the small class name of resource etc..
As shown in table 3, resource rule list includes resource major class ID, resource group ID, table data store, resource key etc..Its
The title of the table of monitoring data is stored in middle table data store, corresponds to the table name in database (such as infludb).Resource
Key indicates which field can uniquely confirm a resource in such as infludb.Above-mentioned monitoring data is acquired by monitoring programme
It arrives, including host name, cpu busy percentage, cpu load, cpu system utilization rate, CPU subscriber usage etc..
3 resource rule list of table
Resource finds program's automation run automatically, is found according to monitoring data, resource size class table and resource rule list new
The new resources found are inserted into resource table by resource.Resource table is resource group example table.If resource group is mysql, money
The example of source group is mysql_1 and mysql_2.
Step 202:For the resource items (i.e. above resources-type) in monitored item dimension resource, pass through monitoring software pair
The monitoring of monitored item obtains the alarm item of certain resource items, memory database is written in alarm item information, when the alarm of the resource items
When item information changes, then step 203 is jumped to, otherwise, jumps to step 204.
Step 203:Calculate the resource status of the resource items.
Wherein, the resource status for calculating the resource items includes:Resource alarm is determined according to alarm item severity, if the money
There are severe conditions for the alarm item of source item, then resource status is serious, if severe conditions are not present in the alarm item of the resource items, but
There are moderate states, then resource status is moderate, are if serious and moderate state, resource is not present in the alarm item of the resource items
Normally.
Step 204:Terminate.
Step 205:If the resource status of the resource items changes compared with laststate, step 206 is jumped to.It is no
Then, step 204 is jumped to.
For example, resource status is from moderate to serious, or by moderate notice is added in warning information and sends team to normal etc.
Column notify the notice in transmit queue that can be timed scanning and send.
Step 206:Send notice.
Alarm notification is added to notice transmit queue, periodic scanning simultaneously sends the notice transmit queue.
Fig. 3 is the schematic diagram of the cloud computing alarm device of the embodiment of the present invention.The inventive system comprises memories and place
Manage device;
The memory, for saving the program for being used for cloud computing alarm;
The processor executes the program for cloud computing alarm for reading, performs the following operations:
Periodically acquire the alarm item of one or more resources-type one or more monitored item, wherein described resources-type
Including mysql, oracle, host, virtual machine, the monitored item refers to pre-set monitor control index;
For each resources-type, respectively according to the alarm item of the resources-type monitored item, the resources-type resource status is determined;
After any one resources-type resource status meets predetermined condition, alarm is issued.
Wherein, the alarm item for periodically acquiring one or more resources-type one or more monitored item includes:
After reaching preset monitoring timed length, one or more resources-type one or more monitored item are obtained
Item is alerted, and the alarm item of one or more of resources-type one or more monitored item is stored to database.
It is described alarm item state include:Severe conditions, moderate state and normal condition;
The processor reads and executes the program for cloud computing alarm, also performs the following operations:
The determination resources-type resource status includes:
If there are severe conditions, the resources-type resource status at least one alarm item in resources-type each alarm item
It is serious;If severe conditions are not present in resources-type each alarm item, but there are moderate states, then the resources-type resource status
For moderate;If severe conditions and moderate state, the resources-type resource status is not present in resources-type each alarm item
It is normal.
The alarm item according to the resources-type monitored item further includes before determining the resources-type resource status:
For each resources-type, the announcement for the monitored item that the alarm item and last time for being respectively compared the monitored item of this storage store
Alert item;When the alarm item of the monitored item changes, to the resources-type execution according to the alarm of the resources-type monitored item
, determine that the operation of the resources-type resource status executes.
After any one resources-type resource status meets predetermined condition, alarm is issued, including:
For each resources-type, it is respectively compared this resources-type resource status and last resource status, if the money
The resource status of source class changes, then issues alarm.
Those of ordinary skill in the art will appreciate that all or part of the steps in the above method can be instructed by program
Related hardware is completed, and described program can store in computer readable storage medium, such as read-only memory, disk or CD
Deng.Optionally, one or more integrated circuits can be used also to realize in all or part of the steps of above-described embodiment.Accordingly
Ground, each module/unit in above-described embodiment can take the form of hardware realization, can also use the shape of software function module
Formula is realized.The present invention is not limited to the combinations of the hardware and software of any particular form.
The above is only a preferred embodiment of the present invention, and certainly, the invention may also have other embodiments, without departing substantially from this
In the case where spirit and its essence, those skilled in the art make various corresponding changes in accordance with the present invention
And deformation, but these corresponding changes and modifications all should fall within the scope of protection of the appended claims of the present invention.
Claims (10)
1. a kind of cloud computing alarm method, including:
Periodically acquire the alarm item of one or more resources-type one or more monitored item, wherein described resources-type to include
Mysql, oracle, host, virtual machine, the monitored item refer to pre-set monitor control index;
For each resources-type, respectively according to the alarm item of the resources-type monitored item, the resources-type resource status is determined;
After any one resources-type resource status meets predetermined condition, alarm is issued.
2. the method as described in claim 1, which is characterized in that it is described periodically acquire one or more resources-type one or
The alarm item of multiple monitored item includes:
After reaching preset monitoring timed length, the alarm of one or more resources-type one or more monitored item is obtained
, and the alarm item of one or more of resources-type one or more monitored item is stored to database.
3. method according to claim 2, which is characterized in that it is described alarm item state include:Severe conditions, moderate state
And normal condition;
The determination resources-type resource status includes:
If there are severe conditions at least one alarm item in resources-type each alarm item, which is tight
Weight;If severe conditions are not present in resources-type each alarm item, but there are moderate states, then during the resources-type resource status is
Degree;If severe conditions and moderate state is not present in resources-type each alarm item, which is positive
Often.
4. method as claimed in claim 3, which is characterized in that the alarm item according to the resources-type monitored item determines
Further include before the resources-type resource status:
For each resources-type, the alarm for the monitored item that the alarm item and last time for being respectively compared the monitored item of this storage store
?;When the alarm item of the monitored item changes, to the resources-type execution according to the alarm item of the resources-type monitored item,
Determine that the operation of the resources-type resource status executes.
5. the method as described in claim 1, which is characterized in that when any one resources-type resource status meets predetermined condition
Afterwards, alarm is issued, including:
For each resources-type, it is respectively compared this resources-type resource status and last resource status, if this is resources-type
Resource status change, then issue alarm.
6. a kind of cloud computing alarm device, including:Memory and processor;It is characterized in that:
The memory, for saving the program for being used for cloud computing alarm;
The processor executes the program for cloud computing alarm for reading, performs the following operations:
Periodically acquire the alarm item of one or more resources-type one or more monitored item, wherein described resources-type to include
Mysql, oracle, host, virtual machine, the monitored item refer to pre-set monitor control index;
For each resources-type, respectively according to the alarm item of the resources-type monitored item, the resources-type resource status is determined;
After any one resources-type resource status meets predetermined condition, alarm is issued.
7. device as claimed in claim 6, which is characterized in that the processor reads and alerts described in executing for cloud computing
Program, also perform the following operations:
The alarm item for periodically acquiring one or more resources-type one or more monitored item includes:
After reaching preset monitoring timed length, the alarm of one or more resources-type one or more monitored item is obtained
, and the alarm item of one or more of resources-type one or more monitored item is stored to database.
8. device as claimed in claim 7, which is characterized in that
It is described alarm item state include:Severe conditions, moderate state and normal condition;
The processor reads and executes the program for cloud computing alarm, also performs the following operations:
The determination resources-type resource status includes:
If there are severe conditions at least one alarm item in resources-type each alarm item, which is tight
Weight;If severe conditions are not present in resources-type each alarm item, but there are moderate states, then during the resources-type resource status is
Degree;If severe conditions and moderate state is not present in resources-type each alarm item, which is positive
Often.
9. device as claimed in claim 8, which is characterized in that the processor reads and alerts described in executing for cloud computing
Program, also perform the following operations:
The alarm item according to the resources-type monitored item further includes before determining the resources-type resource status:
For each resources-type, the alarm for the monitored item that the alarm item and last time for being respectively compared the monitored item of this storage store
?;When the alarm item of the monitored item changes, to the resources-type execution according to the alarm item of the resources-type monitored item,
Determine that the operation of the resources-type resource status executes.
10. device as claimed in claim 6, which is characterized in that the processor reads and alerts described in executing for cloud computing
Program, also perform the following operations:
After any one resources-type resource status meets predetermined condition, alarm is issued, including:
For each resources-type, it is respectively compared this resources-type resource status and last resource status, if this is resources-type
Resource status change, then issue alarm.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810681127.2A CN108920327A (en) | 2018-06-27 | 2018-06-27 | A kind of cloud computing alarm method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810681127.2A CN108920327A (en) | 2018-06-27 | 2018-06-27 | A kind of cloud computing alarm method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108920327A true CN108920327A (en) | 2018-11-30 |
Family
ID=64424061
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810681127.2A Pending CN108920327A (en) | 2018-06-27 | 2018-06-27 | A kind of cloud computing alarm method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108920327A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111444067A (en) * | 2020-05-18 | 2020-07-24 | 湖南御家科技有限公司 | Rule engine-based configuration system monitoring method, device and equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104410512A (en) * | 2014-10-28 | 2015-03-11 | 国云科技股份有限公司 | Resource monitoring alarm framework suitable for cloud computation and method thereof |
CN104410535A (en) * | 2014-12-23 | 2015-03-11 | 浪潮电子信息产业股份有限公司 | Intelligent cloud resource monitoring and warning method |
CN104657250A (en) * | 2014-12-16 | 2015-05-27 | 无锡华云数据技术服务有限公司 | Monitoring method for monitoring performance of cloud host |
CN105208098A (en) * | 2015-08-24 | 2015-12-30 | 用友网络科技股份有限公司 | Cloud monitoring system realization device and method |
CN105376100A (en) * | 2015-12-09 | 2016-03-02 | 国云科技股份有限公司 | Distributed alarm rule assessment method suitable for cloud platform resource monitoring |
US20160350173A1 (en) * | 2015-05-28 | 2016-12-01 | Oracle International Corporation | Automatic anomaly detection and resolution system |
CN106301919A (en) * | 2016-08-17 | 2017-01-04 | 浪潮电子信息产业股份有限公司 | The warning system of a kind of privatization cloud platform and its implementation |
-
2018
- 2018-06-27 CN CN201810681127.2A patent/CN108920327A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104410512A (en) * | 2014-10-28 | 2015-03-11 | 国云科技股份有限公司 | Resource monitoring alarm framework suitable for cloud computation and method thereof |
CN104657250A (en) * | 2014-12-16 | 2015-05-27 | 无锡华云数据技术服务有限公司 | Monitoring method for monitoring performance of cloud host |
CN104410535A (en) * | 2014-12-23 | 2015-03-11 | 浪潮电子信息产业股份有限公司 | Intelligent cloud resource monitoring and warning method |
US20160350173A1 (en) * | 2015-05-28 | 2016-12-01 | Oracle International Corporation | Automatic anomaly detection and resolution system |
CN105208098A (en) * | 2015-08-24 | 2015-12-30 | 用友网络科技股份有限公司 | Cloud monitoring system realization device and method |
CN105376100A (en) * | 2015-12-09 | 2016-03-02 | 国云科技股份有限公司 | Distributed alarm rule assessment method suitable for cloud platform resource monitoring |
CN106301919A (en) * | 2016-08-17 | 2017-01-04 | 浪潮电子信息产业股份有限公司 | The warning system of a kind of privatization cloud platform and its implementation |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111444067A (en) * | 2020-05-18 | 2020-07-24 | 湖南御家科技有限公司 | Rule engine-based configuration system monitoring method, device and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020087829A1 (en) | Data trend analysis method and system, computer device and readable storage medium | |
US10439937B2 (en) | Service addressing in distributed environment | |
CN110351150B (en) | Fault source determination method and device, electronic equipment and readable storage medium | |
CN112988398B (en) | Micro-service dynamic scaling and migration method and device | |
CN110740061B (en) | Fault early warning method and device and computer storage medium | |
CN110389843B (en) | Service scheduling method, device, equipment and readable storage medium | |
WO2020093637A1 (en) | Device state prediction method and system, computer apparatus and storage medium | |
EP3330855A1 (en) | Managing hardware resources | |
CN112380089A (en) | Data center monitoring and early warning method and system | |
CN115277566B (en) | Load balancing method and device for data access, computer equipment and medium | |
CN112559173A (en) | Resource adjusting method and device, electronic equipment and readable storage medium | |
CN110471769B (en) | Resource management method and device for virtual machine | |
CN116418653A (en) | Fault positioning method and device based on multi-index root cause positioning algorithm | |
CN113590285A (en) | Method, system and equipment for dynamically setting thread pool parameters | |
CN108920327A (en) | A kind of cloud computing alarm method and device | |
CN116089477B (en) | Distributed training method and system | |
CN112910733A (en) | Full link monitoring system and method based on big data | |
JP2023505783A (en) | GPU packet aggregation system | |
CN114327963A (en) | Anomaly detection method and device | |
CN115442262A (en) | Resource evaluation method and device, electronic equipment and storage medium | |
CN106156069B (en) | Log system and log recording method | |
CN112187543A (en) | Cloud platform event monitoring system and method and electronic equipment | |
CN110493071B (en) | Message system resource balancing device, method and equipment | |
CN114461407B (en) | Data processing method, data processing device, distribution server, data processing system, and storage medium | |
JP2012089109A (en) | Computer resource control system |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181130 |
|
RJ01 | Rejection of invention patent application after publication |