CN110222014B - Maintenance method of bus map of distributed file system and related components - Google Patents

Maintenance method of bus map of distributed file system and related components Download PDF

Info

Publication number
CN110222014B
CN110222014B CN201910502397.7A CN201910502397A CN110222014B CN 110222014 B CN110222014 B CN 110222014B CN 201910502397 A CN201910502397 A CN 201910502397A CN 110222014 B CN110222014 B CN 110222014B
Authority
CN
China
Prior art keywords
map
tree
adjusted
current
pause
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
CN201910502397.7A
Other languages
Chinese (zh)
Other versions
CN110222014A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201910502397.7A priority Critical patent/CN110222014B/en
Publication of CN110222014A publication Critical patent/CN110222014A/en
Application granted granted Critical
Publication of CN110222014B publication Critical patent/CN110222014B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems

Abstract

The invention discloses a maintenance method of a distributed file system (CRUSH) map, which comprises the steps of carrying out visual editing processing on inquired tree-shaped CRUSH map data and outputting the tree-shaped data to a display interface when a maintenance instruction of the CRUSH map is received, enabling a user to directly check a tree-shaped structure diagram of the CRUSH map on the display interface, enabling the user to directly carry out dragging editing adjustment on a current CRUSH map tree through the display interface, enabling a background to automatically adjust the structure of the current CRUSH map tree after receiving an adjustment instruction, and improving the maintenance efficiency of the CRUSH map. The invention also provides a device and equipment for maintaining the bus map of the distributed file system and a readable storage medium, and has the beneficial effects.

Description

