CN109634965A - Backboard configuration information access method, device, equipment and medium - Google Patents

Backboard configuration information access method, device, equipment and medium Download PDF

Info

Publication number
CN109634965A
CN109634965A CN201811543057.0A CN201811543057A CN109634965A CN 109634965 A CN109634965 A CN 109634965A CN 201811543057 A CN201811543057 A CN 201811543057A CN 109634965 A CN109634965 A CN 109634965A
Authority
CN
China
Prior art keywords
access
configuration information
node
backboard configuration
backboard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811543057.0A
Other languages
Chinese (zh)
Other versions
CN109634965B (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.)
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 CN201811543057.0A priority Critical patent/CN109634965B/en
Publication of CN109634965A publication Critical patent/CN109634965A/en
Application granted granted Critical
Publication of CN109634965B publication Critical patent/CN109634965B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

This application discloses backboard configuration information access method, device, equipment and the media of a kind of binode storage system, it include: when the host node itself needs to carry out data access to backboard configuration information database, the first access request is then triggered, and corresponding access operation is carried out to the backboard configuration information database by first access request;It needs when from node to backboard configuration information database progress data access, then obtain second access request sent from node, and according to second access request, corresponding access operation is executed to the backboard configuration information database, is then back to corresponding second access result described from node.In the application, host node and the access request respectively initiated from node are that backboard configuration information database is conveyed to via host node, are conducive to the validity for guaranteeing consistency and data between information during binode reads and writes backboard configuration information.

Description

