CN107078919B - Method, device and equipment for acquiring reliability configuration strategy - Google Patents

Method, device and equipment for acquiring reliability configuration strategy Download PDF

Info

Publication number
CN107078919B
CN107078919B CN201480082764.8A CN201480082764A CN107078919B CN 107078919 B CN107078919 B CN 107078919B CN 201480082764 A CN201480082764 A CN 201480082764A CN 107078919 B CN107078919 B CN 107078919B
Authority
CN
China
Prior art keywords
reliability
reliability configuration
configuration policy
type identifier
data access
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
CN201480082764.8A
Other languages
Chinese (zh)
Other versions
CN107078919A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN107078919A publication Critical patent/CN107078919A/en
Application granted granted Critical
Publication of CN107078919B publication Critical patent/CN107078919B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Abstract

The embodiment of the invention provides a method, a device and equipment for acquiring a reliability configuration strategy, wherein the method comprises the following steps: receiving a data access request sent by an application program, wherein the data access request comprises an application type identifier; inquiring a reliability configuration policy base according to the application type identifier, wherein if the reliability configuration policy base comprises: acquiring a first reliability configuration strategy according to the corresponding relation between the application type identifier and the first reliability configuration strategy; wherein the first reliability configuration policy comprises a reliability processing method and a storage medium type of data access. The method can identify different application types and acquire the corresponding first reliability configuration strategy so as to improve the realization efficiency of the reliability mechanism of the cloud platform and the overall efficiency of the system.

Description