Maintenance method of bus map of distributed file system and related components
Technical Field
The present invention relates to the field of distributed file system technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for maintaining a heap map of a distributed file system.
Background
The bus map of the distributed file system refers to a physical topology structure referring to a storage system hierarchy, which defines a static topology structure in which storage clusters have a hierarchical relationship. The storage hierarchy enables the rack sensing capability of the CRUSH algorithm when the storage disk device is selected, namely copies can be distributed in different racks and different computer rooms through rule definition, and data security is provided.
The method comprises the steps of modifying a bus map under the conditions of cluster expansion or cabinet relocation and the like, exporting the bus map of a cluster into a binary file when the bus map of the cluster needs to be modified under certain scenes in the related technology, then directly modifying the file by related technical personnel after compiling the file into a common file, and importing the modified file into the cluster after modification. The whole modification process is complicated in flow and high in operation complexity.
Therefore, how to improve the maintenance efficiency of the flush map is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a method for maintaining a bus map of a distributed file system, which can improve the maintenance efficiency of the bus map; another object of the present invention is to provide a distributed file system managing apparatus, a device and a readable storage medium, which have the above beneficial effects.
In order to solve the above technical problem, the present invention provides a method for maintaining a bus map of a distributed file system, including:
when a pause map maintenance instruction is received, inquiring current tree pause map data;
performing visual editing processing on the tree-shaped pause map data to obtain a current pause map tree output to a display interface;
after a dragging editing instruction for the current grow map tree is received, carrying out structure adjustment on the current grow map tree according to the dragging editing instruction to obtain an adjusted grow map tree;
determining replacement tree-shaped grow map data according to the adjusted grow map tree;
and importing the data of the replacement tree grow map into a system.
Optionally, determining replacement tree-shaped grow map data according to the adjusted grow map tree includes:
taking the adjusted grow map tree as a replacement grow map tree;
and analyzing the replacement bus map tree to generate replacement tree bus map data.
Optionally, determining replacement tree-shaped grow map data according to the adjusted grow map tree includes:
performing difference comparison on the adjusted bus map tree and the current bus map tree to determine a part to be adjusted of the current bus map tree;
and adjusting the current grow map data according to the part to be adjusted to obtain the replacement tree grow map data.
Optionally, before adjusting the current credit map data according to the portion to be adjusted, the method further includes:
judging whether the part to be adjusted reaches a structural data replacement standard or not;
adjusting the current credit map data according to the part to be adjusted specifically includes: and when the part to be adjusted does not reach the structural data replacement standard, adjusting the current pause map data according to the part to be adjusted.
Optionally, before adjusting the current credit map data according to the portion to be adjusted, the method further includes:
acquiring user information;
determining the maintenance authority of the current adjustment user according to the user information to obtain maintenance authority data;
judging whether the part to be adjusted contains a part exceeding the maintenance authority or not according to the maintenance authority data;
adjusting the current credit map data according to the part to be adjusted specifically includes: and when the part to be adjusted does not contain a part exceeding the maintenance authority, adjusting the current pause map data according to the part to be adjusted.
Optionally, the method for maintaining the foregoing distributed file system pool map further includes:
and when the part to be adjusted contains the part exceeding the maintenance authority, outputting the prompt information of the current adjustment exceeding the authority.
Optionally, the method for determining the adjusted grow map tree includes:
and when an adjustment finishing instruction is received, acquiring a current pause map tree of the display interface, and taking the acquired pause map tree as the adjusted pause map tree.
The invention also discloses a maintenance device of the distributed file system managing map, which comprises:
the system comprises a bus map data query unit, a tree map maintenance unit and a tree map data processing unit, wherein the bus map data query unit is used for querying current tree bus map data when a bus map maintenance instruction is received;
the pause map data analysis unit is used for carrying out visual editing processing on the tree-shaped pause map data to obtain a current pause map tree output to a display interface;
the pause map adjusting unit is used for carrying out structure adjustment on the current pause map tree according to a dragging editing instruction after the dragging editing instruction for the current pause map tree is received, so as to obtain an adjusted pause map tree;
a replacement data determining unit, configured to determine replacement tree-shaped grow map data according to the adjusted grow map tree;
and the replacement data import unit is used for importing the replacement tree-shaped grow map data into the system.
The invention also discloses a maintenance device of the distributed file system managing map, which comprises:
a memory for storing a computer program;
and the processor is used for realizing the steps of the maintenance method of the distributed file system sink map when executing the computer program.
The invention also discloses a computer readable storage medium, on which a computer program is stored, which, when executed by the processor, implements the steps of the distributed file system managing map maintenance method.
According to the maintenance method of the distributed file system bus map, when a bus map maintenance instruction is received, the inquired tree-shaped bus map data is visually edited and output to the display Interface, a User can directly view the tree-shaped structure diagram of the bus map on the display Interface, and compared with a complex bus map code file, GUI (Graphical User Interface) display of the tree-shaped structure diagram of the bus map greatly reduces operation complexity; when the user needs to perform the structure adjustment of the pause map, the drag editing adjustment can be directly performed on the current pause map tree through the display interface, the background can perform automatic structure adjustment on the current pause map tree according to the drag editing instruction, the whole process is simple and convenient to operate and easy to use, the on-site operation can be conveniently performed by an implementer, and the adjusted pause map data is imported into the system to complete the modification of the pause map. The method integrates the manual process of modifying the pause map into the interface in a GUI mode, simplifies the process of modifying the pause map and improves the maintenance efficiency of the pause map.
The invention also provides a device and equipment for maintaining the distributed file system scrub map and a readable storage medium, which have the beneficial effects and are not described in detail herein.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for maintaining a distributed file system (file map) according to an embodiment of the present invention;
fig. 2 is a block diagram of a distributed file system pool map maintenance apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a distributed file system pause map maintenance device according to an embodiment of the present invention.
Detailed Description
The core of the invention is to provide a maintenance method of the bus map of the distributed file system, which can improve the maintenance efficiency of the bus map; the other core of the invention is to provide a distributed file system managing device, equipment and a readable storage medium.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
referring to fig. 1, fig. 1 is a flowchart of a method for maintaining a distributed file system pool map according to this embodiment; the method mainly comprises the following steps:
step s 110: and when a pause map maintenance instruction is received, inquiring the current tree pause map data.
When a pause map maintenance instruction is received, it is indicated that the pause map structure of the system needs to be adjusted currently to adapt to different requirements, and current tree-shaped pause map data is immediately inquired, wherein related commands exist in the tree-shaped structure background of the distributed file system and can be inquired, and the process of acquiring the tree-shaped pause map data of the current system can refer to related technologies, which are not described herein again.
In addition, the background receiving of the pause map maintenance instruction can be realized by the way that the user clicks an adjustment pause map button on the front-end interface, and the like, which is not limited herein.
Step s 120: and carrying out visual editing processing on the tree-shaped pause map data to obtain a current pause map tree output to a display interface.
The visual editing process mainly includes a user editable process of performing the visual process and the visual shuffle map. The purpose of performing visualization processing on the tree-shaped pause map data is that a user can directly view the tree-shaped structure diagram of the pause map on a visual interface, so that the pause map structure of a system background can be conveniently viewed, and compared with the traditional method that the user needs to view complex pause map background data, the pause map structure viewing difficulty is greatly reduced. Compared with the traditional method that the user can directly edit and adjust the tree structure diagram of the pause map to realize the adjustment of the structure of the system pause map, the method has the advantages that the pause map is exported into a binary file and then compiled into a common file, and then the pause map maintenance process is directly modified by related technicians.
The processes of visualizing the background data and editing the background data by the user on the visualization interface can refer to the implementation manners in the related art, and the detailed implementation steps are not described herein, please refer to the related art.
Step s 130: and after receiving a dragging editing instruction for the current pause map tree, carrying out structure adjustment on the current pause map tree according to the dragging editing instruction to obtain an adjusted pause map tree.
The user sends a dragging editing instruction to the current grow map tree by dragging and editing the grow map tree in the GUI, and performs a corresponding editing operation to the file system tree structure after receiving the editing instruction, for example, when the user edits the file 11 in the file 1 to the file 2, that is, the file 11 is adjusted from the subordinate file of the file 1 to the subordinate file of the file 2, the user automatically adjusts the dependency relationship part of the file 11 in the current grow map tree after receiving the adjusting instruction, and the adjusted grow map tree can be obtained.
In this embodiment, the determination method of the adjusted grow map tree is not limited, for example, the grow map tree that remains unchanged and exceeds the threshold may be automatically determined as the adjusted grow map tree, or a user may click a button that completes adjustment after adjustment is completed, and the grow map tree in this state is used as the adjusted grow map tree. Preferably, when the adjustment completion instruction is received, the pause map tree of the current display interface is acquired, and the acquired pause map tree is used as the adjusted pause map tree, so that useless subsequent processing work can be avoided, and the maintenance efficiency is improved.
Step s 140: and determining the replacement tree-shaped grow map data according to the adjusted grow map tree.
After the pause map tree is adjusted, in order to ensure that the system can be identified and applied, the visual pause map structure tree needs to be converted into background identifiable pause map structure data again. The process of converting the visual bug map structure tree into the identifiable data of the background corresponds to the process of converting the identifiable bug map data of the background into the visual bug map structure tree in the above steps, and the implementation processes thereof can be referred to related technologies, and are not described herein again.
In this embodiment, a manner of determining to replace the tree-shaped grow map data according to the adjusted grow map tree is not limited, and preferably, a process of determining to replace the tree-shaped grow map data according to the adjusted grow map tree may specifically include the following steps:
1. taking the adjusted grow map tree as a replacement grow map tree;
2. and analyzing the replacement bus map tree to generate replacement tree bus map data.
The determining mode avoids the steps of determining the adjusting part and the like, directly conducts background analysis on the currently adjusted pause map tree and then conducts import, can simplify the step of determining and replacing pause map structure data for application scenes with more pause map structure adjustment and the like, and improves the processing efficiency.
Preferably, the replacement tree grow map data may also be determined with reference to the following steps:
1. carrying out difference comparison on the adjusted pause map tree and the current pause map tree, and determining a part to be adjusted of the current pause map tree;
2. and adjusting the current grow map data according to the part to be adjusted to obtain the replaced tree grow map data.
According to the method, the original pause map data are directly and correspondingly adjusted after the part to be adjusted is determined, the step of determining pause map data generation can be simplified for application scenes with less pause map structure adjustment and the like, and the processing efficiency is improved.
In this embodiment, only the two ways of determining replacement tree grow map data are described as an example, and the determination process of other replacement tree grow map data may refer to the description of this embodiment and will not be described herein again.
Step s 150: and importing the replacement tree grow map data into the system.
And leading the replacement tree grow map data to replace the current tree grow map data into the system so as to enable the adjusted grow map structure to take effect. The implementation manner of importing the replacement tree grow map data into the system may refer to related technologies, and is not described herein again.
While the foregoing description mainly describes the method for maintaining the scrub map in the background operation view, for the user view, one method for maintaining the scrub map can be referred to the following description:
a user clicks an interface to adjust a pause map button, a pause map tree in the cluster is automatically displayed on the interface, and pause map adjustment can be directly carried out in a mouse dragging mode;
the user performs operations such as dragging on a GUI (graphical user interface) for editing the pause map to adjust the pause map to a needed pause map structure, and the operations such as dragging are equivalent to editing the file system tree structure;
and after the user finishes the adjustment, clicking to determine, and automatically analyzing the interface until the adjusted pause map is imported into the cluster through the api interface, wherein the pause map is also successfully modified.
Therefore, compared with the traditional maintenance mode that the cluster crush map is exported into a binary file and then compiled into a common file and then the file is directly modified by related technical personnel, the maintenance mode with complexity is complex, the maintenance of the crush map can be realized only by adjusting the visual crush map tree structure diagram by dragging and the like, the whole maintenance process is simplified, the maintenance difficulty and complexity are greatly reduced, and the crush map modification by common users is facilitated.
Based on the introduction, the distributed file system managing map maintenance method disclosed by the embodiment of the invention carries out visual editing processing on the tree-shaped managing map data obtained by query and outputs the tree-shaped managing map data to the display interface when receiving a managing map maintenance instruction, and a user can directly view the tree-shaped structure diagram of the managing map on the display interface; when the user needs to carry out structural adjustment of the crush map, dragging, editing and adjusting can be directly carried out on the current crush map tree through the display interface, the whole process is simple and convenient to operate and easy to use, field operation is convenient for implementing personnel, tree-shaped crush map data can be automatically determined and replaced according to the adjusted crush map tree after the user is adjusted, the data are led into the system, and modification of the crush map is completed. The method integrates the manual process of modifying the pause map into the interface in a GUI mode, simplifies the process of modifying the pause map and improves the maintenance efficiency of the pause map.
Example two:
in the above embodiment, a manner of determining replacement tree-shaped grow map data according to the adjusted grow map tree is not limited, where a to-be-adjusted portion of the current grow map tree is first determined, and the current grow map data is adjusted according to the to-be-adjusted portion to determine that the replacement tree-shaped grow map data is applicable to multiple adjustment scenarios and is easy to adapt in each application scenario.
In order to reduce the adjustment workload as much as possible and ensure the determination efficiency of replacing the tree-shaped grow map data in different scenarios such as large-scale adjustment and fine structure adjustment, preferably, before adjusting the current grow map data according to the portion to be adjusted, the following determination process may be further performed:
judging whether the part to be adjusted reaches the structural data replacement standard or not;
then, adjusting the current credit map data according to the part to be adjusted specifically includes: when the part to be adjusted does not reach the structural data replacement standard, adjusting the current pause map data according to the part to be adjusted;
when the part to be adjusted reaches the structural data replacement standard, taking the adjusted pause map tree as a replacement pause map tree;
and analyzing the replacement bus map tree to obtain replacement tree bus map data.
The structural data replacement standard is not a preset standard for measuring the adjustment amount of structural data, when the structural data replacement standard exceeds the standard, the current adjustment scale of the bus map is indicated to be large, at the moment, the workload for adjusting the pair of original bus map data one by one aiming at each adjusting part is possibly large, the adjusting speed is also slow, and meanwhile, the structure of the bus map is disturbed to influence the normal operation of the system in the large rule adjustment, so that the efficiency of determining the bus map data is ensured aiming at the condition, and recognizable background data of the bus map can be directly regenerated to replace the current bus map data according to the currently determined adjusted bus map tree; and when the standard is not exceeded, indicating that the current adjustment scale of the pause map is smaller, if the workload of regenerating the recognizable data of the pause map background is possibly larger directly according to the currently determined adjusted pause map tree, correspondingly modifying and adjusting the generation speed of the pause map background data based on the original pause map data. Therefore, the overall maintenance efficiency can be improved by further determining the following judgment process before the current sink map data is adjusted according to the part to be adjusted, and meanwhile, the high availability of the adjusted sink map data is ensured.
In addition, in consideration of system security, in order to prevent unauthorized persons from arbitrarily modifying the structure of the housemap to affect normal operation of the system, before adjusting the current data of the housemap according to the portion to be adjusted, authorization verification may be further performed on the current maintenance behavior, and the following steps may be specifically referred to:
1. acquiring user information;
2. determining the maintenance authority of the current adjustment user according to the user information to obtain maintenance authority data;
3. judging whether the part to be adjusted contains a part exceeding the maintenance authority or not according to the maintenance authority data;
then, adjusting the current credit map data according to the part to be adjusted specifically includes: and when the part to be adjusted does not contain the part exceeding the maintenance authority, adjusting the current credit map data according to the part to be adjusted.
Setting corresponding pause map adjusting permission for each user in advance, for example, the user 1 cannot adjust the relative relation between the node A and the node B in the pause map, the user 2 cannot adjust the pause map structure at all, and the like, so as to limit the pause map adjusting behavior of the operator, and once the current pause map adjustment exceeds the corresponding permission, the current adjustment can be rejected.
In order to prompt the user when the user is not adjusting the pause map structure, so as to adjust the maintenance behavior of the current pause map structure in time, it is preferable that when the part to be adjusted includes a part exceeding the maintenance authority, prompt information for currently adjusting the exceeding authority be output. For example, a prompt message "you have no right to adjust the relative relationship between node a and node B" is output.
The method provided by the embodiment determines to replace tree-shaped grow map data, so that the grow map maintenance efficiency can be improved while the system safety is ensured, and the user experience is improved.
Example three:
referring to fig. 2, fig. 2 is a block diagram of a distributed file system pool map maintenance apparatus provided in this embodiment; the device mainly includes: a grow map data query unit 210, a grow map data parsing unit 220, a grow map adjustment unit 230, a replacement data determination unit 240, and a replacement data import unit 250. The distributed file system managing map maintaining device provided by this embodiment may be contrasted with the distributed file system managing map maintaining method described above.
The pool map data query unit 210 is mainly configured to query current tree-shaped pool map data when receiving a pool map maintenance instruction;
the pause map data analyzing unit 220 is mainly used for performing visual editing processing on the tree-shaped pause map data to obtain a current pause map tree output to the display interface;
the discard map tree adjusting unit 230 is mainly configured to, after receiving a drag editing instruction for the current discard map tree, perform structure adjustment on the current discard map tree according to the drag editing instruction to obtain an adjusted discard map tree;
the replacement data determining unit 240 is mainly configured to determine replacement tree-shaped grow map data according to the adjusted grow map tree;
the replacement data import unit 250 is mainly used to import replacement tree grow map data into the system.
Optionally, the replacement data determining unit may specifically be: a first data determination unit;
the first data determination unit includes:
a first determining subunit, configured to use the adjusted grow map tree as a replacement grow map tree;
and the first processing subunit is used for analyzing the replacement bus map tree and generating replacement tree bus map data.
Optionally, the replacement data determining unit may specifically be: a second data determination unit;
the second data determination unit includes:
the second comparison subunit is used for carrying out difference comparison on the adjusted pause map tree and the current pause map tree to determine a part to be adjusted of the current pause map tree;
and the second adjusting subunit is used for adjusting the current pause map data according to the part to be adjusted to obtain the replaced tree pause map data.
Optionally, the second data determination unit may further include: the input end of the second judging subunit is connected with the output end of the second comparison subunit, and the output end of the second judging subunit is connected with the input end of the second adjusting subunit, so that the second judging subunit is mainly used for judging whether the part to be adjusted reaches the structural data replacement standard or not before adjusting the current pause map data according to the part to be adjusted; correspondingly, the second adjusting subunit is specifically configured to: when the part to be adjusted does not reach the structural data replacement standard, adjusting the current pause map data according to the part to be adjusted; at this time, the second adjusting subunit may be further connected to the first data determining unit, and the first data determining unit is called to connect that the part to be adjusted reaches the structural data replacement standard, and the adjusted grow map tree is used as a replacement grow map tree; and analyzing the replacement bus map tree to obtain replacement tree bus map data.
Optionally, the second data determination unit may further include: the input and the second of authority matching subunit compare the output of subunit and are connected, and the output is connected with the input of second adjustment subunit, and authority matching subunit specifically includes:
an acquisition subunit, configured to acquire user information;
the authority determining subunit is used for determining the maintenance authority of the current adjustment user according to the user information to obtain maintenance authority data;
the authority judgment subunit is used for judging whether the part to be adjusted contains a part exceeding the maintenance authority or not according to the maintenance authority data;
accordingly, the second adjustment subunit is specifically configured to: and when the part to be adjusted does not contain the part exceeding the maintenance authority, adjusting the current credit map data according to the part to be adjusted.
Optionally, the permission matching subunit may further include: and the prompting subunit is used for outputting the prompting information of the current adjustment exceeding authority when the part to be adjusted contains the part exceeding the maintenance authority.
Optionally, the adjustment determining unit in the pause map adjusting unit, configured to determine the adjusted pause map tree, may specifically be an instruction determining unit, and be configured to, when an adjustment completion instruction is received, obtain the pause map tree of the current display interface, and use the obtained pause map tree as the adjusted pause map tree.
The maintenance efficiency of the distributed file system pause map maintenance device pause map provided by the embodiment is high.
Example four:
the following describes a distributed file system managing map maintenance device provided in the present application, and specifically, the description of the distributed file system managing map maintenance device may refer to the steps of the distributed file system managing map maintenance method, where the device mainly includes:
a memory for storing a computer program;
and the processor is used for realizing the steps of the maintenance method of the distributed file system pool map when executing the computer program.
Referring to fig. 3, a schematic structural diagram of a distributed file system managing map maintenance device provided in this embodiment of the present application may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 322 (e.g., one or more processors) and a memory 332, and one or more storage media 330 (e.g., one or more mass storage devices) storing an application 342 or data 344. Memory 332 and storage media 330 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 330 may include one or more modules (not shown), each of which may include a series of instructions operating on a data processing device. Still further, the central processor 322 may be configured to communicate with the storage medium 330 to execute a series of instruction operations in the storage medium 330 on the distributed file system managing map maintenance device 301.
The distributed file system managing map maintenance device 301 may also include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input-output interfaces 358, and/or one or more operating systems 341, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and the like.
The steps in the method for maintaining the distributed file system foregoing in fig. 1 may be implemented by the structure of the distributed file system foregoing maintenance device provided in this embodiment.
Example five:
in the following, the readable storage medium provided by the embodiment of the present application is introduced, and the readable storage medium described below and the above-described distributed file system flush map maintenance method may be referred to correspondingly.
The application discloses a readable storage medium, on which a program is stored, and the program, when executed by a processor, implements the steps of the above-mentioned distributed file system managing map maintenance method.
The readable storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various other readable storage media capable of storing program codes.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, devices, storage media and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, system, storage medium, and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a mobile terminal. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a mobile terminal (which may be a mobile phone, a tablet computer, or the like) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, terminal, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The method, the apparatus, the device and the readable storage medium for maintaining the distributed file system pool map provided by the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

