CN109634918A - A kind of search method of abnormal document, system, device and readable storage medium storing program for executing - Google Patents

A kind of search method of abnormal document, system, device and readable storage medium storing program for executing Download PDF

Info

Publication number
CN109634918A
CN109634918A CN201811544539.8A CN201811544539A CN109634918A CN 109634918 A CN109634918 A CN 109634918A CN 201811544539 A CN201811544539 A CN 201811544539A CN 109634918 A CN109634918 A CN 109634918A
Authority
CN
China
Prior art keywords
abnormal document
management node
main management
nodes
abnormal
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.)
Withdrawn
Application number
CN201811544539.8A
Other languages
Chinese (zh)
Inventor
魏坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811544539.8A priority Critical patent/CN109634918A/en
Publication of CN109634918A publication Critical patent/CN109634918A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This application discloses a kind of search methods of abnormal document, comprising: main management node is determined in all nodes of storage cluster;Judge whether to receive retrieval command;If so, obtaining the abnormal document of all nodes by main management node, and abnormal document is stored to predeterminated position.The application determines main management node first in all nodes of storage cluster, pass through main management node and other each node communications, obtain the abnormal document of all nodes, and all abnormal documents that will acquire are stored to predeterminated position, engineer can check the abnormal document of all nodes in storage cluster by main management node, it does not need manually to retrieve each node one by one, recall precision is high.Disclosed herein as well is a kind of searching system of abnormal document, device and readable storage medium storing program for executing, have above-mentioned beneficial effect.

Description