Backboard configuration information access method, device, equipment and medium
Technical field
This application involves technical field of memory, in particular to the backboard configuration information access side of a kind of binode storage system Method, device, equipment and medium.
Background technique
Currently, binode storage system during starting and running, is required to read the configuration information of backboard in system, To complete the starting of system and the control of cabinet.
However, the node of binode storage system is practical start and run during, it is same that two nodes can be encountered often When read and write the scene of backboard configuration information, such case will lead to the inconsistent and data between the backboard configuration information of read-write The problems such as invalid.
Summary of the invention
In view of this, a kind of backboard configuration information access side for being designed to provide binode storage system of the application Method, device, equipment and medium can guarantee the consistency between information during binode reads and writes backboard configuration information And validity.Its concrete scheme is as follows:
In a first aspect, being applied to this application discloses a kind of backboard configuration information access method of binode storage system Host node, comprising:
When the host node itself needs to carry out data access to backboard configuration information database, then the first access of triggering is asked It asks, and corresponding access operation is carried out to the backboard configuration information database by first access request, to obtain phase The the first access result answered;
When needing to carry out data access to the backboard configuration information database from node, then obtain described from node transmission The second access request corresponding access is executed to the backboard configuration information database and according to second access request Operation obtains corresponding second access as a result, being then back to the second access result described from node.
Optionally, the second access request sent described in the acquisition from node, and according to second access request, it is right The backboard configuration information database executes corresponding access operation, obtains corresponding second access as a result, then by described the Two access results are back to described from node, comprising:
Obtain the data read request sent from node;
According to the data read request, corresponding backboard configuration information in the backboard configuration information database is read;
The backboard configuration information read is back to described from node.
It optionally, include the association attributes parameter of corresponding backboard configuration information in the data read request.
Optionally, the second access request sent described in the acquisition from node, and according to second access request, it is right The backboard configuration information database executes corresponding access operation, obtains corresponding second access as a result, then by described the Two access results are back to described from node, comprising:
Obtain the data write request sent from node;
According to the data write request, corresponding data are written in Xiang Suoshu backboard configuration information database, and obtain The write-in feedback information that the backboard configuration information database returns after this write operation;
Said write feedback information is back to described from node.
Optionally, corresponding data to be written are included in the data write request.
Second aspect, this application discloses a kind of backboard configuration information access mechanisms of binode storage system, are applied to Host node, comprising:
First access modules, for itself needing to carry out data visit to backboard configuration information database when the host node It asks, then triggers the first access request, and carry out accordingly to the backboard configuration information database by first access request Access operation, with obtain it is corresponding first access result;
Second access modules, for being needed to backboard configuration information database progress data access, then when from node Second access request sent from node is obtained, and according to second access request, to the backboard configuration information number Corresponding access operation is executed according to library, obtains corresponding second access as a result, the second access result is then back to institute It states from node.
Optionally, first access modules, comprising:
Read requests acquiring unit, for obtaining the data read request sent from node;
Information reading unit, for reading phase in the backboard configuration information database according to the data read request The backboard configuration information answered;
First information return unit, the backboard configuration information for will read are back to described from node.
Optionally, first access modules, comprising:
Write request acquiring unit, for obtaining the data write request sent from node;
Data write unit, for being written in Xiang Suoshu backboard configuration information database according to the data write request Corresponding data, and obtain the write-in feedback information of the backboard configuration information database return after this write operation;
Second information returning unit, it is described from node for said write feedback information to be back to.
The third aspect, this application discloses a kind of backboard configuration information access equipments of binode storage system, comprising:
Memory, for storing computer program;
Processor, for executing the computer program, to realize aforementioned disclosed backboard configuration information access method.
Fourth aspect, this application discloses a kind of computer readable storage mediums, for storing computer program, wherein The computer program realizes aforementioned disclosed backboard configuration information access method when being executed by processor.
As it can be seen that, when host node needs to access backboard configuration information, corresponding access can be triggered by host node in the application Request directly accesses backboard configuration information database;Also, when needing to access backboard configuration information from node, from node meeting Corresponding access request is transmitted to host node, is then directly accessed to backboard configuration information database by host node, Then corresponding access result is back to from node by host node, is thus realized from node to backboard configuration information database Dereference.It can be seen that either host node still needs to access backboard configuration information database from node in the application, It is finally that data access operation is directly executed by host node, that is, host node and the access respectively initiated from node are asked It asks, is to be conveyed to backboard configuration information database via host node, consequently facilitating by host node come all nodes pair of control Thus the access of backboard configuration information database is conducive to guarantee information during binode reads and writes backboard configuration information Between consistency and data validity.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of backboard configuration information access method flow chart of binode storage system disclosed in the present application;
Fig. 2 is a kind of backboard configuration information access method stream journey figure of binode storage system disclosed in the present application;
Fig. 3 is a kind of backboard configuration information access method stream journey figure of binode storage system disclosed in the present application;
Fig. 4 is a kind of backboard configuration information access mechanism structural schematic diagram of binode storage system disclosed in the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, 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, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
The embodiment of the present application discloses a kind of backboard configuration information access method of binode storage system, is applied to main section Point, it is shown in Figure 1, this method comprises:
Step S11: when the host node itself needs to carry out data access to backboard configuration information database, then the is triggered One access request, and corresponding access operation is carried out to the backboard configuration information database by first access request, To obtain corresponding first access result;
Step S12: when needing to carry out data access to the backboard configuration information database from node, then obtain it is described from The second access request that node is sent, and according to second access request, phase is executed to the backboard configuration information database The access operation answered obtains corresponding second access as a result, being then back to the second access result described from node.
That is, from node being realized by host node between backboard configuration information database in the embodiment of the present application What receiving was asked, that is, the access request that cannot be directly initiated from node using itself come to backboard configuration information database into Row access, but need that access request is first transmitted to host node, then by host node according to the above-mentioned access request received It accesses to backboard configuration information database, is finally again fed back to corresponding access result from node by host node. Therefore in the embodiment of the present application, host node and the access request respectively initiated from node are passed via host node Backboard configuration information database is reached, consequently facilitating the visit by host node come all nodes of control to backboard configuration information database It asks, for example, receiving described the sended over from node just when host node is while initiating first access request Two access requests, then host node at this time can be using two kinds of processing modes: one is by the way of " putting self before others ", namely first holding Row access operation corresponding with first access request, then execute access operation corresponding with second access request;Separately A method of be then " putting others before oneself ", namely first carry out access operation corresponding with second access request, it is rear execute with The corresponding access operation of first access request.
It is understood that needing first before accessing backboard configuration information database in binode storage system The master-slave role of two nodes is divided, to determine host node and from node, namely determine it is subsequent can by which save Point executes to execute the direct access operation to backboard configuration information database, and by which node to backboard configuration information The dereference of database operates.In a specific embodiment, each of binode storage system can be first determined Then the stronger node of calculation processing ability is determined as host node by the calculation processing ability of node, and another is then From node.
In the embodiment of the present application, when host node needs to access backboard configuration information, corresponding visit can be triggered by host node Request is asked directly to access backboard configuration information database;Also, when needing to access backboard configuration information from node, from node Corresponding access request can be transmitted to host node, then directly backboard configuration information database is visited by host node It asks, then corresponding access result is back to from node by host node, is thus realized from node to backboard configuration information data The dereference in library.It can be seen that either host node still needs to access backboard with confidence from node in the embodiment of the present application Database is ceased, is finally that data access operation is directly executed by host node, that is, host node and respectively being initiated from node Access request, be that backboard configuration information database is conveyed to via host node, consequently facilitating by host node come control institute There is access of the node to backboard configuration information database, be thus conducive to during binode reads and writes backboard configuration information, Guarantee the validity of the consistency and data between information.
On the basis of previous embodiment, the embodiment of the present application has carried out further instruction and optimization to technical solution. Specifically, shown in Figure 2, the second access request sent described in the acquisition in previous embodiment from node, and according to Second access request executes corresponding access operation to the backboard configuration information database, obtains corresponding second and visits It asks as a result, be then back to the second access result described from node, can specifically include:
Step S21: the data read request sent from node is obtained;
Step S22: it according to the data read request, reads corresponding backboard in the backboard configuration information database and matches Confidence breath;
Step S23: the backboard configuration information read is back to described from node.
Specifically, may include the association attributes parameter of corresponding backboard configuration information in the data read request.It can be with Understand, it is described after the data read request that node is sent getting, it can be carried out to the data acquisition request Parsing, to obtain association attributes parameter therein, is then obtained according to the association attributes parameter to backboard configuration information database Corresponding backboard configuration information is taken, and is back to described from node.
On the basis of previous embodiment, the embodiment of the present application has carried out further instruction and optimization to technical solution. Specifically, shown in Figure 3, the second access request sent described in the acquisition in previous embodiment from node, and according to Second access request executes corresponding access operation to the backboard configuration information database, obtains corresponding second and visits It asks as a result, be then back to the second access result described from node, can specifically include:
Step S31: the data write request sent from node is obtained;
Step S32: according to the data write request, the corresponding number of write-in in Xiang Suoshu backboard configuration information database According to, and obtain the write-in feedback information of the backboard configuration information database return after this write operation;
Step S33: said write feedback information is back to described from node.
It is understood that may include corresponding data to be written in the data write request in the present embodiment.
Described referring to fig. 4, the embodiment of the present application also discloses a kind of backboard configuration information access of binode storage system Device is applied to host node, comprising:
First access modules 11, for itself needing to carry out data visit to backboard configuration information database when the host node It asks, then triggers the first access request, and carry out accordingly to the backboard configuration information database by first access request Access operation, with obtain it is corresponding first access result;
Second access modules 12, for needing when from node to backboard configuration information database progress data access, Second access request sent from node is then obtained, and according to second access request, to the backboard configuration information Database executes corresponding access operation, obtains corresponding second access as a result, being then back to the second access result It is described from node.
Wherein, first access modules, can specifically include:
Read requests acquiring unit, for obtaining the data read request sent from node;
Information reading unit, for reading phase in the backboard configuration information database according to the data read request The backboard configuration information answered;
First information return unit, the backboard configuration information for will read are back to described from node.
In addition, first access modules, can specifically include:
Write request acquiring unit, for obtaining the data write request sent from node;
Data write unit, for being written in Xiang Suoshu backboard configuration information database according to the data write request Corresponding data, and obtain the write-in feedback information of the backboard configuration information database return after this write operation;
Second information returning unit, it is described from node for said write feedback information to be back to.
In the embodiment of the present application, when host node needs to access backboard configuration information, corresponding visit can be triggered by host node Request is asked directly to access backboard configuration information database;Also, when needing to access backboard configuration information from node, from node Corresponding access request can be transmitted to host node, then directly backboard configuration information database is visited by host node It asks, then corresponding access result is back to from node by host node, is thus realized from node to backboard configuration information data The dereference in library.It can be seen that either host node still needs to access backboard with confidence from node in the embodiment of the present application Database is ceased, is finally that data access operation is directly executed by host node, that is, host node and respectively being initiated from node Access request, be that backboard configuration information database is conveyed to via host node, consequently facilitating by host node come control institute There is access of the node to backboard configuration information database, be thus conducive to during binode reads and writes backboard configuration information, Guarantee the validity of the consistency and data between information.
Further, disclosed herein as well is a kind of backboard configuration information access equipments of binode storage system, comprising:
Memory, for storing computer program;
Processor, for executing the computer program, to realize that backboard configuration information disclosed in previous embodiment accesses Method.
Further, disclosed herein as well is a kind of computer readable storage mediums, for storing computer program, In, backboard configuration information access method disclosed in previous embodiment is realized when the computer program is executed by processor.
It wherein, can be with reference to disclosed in previous embodiment about the specific steps of above-mentioned backboard configuration information access method Corresponding contents are no longer repeated herein.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other The difference of embodiment, same or similar part may refer to each other between each embodiment.For being filled disclosed in embodiment For setting, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part Explanation.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
Above to a kind of backboard configuration information access method of binode storage system provided herein, device, set Standby and medium is described in detail, and specific case used herein explains the principle and embodiment of the application It states, the description of the example is only used to help understand the method for the present application and its core ideas;Meanwhile for this field Those skilled in the art, according to the thought of the application, there will be changes in the specific implementation manner and application range, to sum up institute It states, the contents of this specification should not be construed as limiting the present application.