Claims (8)

1. A method for maintaining a bus map of a distributed file system is characterized by comprising the following steps:
when a pause map maintenance instruction is received, inquiring current tree pause map data;
performing visual editing processing on the tree-shaped pause map data to obtain a current pause map tree output to a display interface;
after a dragging editing instruction for the current grow map tree is received, carrying out structure adjustment on the current grow map tree according to the dragging editing instruction to obtain an adjusted grow map tree;
determining replacement tree-shaped grow map data according to the adjusted grow map tree;
importing the data of the replacement tree grow map into a system;
wherein, determining to replace tree-shaped grow map data according to the adjusted grow map tree, including:
taking the adjusted grow map tree as a replacement grow map tree;
analyzing the replacement bus map tree to generate replacement tree bus map data;
or comparing the difference between the adjusted bus map tree and the current bus map tree to determine the part of the current bus map tree to be adjusted;
and adjusting the current grow map data according to the part to be adjusted to obtain the replacement tree grow map data.
2. The method for maintaining a distributed file system (sink map) as claimed in claim 1, wherein before adjusting the current sink map data according to said portion to be adjusted, further comprising:
judging whether the part to be adjusted reaches a structural data replacement standard or not;
adjusting the current credit map data according to the part to be adjusted specifically includes: and when the part to be adjusted does not reach the structural data replacement standard, adjusting the current pause map data according to the part to be adjusted.
3. The method for maintaining a distributed file system (sink map) as claimed in claim 1, wherein before adjusting the current sink map data according to said portion to be adjusted, further comprising:
acquiring user information;
determining the maintenance authority of the current adjustment user according to the user information to obtain maintenance authority data;
judging whether the part to be adjusted contains a part exceeding the maintenance authority or not according to the maintenance authority data;
adjusting the current credit map data according to the part to be adjusted specifically includes: and when the part to be adjusted does not contain a part exceeding the maintenance authority, adjusting the current pause map data according to the part to be adjusted.
4. The method for maintaining the bus map of the distributed file system as claimed in claim 3, further comprising:
and when the part to be adjusted contains the part exceeding the maintenance authority, outputting the prompt information of the current adjustment exceeding the authority.
5. The method for maintaining a bus map of a distributed file system as claimed in claim 1, wherein said method for determining said adjusted bus map tree comprises:
and when an adjustment finishing instruction is received, acquiring a current pause map tree of the display interface, and taking the acquired pause map tree as the adjusted pause map tree.
6. The utility model provides a distributed file system sink map maintains device which characterized in that includes:
the system comprises a bus map data query unit, a tree map maintenance unit and a tree map data processing unit, wherein the bus map data query unit is used for querying current tree bus map data when a bus map maintenance instruction is received;
the pause map data analysis unit is used for carrying out visual editing processing on the tree-shaped pause map data to obtain a current pause map tree output to a display interface;
the pause map adjusting unit is used for carrying out structure adjustment on the current pause map tree according to a dragging editing instruction after the dragging editing instruction for the current pause map tree is received, so as to obtain an adjusted pause map tree;
a replacement data determining unit, configured to determine replacement tree-shaped grow map data according to the adjusted grow map tree;
a replacement data import unit, configured to import the replacement tree grow map data into a system;
wherein, the distributed file system managing map maintaining device is further configured to:
taking the adjusted grow map tree as a replacement grow map tree;
analyzing the replacement bus map tree to generate replacement tree bus map data;
or comparing the difference between the adjusted bus map tree and the current bus map tree to determine the part of the current bus map tree to be adjusted;
and adjusting the current grow map data according to the part to be adjusted to obtain the replacement tree grow map data.
7. A distributed file system (CSR) pool map maintenance device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the distributed file system managing map maintenance method according to any one of claims 1 to 5 when executing said computer program.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the distributed file system managing map maintenance method according to any one of claims 1 to 5.
CN201910502397.7A 2019-06-11 2019-06-11 Maintenance method of bus map of distributed file system and related components Active CN110222014B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910502397.7A CN110222014B (en) 2019-06-11 2019-06-11 Maintenance method of bus map of distributed file system and related components

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910502397.7A CN110222014B (en) 2019-06-11 2019-06-11 Maintenance method of bus map of distributed file system and related components