A kind of search method of abnormal document, system, device and readable storage medium storing program for executing
Technical field
This application involves storage cluster field, more particularly to a kind of search method of abnormal document, system, device and can Read storage medium.
Background technique
It include multiple node devices in storage cluster, the abnormal document storage that each node device generates in the process of running Under the fixation catalogue of each node device, when needing to analyze the operating status of storage cluster by abnormal document, engineer It must arrive under the fixation catalogue of each node device and be checked, complex steps, recall precision is low.
Therefore, how to provide a kind of scheme of solution above-mentioned technical problem is that those skilled in the art need to solve at present Problem.
Summary of the invention
The purpose of the application is to provide a kind of search method of abnormal document, can check storage by main management node The abnormal document of all nodes in cluster does not need manually to retrieve each node one by one, and recall precision is high;Another mesh of the application The searching system for being to provide a kind of abnormal document, device and readable storage medium storing program for executing.
In order to solve the above technical problems, this application provides a kind of search methods of abnormal document, comprising:
Main management node is determined in all nodes of storage cluster;
Judge whether to receive retrieval command;
If so, obtaining the abnormal document of all nodes by the main management node, and the abnormal document is deposited It stores up to predeterminated position.
Preferably, the process of the abnormal document that all nodes are obtained by the main management node specifically:
The abnormal document that Ansible software obtains all nodes is run by the main management node, wherein all It is mounted on the Ansible software in the node, includes the source generation of the Ansible software in the main management node Code.
Preferably, the process of the abnormal document that all nodes are obtained by the main management node specifically:
The abnormal document that SaltStack software obtains all nodes is run by the main management node, wherein institute Have and is mounted on the SaltStack software in the node, including the SaltStack software in the main management node Source code.
It is preferably, described to store the abnormal document to the process of predeterminated position specifically:
The abnormal document is stored to the predetermined directory of the main management node.
Preferably, the process of the abnormal document that all nodes are obtained by the main management node specifically:
The abnormal document of all nodes is obtained by predetermined period by the main management node.
Preferably, it is described the abnormal document is stored it is specific to the process under the predetermined directory of the main management node Are as follows:
Journal file is obtained according to the title of all abnormal documents, size and generation time;
The journal file is stored under the predetermined directory of the main management node.
Preferably, after under the predetermined directory that the journal file is stored in the main management node, the retrieval Method further include:
The journal file is deleted by preset rules.
In order to solve the above technical problems, present invention also provides a kind of searching systems of abnormal document, comprising:
Determining module, for determining main management node in all nodes of storage cluster;
Judgment module receives retrieval command for judging whether, if triggering retrieval module;
The retrieval module, for obtaining the abnormal document of all nodes by the main management node;
Memory module, for storing all abnormal documents to predeterminated position.
In order to solve the above technical problems, present invention also provides a kind of retrieval devices of abnormal document, comprising:
Memory, for storing computer program;
Processor is realized as described in any one above when for executing the computer program the step of search method.
In order to solve the above technical problems, present invention also provides a kind of readable storage medium storing program for executing, on the readable storage medium storing program for executing It is stored with computer program, realizing the search method as described in any one above when the computer program is executed by processor Step.
This application provides a kind of search methods of abnormal document, comprising: master is determined in all nodes of storage cluster Management node;Judge whether to receive retrieval command;If so, the abnormal document of all nodes is obtained by main management node, and Abnormal document is stored to predeterminated position.As it can be seen that in practical applications, using the scheme of the application, first in storage cluster Main management node is determined in all nodes, is communicated by main management node and other each nodes, is obtained the exception of all nodes File, and all abnormal documents storage that will acquire, to predeterminated position, engineer can be checked by main management node and be deposited The abnormal document of all nodes in accumulation does not need manually to retrieve each node one by one, and recall precision is high.The application also provides A kind of searching system of abnormal document, device and readable storage medium storing program for executing, have identical with above-mentioned search method beneficial effect.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to institute in the prior art and embodiment Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the application Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of step flow chart of the search method of abnormal document provided herein;
Fig. 2 is a kind of structural schematic diagram of the searching system of abnormal document provided herein.
Specific embodiment
The core of the application is to provide a kind of search method of abnormal document, can check storage by main management node The abnormal document of all nodes in cluster does not need manually to retrieve each node one by one, and recall precision is high;Another core of the application The heart is to provide searching system, device and the readable storage medium storing program for executing of a kind of abnormal document.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Fig. 1 is please referred to, Fig. 1 is a kind of step flow chart of the search method of abnormal document provided herein, comprising:
Step 1: main management node is determined in all nodes of storage cluster;
Specifically, Ansible software or SaltStack software are installed in all nodes of storage cluster, so that this is deposited All nodes can communicate with each other in accumulation, realize the automation O&M of each node.Then it is selected in storage cluster Any one node is as main management node, and the above-mentioned Ansible software of respective downloaded or SaltStack are soft in main management node The source code of part installs some python installation kits of Ansible software or SaltStack software using pip.
Specifically, Ansible and SaltStack are automation operation and maintenance tools, developed, and gathered based on Python Batch system configuration, batch program portion may be implemented in the advantages of numerous operation and maintenance tools (such as puppet, chef, func, fabric) The functions such as administration, batch operation order.
Step 2: judging whether to receive retrieval command, if so, entering step 3;
Step 3: obtaining the abnormal document of all nodes by main management node, and abnormal document is stored to default position It sets.
Specifically, due to being mounted on Ansible software or SaltStack software in all nodes, each node can phase Mutual communication therefore, can be by main management node by predetermined directory path, default abnormal document after receiving retrieval command Title retrieves the abnormal document of each node, can specifically be retrieved by way of fuzzy matching.This programme is supported more Path query, maximum can support 5, and path longitudinal degree maximum provides 3 layers of retrieval.In the abnormal document for retrieving all nodes Afterwards, all abnormal documents are stored to predeterminated position, so that engineer checks, the application can be retrieved by main management node The abnormal document of all nodes into storage cluster does not need manually to retrieve each node one by one, and recall precision is high.
This application provides a kind of search methods of abnormal document, comprising: master is determined in all nodes of storage cluster Management node;Judge whether to receive retrieval command;If so, the abnormal document of all nodes is obtained by main management node, and Abnormal document is stored to predeterminated position.As it can be seen that in practical applications, using the scheme of the application, first in storage cluster Main management node is determined in all nodes, is communicated by main management node and other each nodes, is obtained the exception of all nodes File, and all abnormal documents storage that will acquire, to predeterminated position, engineer can be checked by main management node and be deposited The abnormal document of all nodes in accumulation does not need manually to retrieve each node one by one, and recall precision is high.
On the basis of the above embodiments:
Embodiment as one preferred, the process for obtaining the abnormal document of all nodes by main management node are specific Are as follows:
The abnormal document that Ansible software obtains all nodes is run by main management node, wherein in all nodes Ansible software is installed, includes the source code of Ansible software in main management node.
Specifically, when node each in storage cluster has been respectively mounted Ansible software, after receiving retrieval command, Ansible software is run by predetermined directory path, default abnormal document title by main management node to retrieve each node Abnormal document.
Embodiment as one preferred, the process for obtaining the abnormal document of all nodes by main management node are specific Are as follows:
The abnormal document that SaltStack software obtains all nodes is run by main management node, wherein in all nodes It is mounted on SaltStack software, includes the source code of SaltStack software in main management node.
Specifically, receiving retrieval command when node each in storage cluster has been respectively mounted SaltStack software Afterwards, SaltStack software is run by predetermined directory path, default abnormal document title by main management node to retrieve each section The abnormal document of point.
Embodiment as one preferred, the process for obtaining the abnormal document of all nodes by main management node are specific Are as follows:
The abnormal document of all nodes is obtained by predetermined period by main management node.
Specifically, can according to need the file name of detection, path, input order is write based on above-mentioned two software Automatic test script control the main management node when receiving retrieval command and execute the automatic test script, To inquire abnormal document.Certainly, in order to further increase the degree of automation and recall precision, it is extremely literary poll inquiry can be defined The time scale (i.e. predetermined period) of part makes main management node execute automatic test script by predetermined period, each to retrieve The abnormal document of node.
Embodiment as one preferred stores abnormal document to the process of predeterminated position specifically:
Abnormal document is stored to the predetermined directory of main management node.
Embodiment as one preferred stores abnormal document specific to the process under the predetermined directory of main management node Are as follows:
Journal file is obtained according to the title of all abnormal documents, size and generation time;
Journal file is stored under the predetermined directory of main management node.
Embodiment as one preferred, after journal file being stored under the predetermined directory of main management node, the inspection Suo Fangfa further include:
Journal file is deleted by preset rules.
Specifically, can generate the time according to the title of the abnormal document got, size, be saved using journal file And export in real time, and delete journal file by preset rules, to guarantee that individual log file is not too large, memory pressure is reduced, Wherein, by preset rules delete journal file can specifically include by predetermined period delete journal file or according to memory size, Log file size deletes journal file.
Referring to figure 2., Fig. 2 is a kind of structural schematic diagram of the searching system of abnormal document provided herein, comprising:
Determining module 1, for determining main management node in all nodes of storage cluster;
Judgment module 2 receives retrieval command for judging whether, if triggering retrieval module 3;
Retrieval module 3, for obtaining the abnormal document of all nodes by main management node;
Memory module 4, for storing all abnormal documents to predeterminated position.
Embodiment as one preferred, retrieval module 3 are specifically used for:
The abnormal document that Ansible software obtains all nodes is run by main management node, wherein in all nodes Ansible software is installed, includes the source code of Ansible software in main management node.
Embodiment as one preferred, retrieval module 3 are specifically used for:
The abnormal document that SaltStack software obtains all nodes is run by main management node, wherein in all nodes It is mounted on SaltStack software, includes the source code of SaltStack software in main management node.
Embodiment as one preferred, memory module 4 are specifically used for:
Abnormal document is stored to the predetermined directory of main management node.
Embodiment as one preferred, retrieval module 3 are specifically used for:
The abnormal document of all nodes is obtained by predetermined period by main management node.
Embodiment as one preferred, memory module 4 include:
Log generation unit, for obtaining journal file according to the title of all abnormal documents, size and generation time;
Journal file is stored under the predetermined directory of main management node by storage unit.
Embodiment as one preferred, the searching system further include:
Removing module, for deleting journal file by preset rules.
A kind of searching system of abnormal document provided herein has identical with above-mentioned search method beneficial to effect Fruit.
Above-described embodiment, the application are please referred to for a kind of introduction of the searching system of abnormal document provided herein Details are not described herein.
Correspondingly, present invention also provides a kind of retrieval devices of abnormal document, comprising:
Memory, for storing computer program;
Processor is realized when for executing computer program such as the step of any one search method above.
A kind of retrieval device of abnormal document provided herein has identical with above-mentioned search method beneficial to effect Fruit.
Above-described embodiment, the application are please referred to for a kind of introduction of the retrieval device of abnormal document provided herein Details are not described herein.
Correspondingly, it is stored with computer program on readable storage medium storing program for executing present invention also provides a kind of readable storage medium storing program for executing, It realizes when computer program is executed by processor such as the step of any one search method above.
A kind of readable storage medium storing program for executing provided herein has beneficial effect identical with above-mentioned search method.
Above-described embodiment please referred to for a kind of introduction of readable storage medium storing program for executing provided herein, the application is herein not It repeats again.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is said referring to method part It is bright.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of search method of abnormal document characterized by comprising
Main management node is determined in all nodes of storage cluster;
Judge whether to receive retrieval command;
If so, obtain the abnormal document of all nodes by the main management node, and by the abnormal document store to Predeterminated position.
2. the search method of abnormal document according to claim 1, which is characterized in that described to pass through the main management node Obtain the process of the abnormal document of all nodes specifically:
The abnormal document that Ansible software obtains all nodes is run by the main management node, wherein all described It is mounted on the Ansible software in node, includes the source code of the Ansible software in the main management node.
3. the search method of abnormal document according to claim 1, which is characterized in that described to pass through the main management node Obtain the process of the abnormal document of all nodes specifically:
The abnormal document that SaltStack software obtains all nodes is run by the main management node, wherein Suo Yousuo It states and is mounted on the SaltStack software in node, include the source generation of the SaltStack software in the main management node Code.
4. the search method of abnormal document according to claim 1, which is characterized in that described to store the abnormal document To the process of predeterminated position specifically:
The abnormal document is stored to the predetermined directory of the main management node.
5. the search method of abnormal document according to claim 1, which is characterized in that described to pass through the main management node Obtain the process of the abnormal document of all nodes specifically:
The abnormal document of all nodes is obtained by predetermined period by the main management node.
6. the search method of abnormal document according to claim 4, which is characterized in that described to store the abnormal document Process to the predetermined directory of the main management node specifically:
Journal file is obtained according to the title of all abnormal documents, size and generation time;
The journal file is stored under the predetermined directory of the main management node.
7. the search method of abnormal document according to claim 6, which is characterized in that described to store the journal file After under the predetermined directory of the main management node, the search method further include:
The journal file is deleted by preset rules.
8. a kind of searching system of abnormal document characterized by comprising
Determining module, for determining main management node in all nodes of storage cluster;
Judgment module receives retrieval command for judging whether, if triggering retrieval module;
The retrieval module, for obtaining the abnormal document of all nodes by the main management node;
Memory module, for storing all abnormal documents to predeterminated position.
9. a kind of retrieval device of abnormal document characterized by comprising
Memory, for storing computer program;
Processor realizes the step of the search method as described in claim 1-7 any one when for executing the computer program Suddenly.
10. a kind of readable storage medium storing program for executing, which is characterized in that be stored with computer program, the meter on the readable storage medium storing program for executing It is realized when calculation machine program is executed by processor as described in claim 1-7 any one the step of search method.
CN201811544539.8A 2018-12-17 2018-12-17 A kind of search method of abnormal document, system, device and readable storage medium storing program for executing Withdrawn CN109634918A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811544539.8A CN109634918A (en) 2018-12-17 2018-12-17 A kind of search method of abnormal document, system, device and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811544539.8A CN109634918A (en) 2018-12-17 2018-12-17 A kind of search method of abnormal document, system, device and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN109634918A true CN109634918A (en) 2019-04-16