Method, device and equipment for acquiring reliability configuration strategy
Technical Field
The embodiment of the invention relates to the field of cloud computing, in particular to a method, a device and equipment for acquiring a reliability configuration strategy.
Background
Generally, the function of providing data reliability in a stand-alone system is fixed and unitary, and the composition of the storage medium is also fixed. In a cloud computing environment, the reliability requirements of the upper layer application and the storage medium of the bottom layer are changed: heterogeneous single-machine systems may exist under the same cloud platform, and the reliability requirements may be different; with the maturity of various novel storage media, the storage media of the single node under the cloud platform can gradually change, forming a hybrid storage system.
In the prior art, for different reliability requirements of upper-layer applications and mixed storage media of a bottom layer, a cloud platform provides a uniform access interface for the upper-layer applications, and for different application access requests, the cloud platform performs transaction processing in the mixed storage media by using the same reliability method.
Because the cloud platform layer provides a uniform reliability method for the application programs with different reliability requirements, the situation that the service is excessive (i.e. a high reliability method is provided for the application with low reliability requirement) or insufficient (i.e. a low reliability method is provided for the application with high reliability requirement) may occur, the corresponding reliability configuration strategy cannot be adopted for different application accesses, so that the implementation efficiency of the reliability mechanism is not high, and the overall efficiency of the system is affected.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, and a device for acquiring a reliability configuration policy, so as to solve the problem that the implementation efficiency of a reliability mechanism is not high and the overall efficiency of a system is affected because a corresponding reliability configuration policy cannot be adopted for different application accesses.
A first aspect of an embodiment of the present invention provides a method for acquiring a reliability configuration policy, where the method includes:
receiving a data access request sent by an application program, wherein the data access request comprises an application type identifier;
inquiring a reliability configuration policy base according to the application type identifier, wherein if the reliability configuration policy base comprises: acquiring a first reliability configuration strategy according to the corresponding relation between the application type identifier and the first reliability configuration strategy; wherein the first reliability configuration policy comprises a reliability processing method and a storage medium type of data access.
With reference to the first aspect, in a first possible implementation manner, the method further includes:
the data access request also comprises a file type identifier;
if the reliability configuration policy base does not include: if the application type identifier corresponds to the first reliability configuration policy, querying the reliability configuration policy library according to the file type identifier, where the reliability configuration policy library includes: acquiring a second reliability configuration strategy according to the corresponding relation between the file type identification and the second reliability configuration strategy; wherein the second reliability configuration policy includes a reliability processing method and a storage medium type of data access.
A second aspect of the embodiments of the present invention provides an apparatus for acquiring a reliability configuration policy, including:
the receiving module is used for receiving a data access request sent by an application program, wherein the data access request comprises an application type identifier;
a processing module, configured to query a reliability configuration policy base according to the application type identifier, if the reliability configuration policy base includes: acquiring a first reliability configuration strategy according to the corresponding relation between the application type identifier and the first reliability configuration strategy; wherein the first reliability configuration policy comprises a reliability processing method and a storage medium type of data access.
With reference to the second aspect, in a first possible implementation manner, the apparatus further includes:
the processing module is further configured to, if the reliability configuration policy base does not include: if the application type identifier corresponds to the first reliability configuration policy, querying the reliability configuration policy library according to the file type identifier, where the reliability configuration policy library includes: acquiring a second reliability configuration strategy according to the corresponding relation between the file type identification and the second reliability configuration strategy; wherein the second reliability configuration policy includes a reliability processing method and a storage medium type of data access.
A third aspect of the embodiments of the present invention provides an apparatus for acquiring a reliability configuration policy, including:
the system comprises a processor, a memory, a communication interface and a bus, wherein the processor, the memory and the communication interface are connected through the bus;
the memory is used for storing programs;
the equipment for acquiring the reliability configuration strategy is communicated with external equipment through the communication interface; the processor is configured to execute the program stored in the memory to perform the method of claim 1 or 2 when the device for obtaining the reliability configuration policy is run.
According to the method, the device and the equipment for acquiring the reliability configuration policy, provided by the embodiment of the invention, by receiving a data access request sent by an application program, wherein the data access request comprises an application type identifier, querying a reliability configuration policy library according to the application type identifier, and if the reliability configuration policy library comprises: acquiring a first reliability configuration strategy according to the corresponding relation between the application type identifier and the first reliability configuration strategy; wherein the first reliability configuration policy comprises a reliability processing method and a storage medium type of data access. Therefore, the corresponding reliability configuration strategy is obtained aiming at different application type identifications, and the realization efficiency of the reliability mechanism of the cloud platform and the overall efficiency of the system are improved.
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 some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a first embodiment of a method for acquiring a reliability configuration policy according to the present invention;
fig. 2 is a schematic flowchart of a second embodiment of a method for acquiring a reliability configuration policy according to the present invention;
fig. 3 is a schematic structural diagram of a first apparatus for acquiring a reliability configuration policy according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a second embodiment of an apparatus for acquiring a reliability configuration policy according to the present invention;
fig. 5 is a schematic structural diagram of a first embodiment of an apparatus for acquiring a reliability configuration policy provided by the present invention.
Detailed Description
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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
Fig. 1 is a flowchart illustrating a first embodiment of a method for acquiring a reliability configuration policy, where as shown in fig. 1, the method for acquiring a reliability configuration policy may be executed by an acquiring device of a reliability configuration policy, and specifically includes the following steps:
s101: and receiving a data access request sent by an application program, wherein the data access request comprises an application type identifier.
Specifically, the data access request sent by the application program is received through a universal access interface in the acquisition device for the reliability configuration policy, that is, the application program sends the data access request through the universal access interface, and the data access request may include information such as an application type identifier, a file type identifier, and a transaction operation, where the application type identifier is an application type of the application program, such as office, video, qq, and the like, the file type identifier is a type of a file accessed by the application program, such as txt, pdf, rmvb, and the transaction operation includes operations such as reading, writing, submitting, and aborting of a transaction.
S102: and querying a reliability configuration policy library according to the application type identifier.
The static form of the reliability configuration policy repository is a configuration file, and the configuration file during running can be analyzed into a related data structure and resides in the memory.
S103: judging whether the reliability configuration policy library comprises a corresponding relation between the application type identifier and the first reliability configuration policy, if so, executing the step S104; if not, go to step 105. S104: acquiring a first reliability configuration strategy, and ending the process; the first reliability configuration policy comprises a reliability processing method and a storage medium type of data access.
The reliability processing method includes methods such as log, copy-on-write, multi-copy, and the like, and the types of storage media for data Access include a Phase Change Memory (PCM), a Dynamic Random Access Memory (DRAM), a Solid State Disk (SSD), and the like.
Specifically, the obtaining device of the reliability configuration policy searches in the reliability configuration policy library according to the application type identifier, and if the reliability configuration policy library includes the corresponding relationship between the application type identifier and the first reliability configuration policy, that is, the corresponding first reliability configuration policy can be found in the pre-stored reliability configuration policy library according to the application type identifier, the obtaining device of the reliability configuration policy performs the transaction operation on the storage medium corresponding to the data access by using the reliability processing method in the first reliability configuration policy.
To make the present embodiment clearer, the following description will be made by way of example.
If an application office sends a data access request through a general access interface, and an obtaining device of a reliability configuration policy receives the data access request, where the data access request includes data information such as an application type identifier, a file type identifier, and a transaction operation, and if the application office is supposed to perform a write operation on a text document, the data information in the data access request may include: an application type identifier office, a file type identifier txt and a write operation.
The device for acquiring the reliability configuration policy searches in a reliability configuration policy library according to the application type identifier office, the static form of the reliability configuration policy library is a configuration file, and the following is an example of the reliability configuration file:
<?xml version=″1.0″encoding=″ISO-8859-1″?>
<Transaction MANAGER>
<App>
<ID>1</ID>
<Name>Office</Name>
<Port>8080</Port>
<TransactionMethod>Log</TransactionMethod>
<StorageType>PCM</StorageType>
</App>
<App>
<ID>2</ID>
<Name>Video</Name>
<Port>5678</Port>
<TransactionMethod>None</TransactionMethod>
<StorageType>DRAM</StorageType>
</App>
</Transaction MANAGER>
in this example, a first reliability configuration policy is set for 2 applications, where a part included in the first < App > </App > is a first reliability configuration policy set for an application type identifier, where < Name > Office </Name > represents that the application type identifier is Office, < TransactionMethod > Log </TransactionMethod > represents that the reliability processing method adopted is Log, i.e., a Log manner, < storage type > PCM </storage type > represents that the storage medium type of data access is PCM, and therefore, an application with the application type identifier of Office can be known by searching a reliability configuration policy base, the reliability processing method configured for the application is Log, and the storage medium type of data access is PCM.
The second part included in App is the first reliability configuration policy set for the application type identifier video, where the Name video represents that the application type identifier is video, and the TransactionMethod None TransactionMethod represents that no reliability processing method is used, i.e. data is directly read, written, etc., and the DRAM represents that the storage medium type of data access is DRAM, so that the application with the application type identifier video can be known by searching the reliability configuration policy library, the reliability processing method configured for the application is None, i.e. no reliability processing method is used, and the storage medium type of data access is DRAM.
By searching the reliability configuration policy base, the following steps are known: the first reliability configuration strategy configured for the office in the reliability configuration strategy library is Log and PCM, and at this time, the obtaining device of the reliability configuration strategy performs write operation on the PCM by using a Log method.
In the embodiment, a data access request sent by an application program is received, and the data access request comprises an application type identifier; inquiring a reliability configuration policy base according to the application type identifier, wherein if the reliability configuration policy base comprises: and then, operating the storage medium type accessed by the data according to a reliability processing method in the first reliability configuration strategy to realize different application type identifications and obtain the corresponding first reliability configuration strategy so as to improve the realization efficiency of the reliability mechanism of the cloud platform and the overall efficiency of the system.
Further, on the basis of the above embodiment, if the reliability configuration policy repository does not include: and if the application type identifier is 1, the reliability configuration policy 1, namely the first reliability configuration policy, can be obtained after table lookup.
Watch 1
Application type identification Reliability configuration policy
Application type identification 1 Reliability configuration policy 1
Application type identification 2 Reliability configuration policy 2
As shown in table one, if the application type identifier in the data access request is the application type identifier 3, and the table one does not include the application type identifier 3 and set a corresponding reliability configuration policy, the above embodiment further includes the following steps:
s105: the data access request also comprises a file type identifier, and a reliability configuration policy library is inquired according to the file type identifier.
Wherein, the reliability configuration strategy library comprises: the corresponding relation between the file type identifier and the second reliability configuration strategy, so that the second reliability configuration strategy can be obtained through the file type identifier;
as shown in table two, in S103, it is determined that the reliability configuration policy library does not include the corresponding relationship between the application type identifier and the first reliability configuration policy, for example, the received data access request includes the application type identifier 3, but the table two does not include the corresponding relationship between the application type identifier 3 and the reliability configuration policy, the data access request further includes the file type identifier 2, and the table two is queried according to the file type identifier 2 to obtain the reliability configuration policy 4, that is, the second reliability configuration policy in S105.
Watch two
Application type identification Reliability configuration policy
Application type identification 1 Reliability arrangementPolicy 1
Application type identification 2 Reliability configuration policy 2
File type identifier 1 Reliability configuration policy 3
File type identification 2 Reliability configuration policy 4
S106: and processing the data access request according to the searched second reliability configuration strategy, and ending the process, wherein the second reliability configuration strategy comprises a reliability processing method and a storage medium type accessed by the data.
Specifically, the device for acquiring the reliability configuration policy searches in the reliability configuration policy library according to the file type identifier, and performs transaction operation on the storage medium corresponding to the data access according to the reliability processing method in the searched second reliability configuration policy.
In this embodiment, if the corresponding first reliability configuration policy cannot be found in the reliability configuration policy library according to the application type identifier, the corresponding second reliability configuration policy is found in the reliability configuration policy library according to the corresponding file type identifier in the data access request, and then the data access request is processed according to the found second reliability configuration policy, so that the second reliability configuration policy can still be obtained through the file type identifier under the condition that the first reliability configuration policy cannot be obtained through the application type identifier, and a corresponding reliability processing method and a storage medium type for data access are provided for different application program data access requests, so as to improve the implementation efficiency of the reliability mechanism and the overall efficiency of the system.
In the foregoing embodiments, in addition to receiving a data access request sent by an application program through a general access interface, on the basis of the foregoing embodiments, another implementation manner is also included, and fig. 2 is a schematic flow diagram of a second embodiment of a method for acquiring a reliability configuration policy provided by the present invention, as shown in fig. 2, the implementation manner includes the following steps:
s201: and receiving a data access request sent by the application program through the reliability access interface.
For applications with specific settings, the data access request may be sent directly through the reliability access interface.
S202: and the reliability access interface corresponds to a third reliability configuration strategy and processes the data access request according to the third reliability configuration strategy. The third reliability configuration policy comprises a reliability processing method corresponding to the reliability access interface and a storage medium type of data access.
The reliability access interface is provided with a corresponding third reliability configuration strategy, the reliability configuration strategy is fixed, and all application programs which carry out data access requests through the reliability access interface provide the same third reliability configuration strategy.
In this embodiment, a data access request sent by an application program is received through a reliability access interface, the reliability access interface corresponds to a third reliability configuration policy, and the data access request is processed according to the third reliability configuration policy, and because the third reliability configuration policy corresponding to the reliability access interface is fixed, when the application program directly accesses through the reliability access interface, the application program does not need to search in a reliability configuration policy library, so that the requirements of providing a corresponding reliability processing method and a data access storage medium type for each application access request are met, the processing efficiency of the data access of the application program can be improved, the burden of the general access interface for receiving the data access request sent by the application program is reduced, that is, the implementation efficiency of the reliability mechanism and the overall efficiency of the system are improved.
Further, the reliability access interfaces in the above embodiments include a plurality of interfaces, and each reliability access interface corresponds to a respective third reliability configuration policy.
Because the reliability access interface can only be accessed by the application program with specific setting, the specific setting can enable the application program to independently select which reliability access interface should be accessed, and the reliability access interface corresponds to the fixed third reliability configuration policy, for the application programs with different specific settings, different reliability access interfaces need to be accessed, so as to achieve the purpose of adopting the third reliability configuration policy corresponding to the application program, further meet the requirement of providing corresponding reliability processing methods and data access storage medium types for each application access request, and improve the implementation efficiency of the reliability mechanism and the overall efficiency of the system.
Fig. 3 is a schematic structural diagram of a first apparatus for acquiring a reliability configuration policy according to an embodiment of the present invention; as shown in fig. 3, the processing apparatus for reliability configuration includes a receiving module 401 and a processing module 402, where the receiving module 401 is configured to receive a data access request sent by an application program, and the data access request includes an application type identifier.
The receiving module 401 receives a data access request sent by an application program, where the data access request may include information such as an application type identifier, a file type identifier, and a transaction operation, where the application type identifier is an application type of the application program, such as office, video, qq, etc., the file type identifier is a type of a file accessed by the application program, such as txt, pdf, rmvb, etc., and the transaction operation includes operations such as read, write, commit, and abort of a transaction.
A processing module 402, configured to query a reliability configuration policy base according to the application type identifier, if the reliability configuration policy base includes: applying the corresponding relation between the type identification and the first reliability configuration strategy to obtain the first reliability configuration strategy; the first reliability configuration policy comprises a reliability processing method and a storage medium type of data access.
The static form of the reliability configuration policy repository is a configuration file, and the configuration file during running can be analyzed into a related data structure and resides in the memory. The first reliability configuration policy comprises a reliability processing method and a storage medium type of data access, wherein the reliability processing method comprises a log method, a copy-on-write method, a multi-copy method and the like, and the storage medium type of data access comprises a PCM (pulse code modulation), a DRAM (dynamic random access memory), an SSD and the like.
In this embodiment, the receiving module 401 is configured to receive a data access request sent by an application program, and then the processing module 402 queries a reliability configuration policy base according to an application type identifier in the data access request, where if the reliability configuration policy base includes: and acquiring the first reliability configuration strategy according to the corresponding relation between the application type identifier and the first reliability configuration strategy so as to realize that corresponding reliability processing methods and data access storage medium types are provided for different application access requests, thereby improving the realization efficiency of a reliability mechanism and the overall efficiency of a system.
Further, on the basis of the foregoing embodiment, the processing module 402 is further configured to, if the reliability configuration policy base does not include: and querying a reliability configuration policy library according to the file type identifier by using the corresponding relation between the type identifier and the first reliability configuration policy, wherein the reliability configuration policy library comprises: acquiring a second reliability configuration strategy according to the corresponding relation between the file type identifier and the second reliability configuration strategy; wherein the second reliability configuration policy comprises a reliability processing method and a storage medium type of data access.
In this embodiment, if the corresponding first reliability configuration policy cannot be found in the reliability configuration policy library according to the application type identifier, the processing module 402 finds the corresponding second reliability configuration policy in the reliability configuration policy library according to the file type identifier, and then processes the data access request according to the found second reliability configuration policy, so that under the condition that the first reliability configuration policy cannot be obtained through the application type identifier, the corresponding reliability processing method and the storage medium type of data access for different application access requests can still be provided, so as to improve the implementation efficiency of the reliability mechanism and the overall efficiency of the system.
Fig. 4 is a schematic structural diagram of a second embodiment of an apparatus for acquiring a reliability configuration policy according to the present invention, and as shown in fig. 4, an apparatus 1 for acquiring a reliability configuration policy includes an access interface 11, a reliability controller 12, a reliability configuration module 14, and a reliability processing method library 15, where the access interface 11 belongs to a receiving module 401, and the reliability controller 12, the reliability configuration module 14, and the reliability processing method library 15 belong to a processing module 402.
The access interface 11 includes a general access interface 111 for receiving a data access request sent by an application program.
The access interface 11 provides an entry for data access for an application program, and the application program can send a data access request through the access interface 11. The data access request may include information such as an application type identifier, a file type identifier, and a transaction operation, where the application type identifier is an application type of the application program, such as office, video, qq, etc., the file type identifier is a type of a file accessed by the application program, such as txt, pdf, rmvb, etc., and the transaction operation includes operations such as read, write, commit, and abort of the transaction.
The reliability controller 12 is configured to obtain an application type identifier corresponding to the data access request, and search a corresponding first reliability configuration policy in the reliability configuration module 14 according to the application type identifier, where the first reliability configuration policy includes a reliability processing method and a storage medium type of data access; the corresponding reliability processing method module 151 in the reliability processing method library 15 is called according to the reliability processing method. And the reliability configuration module 14 is used for storing a reliability configuration policy library 141.
And the reliability processing method library 15 is used for storing the reliability processing method module 151. The reliability processing method modules 151 need to be stored in the reliability processing method library 15 in advance, and a corresponding reliability processing method module 151 needs to be set for each reliability processing method, that is, the reliability processing methods and the reliability processing method modules 151 are in a one-to-one correspondence relationship.
Specifically, the universal access interface 111 receives a data access request sent by an application program, the reliability controller 12 obtains an application type identifier corresponding to the data access request, then searches in the reliability configuration policy library 141 according to the application type identifier, if a corresponding first reliability configuration policy can be found in the pre-stored reliability configuration policy library 141 according to the application type identifier, the reliability controller 12 calls a corresponding reliability processing method module 151 in the reliability processing method library 15 according to a reliability processing method, and the reliability processing method module 151 performs the data access request on a storage medium type for data access when operating. The static form of the reliability configuration policy repository 141 is a configuration file, and the runtime configuration file is parsed into a related data structure and resides in a memory. The first reliability configuration policy comprises a reliability processing method and a storage medium type of data access, wherein the reliability processing method comprises a log method, a copy-on-write method, a multi-copy method and the like, and the storage medium type of data access comprises a PCM (pulse code modulation), a DRAM (dynamic random access memory), an SSD and the like.
To make the present embodiment clearer, the following description will be made by way of example.
If an application office sends a data access request through the universal access interface 111, the reliability controller 12 intercepts the data access request, and obtains data information such as an application type identifier, a file type identifier, and a transaction operation in the data access request, and if the application office is supposed to perform a write operation on a text document, the data information intercepted by the reliability controller 12 may include: an application type identifier office, a file type identifier txt and a write operation.
The reliability controller 12 searches in the reliability configuration policy repository 141 of the reliability configuration module 14 according to the obtained application type identifier office, where a static form of the reliability configuration policy repository 141 is a configuration file, which may be referred to as the configuration file exemplified in the above method embodiment.
By looking up the reliability configuration policy repository 141, it can be seen that: the first reliability configuration policy configured for the office by the reliability configuration policy base 141 is Log and PCM, at this time, the reliability controller 12 calls a reliability processing method module 151 corresponding to the Log, and the reliability processing method module 151 makes a data access request for a storage medium type to which data is accessed when running.
In the apparatus for acquiring a reliability configuration policy in this embodiment, the universal access interface 111 receives a data access request sent by an application program, the reliability controller 12 acquires an application type identifier corresponding to the data access request, searches the reliability configuration policy library 141 according to the application type identifier to acquire a first reliability configuration policy, and calls a corresponding reliability processing method module 151 in the reliability processing method library 15 according to a reliability processing method in the first reliability configuration policy, and the reliability processing method module 151 sends the data access request to a corresponding storage medium type when running, so that a corresponding reliability processing method and a storage medium type for data access are provided for different application access requests, thereby improving the implementation efficiency of a reliability mechanism and the overall efficiency of a system.
On the basis of the foregoing embodiment, the reliability controller 12 is further configured to, if the corresponding first reliability configuration policy cannot be found in the reliability configuration policy library 141 according to the application type identifier, obtain the corresponding file type identifier from the data access request, find the corresponding second reliability configuration policy in the reliability configuration policy library 141 according to the file type identifier, and then call the corresponding reliability processing method module 151 in the reliability processing method library 15 according to the reliability processing method.
In this embodiment, if the first reliability configuration policy corresponding to the application type identifier cannot be found in the reliability configuration policy library 141 according to the application type identifier, the reliability controller 12 searches the second reliability configuration policy corresponding to the file type identifier in the reliability configuration policy library 141, and then processes the data access request according to the second reliability configuration policy found, so that under the condition that the first reliability configuration policy cannot be obtained through the application type identifier, the reliability controller can still provide a corresponding reliability processing method and a data access storage medium type for different application access requests, so as to improve the implementation efficiency of the reliability mechanism and the overall efficiency of the system.
Further, on the basis of the above embodiment, the apparatus for obtaining the reliability configuration policy may further include a storage medium access wrapper 13, configured to process the data access request of the reliability processing method module 151. The reliability processing method module 151 sends a data access request to the storage medium access wrapper 13 during operation, and the storage medium access wrapper 13 accesses the storage medium according to the data access request, so that a corresponding reliability processing method and a storage medium type of data access are provided for different application access requests, and the implementation efficiency of a reliability mechanism and the overall efficiency of a system are improved.
On the basis of the above embodiment, as shown in fig. 5, the access interface 11 further includes:
the reliability access interface 112 is configured to receive a data access request sent by an application program, and the reliability access interface 121 corresponds to a third reliability configuration policy, where the third reliability configuration policy includes a reliability processing method corresponding to the reliability access interface 121 and a storage medium type of data access; the reliability access interface 121 calls the corresponding reliability processing method module 151 in the reliability processing method library 15 according to the reliability processing method.
Wherein the trusted access interface 112 is configured to directly access the trusted access interface 112 for applications having specific settings. The reliability access interface has a corresponding third reliability configuration policy, and the third reliability configuration policy is fixed, and all the applications that make data access requests through the reliability access interface 112 provide the same third reliability configuration policy.
The reliability access interface 112 receives a data access request sent by an application program, and since the reliability access interface corresponds to the third reliability configuration policy, a corresponding reliability processing method can be directly obtained, the interface calls a corresponding reliability processing method module 151 according to the reliability processing method, and the reliability processing method module 151 processes data in the type of the storage medium to which the data access is made according to the received data access request when running.
In this embodiment, the reliability access interface 112 receives a data access request sent by an application program, the reliability access interface 112 corresponds to a third reliability configuration policy, and processes the data access request according to the third reliability configuration policy, and since the third reliability configuration policy corresponding to the reliability access interface 112 is fixed, when the application program directly accesses through the reliability access interface 112, the application program does not need to search in the reliability configuration policy library 141, so that the processing efficiency of data access of the application program can be improved while the requirement of providing a corresponding reliability processing method and a storage medium type of data access for each application access request is met, the burden of the general access interface 111 for receiving the data access request sent by the application program is reduced, that is, the implementation efficiency of the reliability mechanism and the overall efficiency of the system are improved.
Further, on the basis of the above embodiment, the reliability processing method module 151 may send a data access request to the storage medium access wrapper 13 during running, and the storage medium access wrapper 13 accesses the storage medium according to the data access request, so as to implement a corresponding reliability processing method and a storage medium type of data access provided for different application access requests, so as to improve the implementation efficiency of the reliability mechanism and the overall efficiency of the system.
On the basis of the above embodiment, the reliability access interface 112 includes a plurality of interfaces, and each reliability access interface corresponds to a respective third reliability configuration policy.
Because the reliability access interface 112 can only be accessed by an application program with specific settings, the specific settings can enable the application program to autonomously select which reliability access interface 112 should be accessed, and the reliability access interface 112 corresponds to a fixed third reliability configuration policy, for application programs with different specific settings, different reliability access interfaces 112 need to be accessed, so as to achieve the purpose of adopting the third reliability configuration policy corresponding to the application program, further meet the requirements of providing corresponding reliability processing methods and storage medium types for data access for each application access request, and improve the implementation efficiency of the reliability mechanism and the overall efficiency of the system.
Fig. 5 is a schematic structural diagram of a first embodiment of an apparatus for acquiring a reliability configuration policy, provided by the present invention, as shown in fig. 5, the apparatus includes: a processor 301, a memory 302, a communication interface 303, and a bus 304, wherein the processor 301, the memory 302, and the communication interface 303 are connected by the bus 304;
the memory 302 is used for storing programs;
the acquiring device of the reliability configuration policy communicates with the external device through the communication interface 303;
the processor 301 is adapted to execute the program stored in the memory 302 to perform the method of claim 1 or 2 when the acquiring device of the reliability configuration policy is running.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (5)