Publications (2)

Publication Number Publication Date
CN110222014A CN110222014A (en) 2019-09-10
CN110222014B true CN110222014B (en) 2022-03-08

Family

ID=67816600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910502397.7A Active CN110222014B (en) 2019-06-11 2019-06-11 Maintenance method of bus map of distributed file system and related components

Country Status (1)

Country Link
CN (1) CN110222014B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111061478B (en) * 2019-12-11 2023-08-22 政采云有限公司 Page form modification method, device and equipment and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102024182A (en) * 2009-09-10 2011-04-20 上海宝信软件股份有限公司 System for managing asset information
CN105808770A (en) * 2016-03-22 2016-07-27 北京北方微电子基地设备工艺研究中心有限责任公司 File management method and device
CN106570077A (en) * 2016-10-17 2017-04-19 深圳市茁壮网络股份有限公司 Column editing method and column editing device
CN107526544A (en) * 2017-08-16 2017-12-29 国家电网公司 A kind of distributed storage Ceph clusters hardware selection design method
CN107729396A (en) * 2017-09-20 2018-02-23 上海精数信息科技有限公司 Data Dynamic Query method and device
CN108052655A (en) * 2017-12-28 2018-05-18 新华三技术有限公司 Data write and read method
CN109683953A (en) * 2018-12-26 2019-04-26 苏州思必驰信息科技有限公司 A kind of method and device carrying out configuration file processing based on visualization interface

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479109B (en) * 2010-11-23 2016-08-03 腾讯科技(深圳)有限公司 A kind of backwards and forwards data synchronization method and device
US20160349993A1 (en) * 2015-05-29 2016-12-01 Cisco Technology, Inc. Data-driven ceph performance optimizations
CN105353065B (en) * 2015-12-22 2017-03-22 黑龙江大学 Establishing method of HPLC (high-performance liquid chromatography) fingerprint spectrum of lychee seeds
CN107506437A (en) * 2017-08-23 2017-12-22 郑州云海信息技术有限公司 A kind of OSD choosing methods and device based on crushmap structures
CN109582509A (en) * 2017-09-29 2019-04-05 中兴通讯股份有限公司 Distributed file system disaster tolerance configuration method, device and readable storage medium storing program for executing
CN109033729B (en) * 2018-09-30 2022-09-23 武昌船舶重工集团有限公司 Product design information management method and system
CN109634570A (en) * 2018-12-15 2019-04-16 中国平安人寿保险股份有限公司 Front and back end integrated development method, device, equipment and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102024182A (en) * 2009-09-10 2011-04-20 上海宝信软件股份有限公司 System for managing asset information
CN105808770A (en) * 2016-03-22 2016-07-27 北京北方微电子基地设备工艺研究中心有限责任公司 File management method and device
CN106570077A (en) * 2016-10-17 2017-04-19 深圳市茁壮网络股份有限公司 Column editing method and column editing device
CN107526544A (en) * 2017-08-16 2017-12-29 国家电网公司 A kind of distributed storage Ceph clusters hardware selection design method
CN107729396A (en) * 2017-09-20 2018-02-23 上海精数信息科技有限公司 Data Dynamic Query method and device
CN108052655A (en) * 2017-12-28 2018-05-18 新华三技术有限公司 Data write and read method
CN109683953A (en) * 2018-12-26 2019-04-26 苏州思必驰信息科技有限公司 A kind of method and device carrying out configuration file processing based on visualization interface

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
手动编辑Ceph的CRUSH Map;执假以为真;《https://blog.csdn.net/nirendao/article/details/80684950》;20180613;1-4 *