Family

ID=66074733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811544539.8A Withdrawn CN109634918A (en) 2018-12-17 2018-12-17 A kind of search method of abnormal document, system, device and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN109634918A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112988694A (en) * 2019-12-12 2021-06-18 北京车和家信息技术有限公司 Operation and maintenance method and device for batch management of network file systems by centralized management platform
WO2023050956A1 (en) * 2021-09-30 2023-04-06 International Business Machines Corporation Automatic selection of nodes on which to perform tasks

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112988694A (en) * 2019-12-12 2021-06-18 北京车和家信息技术有限公司 Operation and maintenance method and device for batch management of network file systems by centralized management platform
WO2023050956A1 (en) * 2021-09-30 2023-04-06 International Business Machines Corporation Automatic selection of nodes on which to perform tasks

Similar Documents

Publication Publication Date Title
CN107426023B (en) Cloud platform log collection and forwarding method, system, equipment and storage medium
US7480643B2 (en) System and method for migrating databases
CN111209011A (en) Cross-platform container cloud automatic deployment system
CN108881477B (en) Distributed file acquisition monitoring method
US10133618B2 (en) Diagnostic data set component
US8620926B2 (en) Using a hashing mechanism to select data entries in a directory for use with requested operations
CN104423960A (en) Continuous project integration method and continuous project integration system
US8024712B1 (en) Collecting application logs
CN107003935A (en) Optimize database duplicate removal
CN101681256A (en) It automation appliance imaging system and method
US10769104B2 (en) Block data storage system in an event historian
US10929100B2 (en) Mitigating causality discrepancies caused by stale versioning
CN104468274A (en) Cluster monitor and management method and system
CN109634918A (en) A kind of search method of abnormal document, system, device and readable storage medium storing program for executing
US10223205B2 (en) Disaster recovery data sync
US10152265B1 (en) Efficient repository migration and storage
CN104580428A (en) Data routing method, data management device and distributed storage system
CN116501700B (en) APP formatted file offline storage method, device, equipment and storage medium
CN113141269B (en) Data acquisition method, device and system
CN105426544A (en) Method and device for monitoring state of database
CN111488117B (en) Method, electronic device, and computer-readable medium for managing metadata
KR101704145B1 (en) Controller Management Station for Supporting Heterogeneous Database and Controlling System Including The Controller Management Station
CN111124542A (en) Configuration information management system
CN107894942B (en) Method and device for monitoring data table access amount
CN115629784A (en) Method, system, equipment and computer readable storage medium for updating machine file

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20190416