1. A method for acquiring a reliability configuration policy is characterized by comprising the following steps:
receiving a data access request sent by an application program, wherein the data access request comprises an application type identifier, a file type identifier and a transaction operation;
inquiring a reliability configuration policy base according to the application type identifier, wherein if the reliability configuration policy base comprises: acquiring a first reliability configuration strategy according to the corresponding relation between the application type identifier and the first reliability configuration strategy; the first reliability configuration strategy comprises a reliability processing method and a storage medium type of data access, wherein the reliability processing method comprises a log, copy-on-write and multi-copy;
and performing the transaction operation on the storage medium accessed by the data by adopting the reliability processing method in the first reliability configuration strategy.
2. The method of claim 1, wherein if the reliability configuration policy repository does not include: if the application type identifier corresponds to the first reliability configuration policy, querying the reliability configuration policy library according to the file type identifier, where the reliability configuration policy library includes: acquiring a second reliability configuration strategy according to the corresponding relation between the file type identification and the second reliability configuration strategy; wherein the second reliability configuration policy includes a reliability processing method and a storage medium type of data access.
3. An apparatus for acquiring a reliability configuration policy, comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a data access request sent by an application program, and the data access request comprises an application type identifier, a file type identifier and a transaction operation;
a processing module, configured to query a reliability configuration policy base according to the application type identifier, if the reliability configuration policy base includes: acquiring a first reliability configuration strategy according to the corresponding relation between the application type identifier and the first reliability configuration strategy; the first reliability configuration strategy comprises a reliability processing method and a storage medium type of data access, wherein the reliability processing method comprises a log, copy-on-write and multi-copy;
the processing module is further configured to perform the transaction operation on the storage medium accessed by the data by using the reliability processing method in the first reliability configuration policy.
4. The apparatus of claim 3, comprising:
the processing module is further configured to, if the reliability configuration policy base does not include: if the application type identifier corresponds to the first reliability configuration policy, querying the reliability configuration policy library according to the file type identifier, where the reliability configuration policy library includes: acquiring a second reliability configuration strategy according to the corresponding relation between the file type identification and the second reliability configuration strategy; wherein the second reliability configuration policy includes a reliability processing method and a storage medium type of data access.
5. An apparatus for acquiring a reliability configuration policy, comprising:
the system comprises a processor, a memory, a communication interface and a bus, wherein the processor, the memory and the communication interface are connected through the bus;
the memory is used for storing programs;
the equipment for acquiring the reliability configuration strategy is communicated with external equipment through the communication interface;
the processor is configured to execute the program stored in the memory to perform the method of claim 1 or 2 when the device for obtaining the reliability configuration policy is run.
CN201480082764.8A 2014-10-30 2014-10-30 Method, device and equipment for acquiring reliability configuration strategy Active CN107078919B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/089945 WO2016065592A1 (en) 2014-10-30 2014-10-30 Method, device and apparatus for obtaining reliability configuration strategy