Claims (10)

1. a kind of backboard configuration information access method of binode storage system, which is characterized in that be applied to host node, comprising:
When the host node itself need to backboard configuration information database carry out data access, then trigger the first access request, And corresponding access operation is carried out to the backboard configuration information database by first access request, it is corresponding to obtain First access result;
When needing to carry out data access to the backboard configuration information database from node, then the sent from node is obtained Two access requests, and according to second access request, corresponding access operation is executed to the backboard configuration information database, Corresponding second access is obtained as a result, being then back to the second access result described from node.
2. the backboard configuration information access method of binode storage system according to claim 1, which is characterized in that described Second access request sent from node is obtained, and according to second access request, to the backboard configuration information number Corresponding access operation is executed according to library, obtains corresponding second access as a result, the second access result is then back to institute It states from node, comprising:
Obtain the data read request sent from node;
According to the data read request, corresponding backboard configuration information in the backboard configuration information database is read;
The backboard configuration information read is back to described from node.
3. the backboard configuration information access method of binode storage system according to claim 2, which is characterized in that described It include the association attributes parameter of corresponding backboard configuration information in data read request.
4. the backboard configuration information access method of binode storage system according to claim 1, which is characterized in that described Second access request sent from node is obtained, and according to second access request, to the backboard configuration information number Corresponding access operation is executed according to library, obtains corresponding second access as a result, the second access result is then back to institute It states from node, comprising:
Obtain the data write request sent from node;
According to the data write request, corresponding data are written in Xiang Suoshu backboard configuration information database, and obtain this The write-in feedback information that the backboard configuration information database returns after write operation;
Said write feedback information is back to described from node.
5. the backboard configuration information access method of binode storage system according to claim 4, which is characterized in that described Include corresponding data to be written in data write request.
6. a kind of backboard configuration information access mechanism of binode storage system, which is characterized in that be applied to host node, comprising:
First access modules, for itself needing to carry out data access to backboard configuration information database when the host node, then The first access request is triggered, and the backboard configuration information database is accessed accordingly by first access request Operation, to obtain corresponding first access result;
Second access modules, for when carrying out data access to the backboard configuration information database from node needs, then obtaining Second access request sent from node, and according to second access request, to the backboard configuration information database Execute corresponding access operation, obtain corresponding second access as a result, then by the second access result be back to it is described from Node.
7. the backboard configuration information access mechanism of binode storage system according to claim 6, which is characterized in that described First access modules, comprising:
Read requests acquiring unit, for obtaining the data read request sent from node;
Information reading unit, it is corresponding in the backboard configuration information database for reading according to the data read request Backboard configuration information;
First information return unit, the backboard configuration information for will read are back to described from node.
8. the backboard configuration information access mechanism of binode storage system according to claim 6, which is characterized in that described First access modules, comprising:
Write request acquiring unit, for obtaining the data write request sent from node;
Data write unit, for according to the data write request, write-in to be corresponding in Xiang Suoshu backboard configuration information database Data, and obtain the write-in feedback information that the backboard configuration information database returns after this write operation;
Second information returning unit, it is described from node for said write feedback information to be back to.
9. a kind of backboard configuration information access equipment of binode storage system characterized by comprising
Memory, for storing computer program;
Processor, for executing the computer program, to realize that backboard described in any one of claim 1 to 5 such as matches confidence Cease access method.
10. a kind of computer readable storage medium, which is characterized in that for storing computer program, wherein the computer journey Such as backboard configuration information access method described in any one of claim 1 to 5 is realized when sequence is executed by processor.
CN201811543057.0A 2018-12-17 2018-12-17 Backboard configuration information access method, device, equipment and medium Active CN109634965B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811543057.0A CN109634965B (en) 2018-12-17 2018-12-17 Backboard configuration information access method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811543057.0A CN109634965B (en) 2018-12-17 2018-12-17 Backboard configuration information access method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN109634965A true CN109634965A (en) 2019-04-16
CN109634965B CN109634965B (en) 2021-10-29