Also Published As

Publication number Publication date
CN110222014A (en) 2019-09-10

Similar Documents

Publication Publication Date Title
CN107341098B (en) Software performance testing method, platform, equipment and storage medium
CN102902621B (en) Application performance measurement and reporting
WO2018120721A1 (en) Method and system for testing user interface, electronic device, and computer readable storage medium
CN106383764B (en) A kind of collecting method and equipment
TW201411367A (en) Method and system for monitoring execution of user request in distributed system
CN110347407A (en) A kind of method, apparatus, computer equipment and medium obtaining EMS memory occupation amount
CN107992403B (en) IO performance test method, device, equipment and computer readable storage medium
CN109408341A (en) Distributed memory system method for monitoring performance, device, equipment and readable storage medium storing program for executing
CN106529283A (en) Software defined network-oriented controller security quantitative analysis method
CN104022913B (en) For method of testing and the device of data cluster
CN110222014B (en) Maintenance method of bus map of distributed file system and related components
CN113434396A (en) Interface test method, device, equipment, storage medium and program product
CN106779582B (en) TWS (two way service) process configuration method and device
CN107861821B (en) Mining method and device for module call relation and computer readable medium
CN106886477B (en) Method and device for setting monitoring threshold in cloud system
CN110457869A (en) Program compiles encryption method, device, storage medium and electronic equipment
CN104598202A (en) Command line management device and method
CN103399714A (en) Maintenance system for storage device configuration information and application method of maintenance system
CN111901405A (en) Multi-node monitoring method and device, electronic equipment and storage medium
CN107590044B (en) Testing method, device and equipment for distributed storage cluster
CN109725973B (en) Data processing method and data processing device
CN107038022B (en) Deserialization method and deserialization device
CN103793519A (en) Automatic tool supporting exportation of mass data
CN107515724A (en) For the method and apparatus for the input and output for reproducing storage system
CN111625532A (en) Data blood relationship processing method and device, computer equipment and storage medium

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