Publications (2)

Publication Number Publication Date
CN107078919A CN107078919A (en) 2017-08-18
CN107078919B true CN107078919B (en) 2020-07-07

Family

ID=55856410

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201480082764.8A Active CN107078919B (en) 2014-10-30 2014-10-30 Method, device and equipment for acquiring reliability configuration strategy

Country Status (2)

Country Link
CN (1) CN107078919B (en)
WO (1) WO2016065592A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416619A (en) * 2020-11-23 2021-02-26 平安普惠企业管理有限公司 Interface configuration method, equipment, terminal and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1703007A (en) * 2004-02-20 2005-11-30 国际商业机器公司 Method, system for checking and repairing a network configuration
CN101147369A (en) * 2005-03-21 2008-03-19 艾利森电话股份有限公司 Automatic QoS configuration
CN101321357A (en) * 2007-06-05 2008-12-10 中兴通讯股份有限公司 Long-term evolution network management system and method
CN101572718A (en) * 2008-04-30 2009-11-04 张文 IP QoS unified strategic system based on oriented application and method thereof
CN101605057A (en) * 2009-07-02 2009-12-16 中兴通讯股份有限公司 A kind of home gateway is realized the method and system of downlink Qos
CN101904133A (en) * 2007-12-17 2010-12-01 爱立信电话股份有限公司 Method and arrangement for network QOS
CN102291777A (en) * 2010-06-18 2011-12-21 鼎桥通信技术有限公司 Service quality strategy configuring method
CN102571615A (en) * 2012-03-14 2012-07-11 成都市广达电子电讯技术开发有限公司 Quality of service (QOS) strategy realizing method based on Ethernet over coax (EOC) terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080049648A1 (en) * 2006-08-28 2008-02-28 Motorola, Inc. Method and apparatus for policy management for an internet protocol multimedia subsystem based wireless communication system
US20110145063A1 (en) * 2009-12-15 2011-06-16 Microsoft Corporation Targeting applications with advertisements
US9300548B2 (en) * 2011-10-14 2016-03-29 Alcatel Lucent Providing dynamic reliability and security in communications environments
US8751493B2 (en) * 2012-04-23 2014-06-10 Google Inc. Associating a file type with an application in a network storage service
CN102938784A (en) * 2012-11-06 2013-02-20 无锡江南计算技术研究所 Method and system used for data storage and used in distributed storage system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1703007A (en) * 2004-02-20 2005-11-30 国际商业机器公司 Method, system for checking and repairing a network configuration
CN101147369A (en) * 2005-03-21 2008-03-19 艾利森电话股份有限公司 Automatic QoS configuration
CN101321357A (en) * 2007-06-05 2008-12-10 中兴通讯股份有限公司 Long-term evolution network management system and method
CN101904133A (en) * 2007-12-17 2010-12-01 爱立信电话股份有限公司 Method and arrangement for network QOS
CN101572718A (en) * 2008-04-30 2009-11-04 张文 IP QoS unified strategic system based on oriented application and method thereof
CN101605057A (en) * 2009-07-02 2009-12-16 中兴通讯股份有限公司 A kind of home gateway is realized the method and system of downlink Qos
CN102291777A (en) * 2010-06-18 2011-12-21 鼎桥通信技术有限公司 Service quality strategy configuring method
CN102571615A (en) * 2012-03-14 2012-07-11 成都市广达电子电讯技术开发有限公司 Quality of service (QOS) strategy realizing method based on Ethernet over coax (EOC) terminal