Family

ID=66074609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811543057.0A Active CN109634965B (en) 2018-12-17 2018-12-17 Backboard configuration information access method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN109634965B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012899A (en) * 2009-09-07 2011-04-13 中国移动通信集团公司 Method, system and equipment for updating data
CN103268318A (en) * 2013-04-16 2013-08-28 华中科技大学 Distributed key value database system with strong consistency and read-write method thereof
CN105187565A (en) * 2015-10-14 2015-12-23 四川携创信息技术服务有限公司 Method for utilizing network storage data
CN106100698A (en) * 2016-06-12 2016-11-09 南京南瑞集团公司 A kind of network-building method being applied to the power line carrier module that power information gathers
WO2018219351A1 (en) * 2017-06-02 2018-12-06 华为技术有限公司 Authentication method, device and system
CN108964948A (en) * 2017-05-19 2018-12-07 北京金山云网络技术有限公司 Principal and subordinate's service system, host node fault recovery method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012899A (en) * 2009-09-07 2011-04-13 中国移动通信集团公司 Method, system and equipment for updating data
CN103268318A (en) * 2013-04-16 2013-08-28 华中科技大学 Distributed key value database system with strong consistency and read-write method thereof
CN105187565A (en) * 2015-10-14 2015-12-23 四川携创信息技术服务有限公司 Method for utilizing network storage data
CN106100698A (en) * 2016-06-12 2016-11-09 南京南瑞集团公司 A kind of network-building method being applied to the power line carrier module that power information gathers
CN108964948A (en) * 2017-05-19 2018-12-07 北京金山云网络技术有限公司 Principal and subordinate's service system, host node fault recovery method and device
WO2018219351A1 (en) * 2017-06-02 2018-12-06 华为技术有限公司 Authentication method, device and system

