CN105302691B - A kind of metadata method for monitoring performance and system - Google Patents

A kind of metadata method for monitoring performance and system Download PDF

Info

Publication number
CN105302691B
CN105302691B CN201510684751.4A CN201510684751A CN105302691B CN 105302691 B CN105302691 B CN 105302691B CN 201510684751 A CN201510684751 A CN 201510684751A CN 105302691 B CN105302691 B CN 105302691B
Authority
CN
China
Prior art keywords
numerical value
metadata
performance
shared drive
performance monitoring
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.)
Active
Application number
CN201510684751.4A
Other languages
Chinese (zh)
Other versions
CN105302691A (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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201510684751.4A priority Critical patent/CN105302691B/en
Publication of CN105302691A publication Critical patent/CN105302691A/en
Application granted granted Critical
Publication of CN105302691B publication Critical patent/CN105302691B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

This application provides a kind of metadata method for monitoring performance, by the numerical value write-in shared drive in target metadata;Obtained and the corresponding numerical value of performance monitoring from the shared drive;The numerical value is judged whether in default value threshold range, if it is not, then carrying out Performance tuning.The application uses shared drive, to replace the log analysis method and the drivability analysis method that used originally.Metadata correlated performance statistics is obtained by using shared drive, so reduces the influence to metadata performance, debugging is more convenient flexibly, improves the accuracy to metadata performance monitoring.

Description

A kind of metadata method for monitoring performance and system
Technical field
This application involves distributed file system field, more particularly to a kind of metadata method for monitoring performance and system.
Background technology
With the development of technology, people increasingly pay close attention to metadata performance monitoring.
It is daily record tuning method and piling tuning method using more metadata Performance tuning methods now.Daily record tune Excellent method, will first identify the function in critical path, then increase daily record in Key Functions again, to obtain the tuning of needs Information, such as function call number, function call time, variable uses number etc. these, but usage log debug, face Problems, such as choose the position of addition daily record, add the problems such as bar number of daily record excessively waits, be not to handle very well; Pile-driving method is then to increase some Hook Functions or call back function inside function, and the sentence for influencing performance is captured, So also compare influence performance, cause inaccurate to metadata performance monitoring.
Therefore, the performance monitoring of metadata how is effectively carried out, the accuracy for improving performance monitoring is art technology The current technical issues that need to address of personnel.
The content of the invention
Technical problems to be solved in this application are to provide a kind of metadata method for monitoring performance and system, solve existing Daily record tuning method and piling tuning method cause the problem of inaccurate to metadata performance monitoring in technology.
Its concrete scheme is as follows:
A kind of metadata method for monitoring performance, this method include:
By in the numerical value write-in shared drive in target metadata;
Obtained and the corresponding numerical value of performance monitoring from the shared drive;
The numerical value is judged whether in default value threshold range, if it is not, then carrying out Performance tuning.
Above-mentioned method, it is preferred that in the numerical value write-in shared drive by target metadata, including:
Obtain the request instruction that performance monitoring is carried out to the target metadata;
It will be written in the target metadata with the corresponding numerical value of performance monitoring request instruction in shared drive.
Above-mentioned method, it is preferred that described to be obtained from the shared drive and the corresponding numerical value of performance monitoring, bag Include:
The basic numerical value of metadata is collected from the shared drive;
Calculation process is carried out to the basic numerical value of the acquisition, is obtained and the corresponding numerical value of performance monitoring.
A kind of metadata performance monitoring system, the system include:
Writing unit, for by the numerical value write-in shared drive in target metadata;
Acquiring unit, for being obtained and the corresponding numerical value of performance monitoring from the shared drive;
Judging unit, for judging the numerical value whether in default value threshold range, if it is not, then carrying out performance tune It is excellent.
Above-mentioned system, it is preferred that said write unit, including:
Receiving unit, carries out the target metadata for receiving the request instruction of performance monitoring;
Subelement is write, for will be write in the target metadata with the corresponding numerical value of performance monitoring request instruction Enter into shared drive.
Above-mentioned system, it is preferred that the acquiring unit includes:
Unit is collected, for collecting the basic numerical value of metadata from the shared drive;
Operation processing unit, for carrying out calculation process to the basic numerical value of the acquisition, obtains opposite with performance monitoring The numerical value answered.
In a kind of metadata method for monitoring performance that the application provides, the numerical value in target metadata is write into shared drive In;Obtained and the corresponding numerical value of performance monitoring from the shared drive;Judge the numerical value whether in default value threshold value In the range of, if it is not, then carrying out Performance tuning.The application uses shared drive, come replace the log analysis method that used originally and Drivability analysis method.Metadata correlated performance statistics is obtained by using shared drive, is so reduced to metadata The influence of performance, debugging is more convenient flexibly, improves the accuracy to metadata performance monitoring.
Brief description of the drawings
In order to illustrate more clearly of the technical solution in the embodiment of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present application, for For those of ordinary skill in the art, without having to pay creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is a kind of flow chart of metadata method for monitoring performance embodiment of the application;
Fig. 2 is a kind of schematic diagram of metadata performance monitoring system embodiment of the application.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, the technical solution in the embodiment of the present application is carried out clear, complete Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, those of ordinary skill in the art are obtained every other without making creative work Embodiment, shall fall in the protection scope of this application.
With reference to figure 1, show a kind of flow chart of metadata method for monitoring performance embodiment of the application, can include following Step:
Step S101:By in the numerical value write-in shared drive in target metadata.
In distributed file system, it is often necessary to analysis monitoring is carried out to metadata, passes through shared drive in the application Method obtain metadata correlated performance statistics, so reduce the influence to metadata performance, debugging is more convenient Flexibly.
In the application, when obtaining the request instruction to target metadata progress performance monitoring, by the target element It is saved in data with the corresponding numerical value of performance monitoring request instruction in shared drive.
Step S102:Obtained and the corresponding numerical value of performance monitoring from the shared drive.
The numerical value for being directly used in performance monitoring can be directly collected from the numerical value being stored in shared drive, can also The numerical value for performance monitoring was indirectly collected from the numerical value being stored in shared drive.
The numerical value for performance monitoring was indirectly collected from the numerical value being stored in shared drive, including:
The basic numerical value that can be calculated with the corresponding numerical value of performance monitoring is obtained from the shared drive.
Calculation process is carried out to the basic numerical value of the acquisition, is obtained and the corresponding numerical value of performance monitoring.
Step S103:The numerical value is judged whether in default value threshold range, if it is not, then performing step S104:Into Row Performance tuning.
In the application, specific Performance tuning instrument can be used to carry out Performance tuning.
In a kind of metadata method for monitoring performance that the application provides, using shared drive, to replace the day used originally Will analysis method and drivability analysis method.Metadata correlated performance statistics is obtained by using shared drive, is so subtracted The small influence to metadata performance, debug it is more convenient flexibly, improve the accuracy to metadata performance monitoring.
It is corresponding with the method that a kind of metadata method for monitoring performance embodiment of above-mentioned the application is provided, referring to Fig. 2, sheet Application additionally provides a kind of metadata performance monitoring system embodiment, and in the present embodiment, which includes:
Writing unit 201, for by the numerical value write-in shared drive in target metadata.
Acquiring unit 202, for being obtained and the corresponding numerical value of performance monitoring from the shared drive.
Judging unit 203, for judging the numerical value whether in default value threshold range, if it is not, then carrying out performance Tuning.
Said write unit, including:
Receiving unit, carries out the target metadata for receiving the request instruction of performance monitoring.
Subelement is write, for will be write in the target metadata with the corresponding numerical value of performance monitoring request instruction Enter into shared drive.
The acquiring unit includes:
Unit is collected, for collecting the numerical value of metadata from the shared drive.
Operation processing unit, for carrying out calculation process to the numerical value of the acquisition, obtains corresponding with performance monitoring Numerical value.
To sum up, a kind of metadata method for monitoring performance based on shared drive that the application provides mainly is collecting first number According to this method of shared drive is used when performance data, smaller, on the one hand debugging is on the one hand influenced on metadata performance Get up also more convenient flexible, so as to improve the monitoring capacity of metadata performance data.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to. For device class embodiment, since it is substantially similar to embodiment of the method, so description is fairly simple, related part ginseng See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or order.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only include that A little key elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged Except also there are other identical element in the process, method, article or apparatus that includes the element.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, this is being implemented The function of each unit can be realized in same or multiple softwares and/or hardware during application.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can Realized by the mode of software plus required general hardware platform.Based on such understanding, the technical solution essence of the application On the part that contributes in other words to the prior art can be embodied in the form of software product, the computer software product It can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are used so that a computer equipment (can be personal computer, server, either network equipment etc.) performs some of each embodiment of the application or embodiment Method described in part.
A kind of metadata method for monitoring performance provided herein and system are described in detail above, herein Apply specific case to be set forth the principle and embodiment of the application, the explanation of above example is only intended to help Understand the present processes and its core concept;Meanwhile for those of ordinary skill in the art, according to the thought of the application, There will be changes in specific embodiments and applications, in conclusion this specification content should not be construed as to this The limitation of application.

Claims (2)

1. a kind of metadata method for monitoring performance, it is characterised in that this method includes:
By in the numerical value write-in shared drive in target metadata;
Obtained and the corresponding numerical value of performance monitoring from the shared drive;
The numerical value is judged whether in default value threshold range, if it is not, then carrying out Performance tuning;
Wherein, in the numerical value write-in shared drive by target metadata, including:
Obtain the request instruction that performance monitoring is carried out to the target metadata;
It will be written in the target metadata with the corresponding numerical value of performance monitoring request instruction in shared drive;
Wherein, the acquisition from the shared drive and the corresponding numerical value of performance monitoring, including:
The basic numerical value of metadata is collected from the shared drive;
Calculation process is carried out to the basic numerical value of the acquisition, is obtained and the corresponding numerical value of performance monitoring.
2. a kind of metadata performance monitoring system, it is characterised in that the system includes:
Writing unit, for by the numerical value write-in shared drive in target metadata;
Acquiring unit, for being obtained and the corresponding numerical value of performance monitoring from the shared drive;
Judging unit, for judging the numerical value whether in default value threshold range, if it is not, then carrying out Performance tuning;
Wherein, said write unit, including:
Receiving unit, carries out the target metadata for receiving the request instruction of performance monitoring;
Subelement is write, for will be written in the target metadata with the corresponding numerical value of performance monitoring request instruction In shared drive;
Wherein, the acquiring unit includes:
Unit is collected, for collecting the basic numerical value of metadata from the shared drive;
Operation processing unit, for carrying out calculation process to the basic numerical value of the acquisition, obtains corresponding with performance monitoring Numerical value.
CN201510684751.4A 2015-10-20 2015-10-20 A kind of metadata method for monitoring performance and system Active CN105302691B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510684751.4A CN105302691B (en) 2015-10-20 2015-10-20 A kind of metadata method for monitoring performance and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510684751.4A CN105302691B (en) 2015-10-20 2015-10-20 A kind of metadata method for monitoring performance and system

Publications (2)

Publication Number Publication Date
CN105302691A CN105302691A (en) 2016-02-03
CN105302691B true CN105302691B (en) 2018-04-24

Family

ID=55199982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510684751.4A Active CN105302691B (en) 2015-10-20 2015-10-20 A kind of metadata method for monitoring performance and system

Country Status (1)

Country Link
CN (1) CN105302691B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857650B (en) * 2019-01-14 2022-07-01 珠海金山网络游戏科技有限公司 Game performance monitoring method and system
CN109992574A (en) * 2019-04-10 2019-07-09 苏州浪潮智能科技有限公司 A kind of method and device of the parameter of adjust automatically parallel file system
CN113301049B (en) * 2021-05-26 2023-02-24 杭州安恒信息技术股份有限公司 Industrial control equipment auditing method, device, equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103778041A (en) * 2012-10-18 2014-05-07 腾讯科技(北京)有限公司 Data monitoring method and device for internet
CN103902479A (en) * 2014-03-27 2014-07-02 浪潮电子信息产业股份有限公司 Quick reconstruction mechanism for metadata cache on basis of metadata log
CN104063486A (en) * 2014-07-03 2014-09-24 四川中亚联邦科技有限公司 Big data distributed storage method and system
EP2889795A1 (en) * 2013-12-24 2015-07-01 Thales Safety device partitioning between first and second domains, enhanced with audit functionality
CN105045938A (en) * 2015-09-17 2015-11-11 浪潮(北京)电子信息产业有限公司 Metadata concurrent access method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6799173B2 (en) * 2001-11-14 2004-09-28 Sun Microsystems, Inc. Method and apparatus for sharing code containing references to non-shared objects
CN100505762C (en) * 2006-04-19 2009-06-24 华中科技大学 Distributed multi-stage buffer storage system suitable for object network storage
CN102122285B (en) * 2010-01-11 2012-10-31 卓望数码技术(深圳)有限公司 Data cache system and data inquiry method
CN102955817A (en) * 2011-08-30 2013-03-06 腾讯数码(深圳)有限公司 Object management and recovery method and system based on shared memory

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103778041A (en) * 2012-10-18 2014-05-07 腾讯科技(北京)有限公司 Data monitoring method and device for internet
EP2889795A1 (en) * 2013-12-24 2015-07-01 Thales Safety device partitioning between first and second domains, enhanced with audit functionality
CN103902479A (en) * 2014-03-27 2014-07-02 浪潮电子信息产业股份有限公司 Quick reconstruction mechanism for metadata cache on basis of metadata log
CN104063486A (en) * 2014-07-03 2014-09-24 四川中亚联邦科技有限公司 Big data distributed storage method and system
CN105045938A (en) * 2015-09-17 2015-11-11 浪潮(北京)电子信息产业有限公司 Metadata concurrent access method and system

Also Published As

Publication number Publication date
CN105302691A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
US9459942B2 (en) Correlation of metrics monitored from a virtual environment
US8667334B2 (en) Problem isolation in a virtual environment
CN103106134B (en) A kind of performance deficiency detection method, device and system
US20080215389A1 (en) Model oriented business process monitoring
CN102385552B (en) Sample dissects the dynamic calculation of report
CN103714004A (en) JVM online memory leak analysis method and system
CN105247493A (en) Identifying impacted tests from statically collected data
CN103778056B (en) wireless application stability test method and system
CN105607986A (en) Acquisition method and device of user behavior log data
CN105302691B (en) A kind of metadata method for monitoring performance and system
CN103517304A (en) Method and device for obtaining safe state of mobile terminal
CN108563526A (en) A kind of iOS interim cards monitoring strategies
WO2023029275A1 (en) Data association analysis method and apparatus, and computer device and storage medium
CN106528430A (en) Application program detection method and device and electronic equipment
CN105740122A (en) Method and system for monitoring mobile phone memory leak
CN102043720A (en) Method and device for generating test data automatically by utilizing structured query language (SQL) sentences
CN103578067A (en) Association device and method for diagnosis and treatment report
CN105242873B (en) The acquisition of the performance data of cloud computing system and storage method and device
CN110688173B (en) Positioning method and device of components in cross-platform interface framework and electronic equipment
CN109871368A (en) Database detection method, apparatus, computer installation and storage medium
Chamberlain et al. RT‐EQcorrscan: Near‐real‐time matched‐filtering for rapid development of dense earthquake catalogs
US20150089482A1 (en) Automated Identification of Redundant Method Calls
CN117056352A (en) Data display method, device, terminal equipment and readable storage medium
CN105868010A (en) Application calling method and terminal
CN103246575B (en) Valid software code quantity calculation method and device

Legal Events

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