Also Published As

Publication number Publication date
WO2016065592A1 (en) 2016-05-06
CN107078919A (en) 2017-08-18

Similar Documents

Publication Publication Date Title
US20150006487A1 (en) Method and apparatus for checkpointing and restarting container status
US10754869B2 (en) Managing data format of data received from devices in an internet of things network
CN104113576A (en) Method and device for updating client
US20120047115A1 (en) Extent reference count update system and method
US20150195138A1 (en) Cloud-Based Service Resource Provisioning Based on Network Characteristics
CN105446813A (en) Resource distribution method and device
US9081604B2 (en) Automatic discovery of externally added devices
CN107861691B (en) Load balancing method and device of multi-control storage system
CN113032099B (en) Cloud computing node, file management method and device
EP3786802A1 (en) Method and device for failover in hbase system
US20160292009A1 (en) Execution offloading through syscall trap interface
CN116028455A (en) Data processing method and device, storage medium and electronic equipment
CN109388651B (en) Data processing method and device
CN108647102B (en) Service request processing method and device of heterogeneous system and electronic equipment
WO2016095644A1 (en) High availability solution method and device for database
CN107276998B (en) OpenSSL-based performance optimization method and device
CN103500108A (en) System memory access method, node processor and multi-processor system
CN107078919B (en) Method, device and equipment for acquiring reliability configuration strategy
CN112527792A (en) Data storage method, device, equipment and storage medium
CN111309432B (en) Fault drilling method, device and system
US9509718B1 (en) Network-attached storage solution for application servers
US9537941B2 (en) Method and system for verifying quality of server
EP3082050A1 (en) Mass data fusion storage method and system
US20160308723A1 (en) Capability determination for computing resource allocation
US9858085B2 (en) Information processing including BIOS apparatus, information processing method thereof, 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