Also Published As

Publication number Publication date
CN109634965B (en) 2021-10-29

Similar Documents

Publication Publication Date Title
CN105324770B (en) Effectively read copy
CN105190622B (en) Quick collapse for distributed data base system restores
US10248415B2 (en) Dynamic code generation and memory management for component object model data constructs
US10540119B2 (en) Distributed shared log storage system having an adapter for heterogenous big data workloads
CN105808736B (en) A kind of list data-updating method, apparatus and system
CN106302829A (en) A kind of information access method, device and server
EP2596425A2 (en) Membership tracking and data eviction in mobile middleware scenarios
CN111880956B (en) Data synchronization method and device
CN106855822A (en) For the method and apparatus of distributing real time system
US20240106668A1 (en) Proof-of-work operation method, proof-of-work chip, and upper computer
CN107479823B (en) Data verification method and device in random read-write file test
CN106453444A (en) Cache data sharing method and equipment
CN106357703B (en) Cluster switching method and device
CN109710185A (en) Data processing method and device
WO2018144350A2 (en) Efficient retrieval of memory values during trace replay
CN104423982A (en) Request processing method and device
CN106897338A (en) A kind of data modification request processing method and processing device for database
CN116755625A (en) Data processing method, device, equipment and readable storage medium
CN109254958B (en) Distributed data reading and writing method, device and system
CN111639087B (en) Data updating method and device in database and electronic equipment
US8768988B2 (en) Accessing snapshots of a time based file system
CN108932158A (en) A kind of method, apparatus and MDS server of meta data server issued transaction
CN109634965A (en) Backboard configuration information access method, device, equipment and medium
US9235349B2 (en) Data duplication system, data duplication method, and program thereof
CN106940660B (en) Method and device for realizing cache

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