WO2016065592A1 - 可靠性配置策略的获取方法、装置及设备 - Google Patents

可靠性配置策略的获取方法、装置及设备 Download PDF

Info

Publication number
WO2016065592A1
WO2016065592A1 PCT/CN2014/089945 CN2014089945W WO2016065592A1 WO 2016065592 A1 WO2016065592 A1 WO 2016065592A1 CN 2014089945 W CN2014089945 W CN 2014089945W WO 2016065592 A1 WO2016065592 A1 WO 2016065592A1
Authority
WO
WIPO (PCT)
Prior art keywords
reliability
configuration policy
reliability configuration
data access
type identifier
Prior art date
Application number
PCT/CN2014/089945
Other languages
English (en)
French (fr)
Inventor
黄文龙
王华卿
朱冠宇
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201480082764.8A priority Critical patent/CN107078919B/zh
Priority to PCT/CN2014/089945 priority patent/WO2016065592A1/zh
Publication of WO2016065592A1 publication Critical patent/WO2016065592A1/zh

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

Definitions

  • the embodiments of the present invention relate to the field of cloud computing, and in particular, to a method, an apparatus, and a device for acquiring a reliability configuration policy.
  • the functionality to provide data reliability in a stand-alone system is fixed and singular, and the composition of the storage medium is also fixed.
  • the reliability requirements of the upper application and the underlying storage medium will change: there may be heterogeneous stand-alone systems under the same cloud platform, and the reliability requirements may be different; with a variety of new storage media Mature, single-node storage media under the cloud platform will gradually change to form a hybrid storage system.
  • the cloud platform provides a unified access interface for the upper layer application, and the cloud platform uses the same reliability method for mixing for different application access requests. Transaction processing in the storage medium.
  • the cloud platform layer provides a unified reliability method for applications with different reliability requirements, there may be excessive services (that is, high reliability methods for applications with low reliability requirements) or insufficient services (ie, reliable). If the application with high requirements provides a low-reliability method, it cannot be accessed for different applications, and the corresponding reliability configuration strategy is adopted, resulting in low efficiency of the reliability mechanism and affecting the overall efficiency of the system.
  • the embodiments of the present invention provide a method, a device, and a device for acquiring a reliability configuration policy, so as to solve the problem that the access cannot be applied to different applications, and the corresponding reliability configuration policy is adopted, so that the reliability of the reliability mechanism is not high, and the overall system is affected.
  • the problem of efficiency
  • a first aspect of the embodiments of the present invention provides a method for obtaining a reliability configuration policy, including:
  • the first reliability configuration policy includes a reliability processing method and a storage medium type of data access.
  • the method further includes:
  • the data access request further includes a file type identifier
  • the reliability configuration policy library includes: a correspondence between the file type identifier and the second reliability configuration policy, and the second reliability configuration policy is obtained; wherein the second reliability configuration policy includes a reliability processing method and data access The type of storage medium.
  • a second aspect of the embodiments of the present invention provides a device for acquiring a reliability configuration policy, including:
  • a receiving module configured to receive a data access request sent by an application, where the data access request includes an application type identifier
  • a processing module configured to identify a query reliability configuration policy library according to the application type identifier, where the reliability configuration policy library includes: a correspondence between the application type identifier and a first reliability configuration policy, and acquiring the first a reliability configuration policy; wherein the first reliability configuration policy includes a reliability processing method and a storage medium type of data access.
  • the device further includes:
  • the processing module is further configured to: if the reliability configuration policy library does not include: the correspondence between the application type identifier and the first reliability configuration policy, query the reliability according to the file type identifier Configuring a policy library, the reliability configuration policy library includes: a correspondence between the file type identifier and the second reliability configuration policy, and acquiring the second reliability configuration policy; wherein the second reliability configuration policy
  • the types of storage media including reliability processing methods and data access.
  • the third aspect of the embodiments of the present invention provides a device for acquiring a reliability configuration policy, including:
  • processor a processor, a memory, a communication interface, and a bus, wherein the processor, the memory, and the communication interface are connected by the bus;
  • the memory is used to store a program
  • the processor is configured to execute the memory
  • the program is stored to perform the method of claim 1 or 2.
  • the method, device and device for obtaining a reliability configuration policy receive a data access request sent by an application, where the data access request includes an application type identifier, and the reliability configuration policy is queried according to the application type identifier.
  • the first reliability configuration policy includes: the first reliability configuration policy includes: the first reliability configuration policy includes: the first reliability configuration policy includes: the first reliability configuration policy includes: the first reliability configuration policy includes: the first reliability configuration policy includes: the first reliability configuration policy includes: Reliability processing method and type of storage medium for data access. Therefore, the identification of different application types is obtained, and the corresponding reliability configuration strategy is obtained, thereby improving the implementation efficiency of the reliability mechanism of the cloud platform and the overall efficiency of the system.
  • Embodiment 1 is a schematic flowchart of Embodiment 1 of a method for obtaining a reliability configuration policy according to the present invention
  • Embodiment 2 is a schematic flowchart of Embodiment 2 of a method for obtaining a reliability configuration policy according to the present invention
  • FIG. 3 is a schematic structural diagram of Embodiment 1 of an apparatus for acquiring a reliability configuration policy according to the present invention
  • Embodiment 4 is a schematic structural diagram of Embodiment 2 of an apparatus for acquiring a reliability configuration policy according to the present invention
  • FIG. 5 is a schematic structural diagram of Embodiment 1 of an apparatus for acquiring a reliability configuration policy according to the present invention.
  • FIG. 1 is a schematic flowchart of Embodiment 1 of a method for obtaining a reliability configuration policy according to the present invention.
  • the method for obtaining a reliability configuration policy may be performed by an acquiring device of a reliability configuration policy, including the following: step:
  • S101 Receive a data access request sent by an application, where the data access request includes an application class. Type identification.
  • the data access request sent by the application is a universal access interface in the acquiring device of the reliability configuration policy, that is, the application sends a data access request through the universal access interface, where the data access request may include an application type identifier and a file.
  • Type identifier and transaction operation information wherein the application type identifier is an application type of the application, such as office, video, qq, etc., and the file type identifier is a type of a file accessed by the application, such as txt, pdf, rmvb, etc.
  • the transaction operation includes Operations such as reading, writing, submitting, and aborting transactions.
  • S102 Query a reliability configuration policy library according to the application type identifier.
  • the static configuration of the reliability configuration policy library is a configuration file, and the runtime configuration file is parsed into a related data structure, which is resident in the memory.
  • S103 Determine whether the correspondence between the application type identifier and the first reliability configuration policy is included in the reliability configuration policy database. If yes, go to step S104; if not, go to step 105.
  • S104 Acquire a first reliability configuration policy, where the process ends; where the first reliability configuration policy includes a reliability processing method and a storage medium type of data access.
  • the reliability processing method includes a log, a copy-on-write, a multi-copy, and the like.
  • the storage medium of the data access includes a phase change memory (PCM) and a dynamic random access memory (DRAM). ), Solid State Disk (SSD), etc.
  • the obtaining device of the reliability configuration policy searches for the reliability configuration policy library according to the application type identifier. If the reliability configuration policy library includes the correspondence between the application type identifier and the first reliability configuration policy, that is, according to the application type.
  • the identifier device can find the corresponding first reliability configuration policy in the pre-stored reliability configuration policy database, and the reliability configuration policy acquisition device uses the reliability processing method in the first reliability configuration policy to access the corresponding data.
  • the storage medium performs transaction operations.
  • the obtaining device of the reliability configuration policy receives the data access request, and the data access request includes data information such as an application type identifier, a file type identifier, and a transaction operation, and the The application office needs to write to the text document, and 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 of the reliability configuration policy identifies the office according to the application type and searches in the reliability configuration policy library.
  • the static configuration of the reliability configuration policy library is a configuration file. The following is an example of the reliability configuration file:
  • the first reliability configuration policy is set for the two applications, and the first part of the ⁇ App> ⁇ /App> is the first reliability configuration policy set by the application type identifier office, where ⁇ Name>Office ⁇ /Name> represents the application type identifier as Office, ⁇ TransactionMethod>Log ⁇ /TransactionMethod> indicates that the reliability processing method used is Log, that is, the log mode, and ⁇ StorageType>PCM ⁇ /StorageType> indicates that the storage medium type of data access is PCM, therefore, by looking up the reliability configuration policy library, the application type identifier is an office application, and the reliability processing method configured for it is Log, and the storage medium type of data access is PCM.
  • the second ⁇ App> ⁇ /App> includes the first reliability configuration policy set by the application type identifier video, where ⁇ Name>video ⁇ /Name> represents the application type identifier as video, ⁇ TransactionMethod>None ⁇ / TransactionMethod> means that no reliability processing method is used, that is, direct reading and writing of data, ⁇ StorageType>DRAM ⁇ /StorageType>
  • the type of the storage medium that indicates the data access is DRAM. Therefore, by searching the reliability configuration policy library, the application whose application type is identified as video can be used.
  • the reliability processing method configured for it is None, that is, no reliability processing method is used, and data access is performed.
  • the type of storage medium is DRAM.
  • the first reliability configuration policy configured by the reliability configuration policy library for the office is Log and PCM.
  • the acquisition device of the reliability configuration policy uses the Log method to write the storage medium PCM. operating.
  • the data access request is sent by the application, and the data access request includes an application type identifier;
  • the reliability configuration policy library is queried according to the application type identifier, and the reliability configuration policy library includes: the application type identifier and the first reliable Corresponding relationship between the sexual configuration policies, obtaining the first reliability configuration policy, and then operating the storage medium type of the data access according to the reliability processing method in the first reliability configuration policy, so as to implement identification of different application types and obtain corresponding
  • the first reliability configuration strategy is to improve the efficiency of the cloud platform's reliability mechanism and the overall efficiency of the system.
  • the reliability configuration policy library does not include: the correspondence between the application type identifier and the first reliability configuration policy, such as the application type identifier and the reliability configuration policy shown in Table 1. If the application type identifier is 1, the reliability configuration policy 1, that is, the first reliability configuration policy, can be obtained after the table is searched.
  • the foregoing embodiment further includes the following steps:
  • the data access request further includes a file type identifier, and the reliability configuration policy library is queried according to the file type identifier.
  • the reliability configuration policy library includes: a correspondence between the file type identifier and the second reliability configuration policy, so that the second reliability configuration policy can be obtained by using the file type identifier;
  • the application type identifier is not included in the reliability configuration policy library.
  • the received data access request includes the application type identifier 3, and the corresponding relationship between the application type identifier 3 and the reliability configuration policy in the second table is in the data access request.
  • the file type identifier 2 is further included. According to the file type identifier 2, the query table 2 is obtained, and the reliability configuration policy 4, that is, the second reliability configuration policy described in S105 is obtained.
  • Application type identifier Reliability configuration strategy Application type identifier 1 Reliability Configuration Strategy 1 Application type identifier 2 Reliability Configuration Strategy 2 File type identifier 1 Reliability Configuration Strategy 3 File type identifier 2 Reliability Configuration Strategy 4
  • the data access request is processed according to the found second reliability configuration policy, and the process ends.
  • the second reliability configuration policy includes a reliability processing method and a storage medium type for data access.
  • the obtaining device of the reliability configuration policy searches in the reliability configuration policy library according to the file type identifier, and performs a transaction on the storage medium of the corresponding data access according to the reliability processing method in the found second reliability configuration policy. operating.
  • the corresponding file type identifier in the data access request is searched for in the reliability configuration policy database.
  • the second reliability configuration policy and then processing the data access request according to the found second reliability configuration policy, so that the file type can still be obtained if the first reliability configuration policy cannot be obtained through the application type identifier
  • the identifier obtains the second reliability configuration policy, and provides a corresponding reliability processing method and a storage medium type for data access for different application data access requests, so as to improve the implementation efficiency of the reliability mechanism and the overall efficiency of the system.
  • FIG. 2 is the reliability provided by the present invention.
  • a schematic flowchart of the method for obtaining a configuration policy, as shown in FIG. 2, the implementation manner includes the following steps:
  • S201 Receive a data access request sent by the application by using a reliability access interface.
  • data access requests can be sent directly through the reliable access interface.
  • the reliability access interface corresponds to the third reliability configuration policy, and processes the data access request according to the third reliability configuration policy.
  • the third reliability configuration policy includes a reliability processing method corresponding to the reliability access interface and a storage medium type of the data access.
  • the reliability access interface has a corresponding third reliability configuration policy, and the reliability configuration policy is fixed, and all applications that use the reliability access interface for data access requests provide the same third reliability configuration. Strategy.
  • the data access request sent by the application is received by the reliability access interface, and the reliability access interface corresponds to the third reliability configuration policy, and the data access request is processed according to the third reliability configuration policy, because the reliability access interface corresponds to The third reliability configuration policy is fixed. Therefore, when the application directly accesses through the reliability access interface, it does not need to perform a search in the reliability configuration policy library, so that the reliability corresponding to each application access request is provided.
  • the processing method and the type of storage medium accessed by the data can also improve the processing efficiency of the application data access, reduce the burden of the universal access interface receiving the data access request sent by the application, that is, improve the efficiency of the reliability mechanism and the system. Overall efficiency.
  • the reliability access interface in the foregoing embodiment includes multiple, and each reliability access interface corresponds to a respective third reliability configuration policy.
  • the reliability access interface can only be accessed by an application having a specific setting, the specific setting enables the application to independently select which reliability access interface should be accessed, and the reliability access interface corresponds to a fixed third reliability configuration policy. Therefore, for applications with different specific settings, different reliability access interfaces need to be accessed to achieve the third reliability configuration policy corresponding to the application, and further satisfy the corresponding reliability processing method for each application access request. And the type of storage medium for data access, improving the efficiency of the implementation of the reliability mechanism and the overall efficiency of the system.
  • FIG. 3 is a schematic structural diagram of Embodiment 1 of a device for acquiring a reliability configuration policy according to the present invention
  • the processing device of the reliability configuration includes a receiving module 401 and a processing module 402, where the receiving module 401 is configured to Receiving a data access request sent by the application, and the data access request includes an application type identifier.
  • the receiving module 401 receives a data access request sent by the application, 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 The application type of the application, such as office, video, qq, etc., the file type identifies the type of file accessed by the application, such as txt, pdf, rmvb, etc., and the transaction operation includes operations such as reading, writing, submitting, and aborting the transaction.
  • the application type identifier such as office, video, qq, etc.
  • the file type identifies the type of file accessed by the application, such as txt, pdf, rmvb, etc.
  • the transaction operation includes operations such as reading, writing, submitting, and aborting the transaction.
  • the processing module 402 is configured to identify a query reliability configuration policy base according to the application type identifier, where the reliability configuration policy library includes: a correspondence between the application type identifier and the first reliability configuration policy, and obtains a first reliability configuration policy;
  • the first reliability configuration policy includes a reliability processing method and a storage medium type for data access.
  • the static configuration of the reliability configuration policy library is a configuration file, and the runtime configuration file is parsed into a related data structure, which is resident in the memory.
  • the first reliability configuration policy includes a reliability processing method and a storage medium type for data access.
  • the reliability processing method includes a log, a copy-on-write, a multiple copy, and the like.
  • the storage medium of the data access includes a PCM, a DRAM, an SSD, and the like.
  • the receiving module 401 is configured to receive a data access request sent by the application, and then the processing module 402 queries the reliability configuration policy database according to the application type identifier in the data access request, where the reliability configuration policy library includes: an application type identifier.
  • the reliability configuration policy library includes: an application type identifier.
  • acquiring a first reliability configuration policy so as to provide a corresponding reliability processing method and a storage medium type for data access for different application access requests, so as to improve the efficiency of the reliability mechanism And the overall efficiency of the system.
  • the processing module 402 is further configured to: if the reliability configuration policy library does not include: the correspondence between the application type identifier and the first reliability configuration policy, the query reliability is determined according to the file type identifier.
  • the configuration policy library includes: a correspondence between the file type identifier and the second reliability configuration policy, and obtains a second reliability configuration policy; wherein the second reliability configuration policy includes a reliability processing method and data access The type of storage medium.
  • the processing module 402 if the processing module 402 cannot find the corresponding first reliability configuration policy in the reliability configuration policy database according to the application type identifier, the processing module 402 searches for the corresponding second in the reliability configuration policy library according to the file type identifier. The reliability configuration policy, and then processing the data access request according to the found second reliability configuration policy, so that the access to different applications can still be achieved if the first reliability configuration policy cannot be obtained through the application type identifier. It is requested to provide corresponding reliability processing methods and types of storage media for data access to improve the efficiency of the reliability mechanism and the overall efficiency of the system.
  • the acquisition device 1 of the reliability configuration policy includes an access interface 11, a reliability controller 12, a reliability configuration module 14, and a reliability processing method library 15, wherein the access interface 11 belongs to the receiving module 401, and the reliability The controller 12, the reliability configuration module 14, and the reliability processing method library 15 belong to the processing module 402.
  • the access interface 11 includes a universal access interface 111 for receiving a data access request sent by an application.
  • the access interface 11 provides an entry for data access for the application, and the application 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, such as office, video, qq, etc., and the file type identifier is a type of a file accessed by the application, such as Txt, pdf, rmvb, etc., transaction operations include operations such as reading, writing, submitting, and aborting transactions.
  • the reliability controller 12 is configured to obtain an application type identifier corresponding to the data access request, and search for 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 reliable
  • the processing method and the type of storage medium for data access; the corresponding reliability processing method module 151 in the reliability processing method library 15 is called according to the reliability processing method.
  • the reliability configuration module 14 is configured to store the reliability configuration policy library 141.
  • the reliability processing method library 15 is configured to store the reliability processing method module 151.
  • the reliability processing method module 151 needs to be stored in the reliability processing method library 15 in advance, and a corresponding reliability processing method module 151 needs to be provided for each reliability processing method, that is, the reliability processing method and the reliability processing method module 151 are One-to-one correspondence.
  • the universal access interface 111 receives the data access request sent by the application, and the reliability controller 12 obtains the application type identifier corresponding to the data access request, and then performs the search in the reliability configuration policy library 141 according to the application type identifier, according to the application.
  • the type identifier can find a corresponding first reliability configuration policy in the pre-stored reliability configuration policy library 141, and the reliability controller 12 invokes the corresponding reliability processing method in the reliability processing method library 15 according to the reliability processing method.
  • the module 151, the reliability processing method module 151 performs a data access request for the type of storage medium accessed by the data at runtime.
  • the static configuration form of the reliability configuration policy library 141 is a configuration file, and the runtime configuration file is parsed into a related data structure, and is resident in the memory.
  • the first reliability configuration policy includes a reliability processing method and a storage medium type for data access, and the reliability processing method includes a log, a copy-on-write, a multiple copy, and the like, and the storage medium type of the data access includes PCM and DRAM. And SSD, etc.
  • the reliability controller 12 intercepts the data access request, and obtains data types such as an application type identifier, a file type identifier, and a transaction operation in the data access request, and assumes The application office needs to write the text document, and 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 the reliability configuration policy library 141 of the reliability configuration module 14 according to the obtained application type identification office.
  • the static configuration of the reliability configuration policy library 141 is a configuration file. The configuration file shown in the example.
  • the first reliability configuration policy configured by the reliability configuration policy library 141 for the office is Log and PCM.
  • the reliability controller 12 invokes the reliability processing method module 151 corresponding to the log.
  • the reliability processing method module 151 performs a data access request for the type of storage medium accessed by the data at runtime.
  • the universal access interface 111 receives the data access request sent by the application, and the reliability controller 12 obtains the application type identifier corresponding to the data access request, and searches for the reliability configuration according to the application type identifier.
  • the policy library 141 obtains the first reliability configuration policy, and invokes the corresponding reliability processing method module 151 in the reliability processing method library 15 according to the reliability processing method in the first reliability configuration policy, and the reliability processing method module 151 is running.
  • the data access request is sent to the corresponding storage medium type, thereby implementing a corresponding reliability processing method and a type of storage medium for data access for different application access requests, so as to improve the implementation efficiency of the reliability mechanism and the overall efficiency of the system.
  • 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 data access request from the data access request. And corresponding to the file type identifier, and searching for the corresponding second reliability configuration policy in the reliability configuration policy library 141 according to the file type identifier, and then calling the corresponding reliability processing method module in the reliability processing method library 15 according to the reliability processing method. 151.
  • the reliability controller 12 if the reliability controller 12 fails to find the corresponding first reliability configuration policy in the reliability configuration policy library 141 according to the application type identifier, the reliability controller 12 searches the reliability configuration policy library 141 according to the file type identifier. Corresponding to the second reliability configuration policy, and then according to the second available The data configuration request is processed by the sexual configuration policy, so that the first reliability configuration policy can be obtained by using the application type identifier, and the corresponding reliability processing method and data access can be provided for different application access requests.
  • the type of storage medium to improve the efficiency of the reliability mechanism and the overall efficiency of the system.
  • the device for acquiring the reliability configuration policy may further include a storage medium access encapsulator 13 for processing 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 encapsulator 13 at runtime, and the storage medium access encapsulator 13 accesses the storage medium according to the data access request, thereby providing corresponding access requests for different applications. Reliability processing methods and types of storage media for data access to improve the efficiency of the reliability mechanism and the overall efficiency of the system.
  • the access interface 11 further includes:
  • the reliability access interface 112 is configured to receive a data access request sent by the application, and the reliability access interface 121 corresponds to a third reliability configuration policy, where the third reliability configuration policy includes reliability processing corresponding to the reliability access interface 121.
  • the reliability access interface 112 is used to directly access the reliability access interface 112 for an application having a specific setting.
  • the reliability access interface has a corresponding third reliability configuration policy, and the third reliability configuration policy is fixed, and all applications that use the reliability access interface 112 for data access requests provide the same third Reliability configuration strategy.
  • the reliability access interface 112 receives the data access request sent by the application. Because the reliability access interface corresponds to the third reliability configuration policy, the corresponding reliability processing method can be directly obtained, and the interface invokes the corresponding reliability according to the reliability processing method.
  • the processing method module 151 processes the data in the storage medium type of the data access according to the received data access request at runtime.
  • the reliability access interface 112 receives the data access request sent by the application, and the reliability access interface 112 corresponds to the third reliability configuration policy, and processes the data access request according to the third reliability configuration policy, because the reliability access interface
  • the third reliability configuration policy corresponding to 112 is fixed. Therefore, when the application directly accesses through the reliability access interface 112, it is not necessary to perform the search in the reliability configuration policy library 141, so that the access request for each application is satisfied.
  • the corresponding reliability processing method and the type of the storage medium accessed by the data can also improve the processing efficiency of the application data access, and reduce the burden on the universal access interface 111 to receive the data access request sent by the application, that is, improve the reliability mechanism. Achieve efficiency and overall system efficiency.
  • the reliability processing method module 151 may send a data access request to the storage medium access encapsulator 13 during operation, and the storage medium access encapsulator 13 accesses the storage medium according to the data access request. Therefore, the storage medium of the corresponding reliability processing method and data access is provided for different application access requests, so as to improve the implementation efficiency of the reliability mechanism and the overall efficiency of the system.
  • the reliability access interface 112 includes multiple, and each reliability access interface corresponds to a respective third reliability configuration policy.
  • the reliability access interface 112 can only be accessed by an application having a specific setting, the specific setting allows the application to autonomously select which reliability access interface 112 should be accessed, and the reliability access interface 112 corresponds to a fixed third reliability.
  • the policy is configured. Therefore, for an application having different specific settings, different reliability access interfaces 112 need to be accessed to achieve the third reliability configuration policy corresponding to the application, and further satisfy the corresponding application access request.
  • the reliability processing method and the type of storage medium for data access improve the efficiency of the reliability mechanism and the overall efficiency of the system.
  • FIG. 5 is a schematic structural diagram of Embodiment 1 of an apparatus for acquiring a reliability configuration policy according to the present invention.
  • 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 a bus 304;
  • the memory 302 is used to store a program
  • the acquiring device of the reliability configuration policy communicates with the external device through the communication interface 303;
  • the processor 301 When the acquisition device of the reliability configuration policy is running, the processor 301 is configured to execute a program stored in the memory 302 to perform the method of claim 1 or 2.

Abstract

本发明实施例提供一种可靠性配置策略的获取方法、装置及设备,其中,方法包括:接收应用程序发送的数据访问请求,所述数据访问请求中包括应用类型标识;根据所述应用类型标识查询可靠性配置策略库,若所述可靠性配置策略库中包括:所述应用类型标识与第一可靠性配置策略的对应关系,获取所述第一可靠性配置策略;其中,所述第一可靠性配置策略包括可靠性处理方法和数据访问的存储介质种类。上述方法可实现对不同的应用类型标识,获取对应的第一可靠性配置策略,以提高云平台的可靠性机制的实现效率和系统的整体效率。

Description

可靠性配置策略的获取方法、装置及设备 技术领域
本发明实施例涉及云计算领域,特别涉及一种可靠性配置策略的获取方法、装置及设备。
背景技术
通常而言,单机系统中提供数据可靠性的功能是固定和单一的,并且存储介质的组成也是固定的。在云计算环境下,上层应用的可靠性要求和底层的存储介质都会发生变化:同一个云平台下可能存在异构的单机系统,这时可靠性要求可能不同;随着多种新型存储介质的成熟,云平台下的单节点的存储介质会逐渐变化,形成混合存储系统。
现有技术中,对于上层应用的不同可靠性要求和底层的混合存储介质,云平台为上层应用提供了统一的访问接口,对于不同的应用访问请求,云平台均采用相同的可靠性方法在混合存储介质中进行事务处理。
由于云平台层对可靠性要求不同的应用程序均提供统一的可靠性方法,这可能会出现过度服务(即为可靠性要求不高的应用提供了高可靠性方法)或服务不足(即为可靠性要求高的应用提供了低可靠性方法)的情况,无法针对不同的应用访问,采用相应的可靠性配置策略,导致可靠性机制的实现效率不高,影响了系统的整体效率。
发明内容
本发明实施例提供一种可靠性配置策略的获取方法、装置及设备,以解决无法针对不同的应用访问,采用相应的可靠性配置策略,导致可靠性机制的实现效率不高,影响系统的整体效率的问题。
本发明实施例第一方面提供一种可靠性配置策略的获取方法,包括:
接收应用程序发送的数据访问请求,所述数据访问请求中包括应用类型标识;
根据所述应用类型标识查询可靠性配置策略库,若所述可靠性配置策略库中包括:所述应用类型标识与第一可靠性配置策略的对应关系,获取所述第一可靠性配置策略;其中,所述第一可靠性配置策略包括可靠性处理方法和数据访问的存储介质种类。
结合第一方面,在第一种可能的实现方式中,所述方法还包括:
所述数据访问请求中还包括文件类型标识;
若所述可靠性配置策略库中未包括:所述应用类型标识与所述第一可靠性配置策略的对应关系,则根据所述文件类型标识查询所述可靠性配置策略库,所述可靠性配置策略库中包括:所述文件类型标识与第二可靠性配置策略的对应关系,获取所述第二可靠性配置策略;其中,所述第二可靠性配置策略包括可靠性处理方法和数据访问的存储介质种类。
本发明实施例第二方面提供一种可靠性配置策略的获取装置,包括:
接收模块,用于接收应用程序发送的数据访问请求,所述数据访问请求中包括应用类型标识;
处理模块,用于根据所述应用类型标识查询可靠性配置策略库,若所述可靠性配置策略库中包括:所述应用类型标识与第一可靠性配置策略的对应关系,获取所述第一可靠性配置策略;其中,所述第一可靠性配置策略包括可靠性处理方法和数据访问的存储介质种类。
结合第二方面,在第一种可能的实现方式中,所述装置还包括:
所述处理模块,还用于若所述可靠性配置策略库中未包括:所述应用类型标识与所述第一可靠性配置策略的对应关系,则根据所述文件类型标识查询所述可靠性配置策略库,所述可靠性配置策略库中包括:所述文件类型标识与第二可靠性配置策略的对应关系,获取所述第二可靠性配置策略;其中,所述第二可靠性配置策略包括可靠性处理方法和数据访问的存储介质种类。
本发明实施例第三方面提供一种可靠性配置策略的获取设备,包括:
处理器,存储器,通信接口,和总线,其中,所述处理器、所述存储器和所述通信接口通过所述总线相连;
所述存储器用于存放程序;
所述可靠性配置策略的获取设备通过所述通信接口与外部设备通信;当所述可靠性配置策略的获取设备运行时,所述处理器用于执行所述存储器存 储的所述程序,以执行所述权利要求1或2所述的方法。
本发明实施例提供的可靠性配置策略的获取方法、装置及设备,通过接收应用程序发送的数据访问请求,所述数据访问请求中包括应用类型标识,根据所述应用类型标识查询可靠性配置策略库,若所述可靠性配置策略库中包括:所述应用类型标识与第一可靠性配置策略的对应关系,获取所述第一可靠性配置策略;其中,所述第一可靠性配置策略包括可靠性处理方法和数据访问的存储介质种类。从而实现针对不同的应用类型标识,获取对应的可靠性配置策略,提高了云平台的可靠性机制的实现效率和系统的整体效率。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明提供的可靠性配置策略的获取方法实施例一的流程示意图;
图2为本发明提供的可靠性配置策略的获取方法实施例二的流程示意图;
图3为本发明提供的可靠性配置策略的获取装置实施例一的结构示意图;
图4为本发明提供的可靠性配置策略的获取装置实施例二的结构示意图;
图5为本发明提供的可靠性配置策略的获取设备实施例一的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
图1为本发明提供的可靠性配置策略的获取方法实施例一的流程示意图,如图1所示,该可靠性配置策略的获取方法可以由可靠性配置策略的获取设备来执行,具体包括以下步骤:
S101:接收应用程序发送的数据访问请求,数据访问请求中包括应用类 型标识。
具体的,接收应用程序发送的数据访问请求的是可靠性配置策略的获取设备中的通用访问接口,即应用程序通过通用访问接口发送数据访问请求,该数据访问请求中可以包括应用类型标识、文件类型标识以及事务操作等信息,其中应用类型标识为应用程序的应用类型,如office,video,qq等,文件类型标识为应用程序访问的文件的类型,如txt,pdf,rmvb等,事务操作包括事务的读、写、提交和中止等操作。
S102:根据应用类型标识查询可靠性配置策略库。
可靠性配置策略库的静态形式为配置文件,运行时配置文件会被解析为相关数据结构,常驻于内存中。
S103:判断可靠性配置策略库中是否包括应用类型标识与第一可靠性配置策略的对应关系,若包括,则执行步骤S104;若不包括,则执行步骤105。S104:获取第一可靠性配置策略,流程结束;其中,第一可靠性配置策略包括可靠性处理方法和数据访问的存储介质种类。
其中,可靠性处理方法包括日志、写时复制、多副本等方法,数据访问的存储介质种类包括相变存储器(Phase Change Memory,简称PCM)、动态随机存取存储器(Dynamic Random Access Memory,简称DRAM)、固态硬盘(Solid State Disk,简称SSD)等。
具体的,可靠性配置策略的获取装置根据应用类型标识在可靠性配置策略库中进行查找,若可靠性配置策略库中包括应用类型标识与第一可靠性配置策略的对应关系,即根据应用类型标识能够在预先存储的可靠性配置策略库中查找到对应的第一可靠性配置策略,则可靠性配置策略的获取装置会采用第一可靠性配置策略中的可靠性处理方法对相应的数据访问的存储介质进行事务操作。
为使本实施例更加清楚,下面进行举例说明。
若有应用程序office通过通用访问接口发送数据访问请求,可靠性配置策略的获取装置接收到该数据访问请求,该数据访问请求中包括应用类型标识、文件类型标识以及事务操作等数据信息,假设该应用程序office要对文本文档进行写操作,那么数据访问请求中的数据信息可以包括:应用类型标识office、文件类型标识txt和写操作。
可靠性配置策略的获取装置根据应用类型标识office,在可靠性配置策略库中进行查找,可靠性配置策略库的静态形式为配置文件,如下所示为可靠性配置文件示例:
<?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>
该示例中为2个应用程序设置了第一可靠性配置策略,第一个<App></App>包括的部分即为应用类型标识office设置的第一可靠性配置策略,其中<Name>Office</Name>代表应用类型标识为Office,<TransactionMethod>Log</TransactionMethod>表示采用的可靠性处理方法为Log,即日志的方式,<StorageType>PCM</StorageType>表示数据访问的存储介质种类为PCM,因此,通过查找可靠性配置策略库可知应用类型标识为office的应用,为其配置的可靠性处理方法为Log,数据访问的存储介质种类为PCM。
第二个<App></App>包括的部分即为应用类型标识video设置的第一可靠性配置策略,其中<Name>video</Name>代表应用类型标识为video,<TransactionMethod>None</TransactionMethod>表示不采用任何可靠性处理方法,即直接对数据进行读、写等操作,<StorageType>DRAM</StorageType> 表示数据访问的存储介质种类为DRAM,因此,通过查找可靠性配置策略库可知应用类型标识为video的应用,为其配置的可靠性处理方法为None,即不采用任何可靠性处理方法,数据访问的存储介质种类为DRAM。
通过上述查找可靠性配置策略库可知:可靠性配置策略库为office配置的第一可靠性配置策略为Log和PCM,此时,可靠性配置策略的获取装置会采用Log方法对存储介质PCM进行写操作。
本实施例中通过接收应用程序发送的数据访问请求,数据访问请求中包括应用类型标识;根据应用类型标识查询可靠性配置策略库,若可靠性配置策略库中包括:应用类型标识与第一可靠性配置策略的对应关系,获取第一可靠性配置策略,然后按照第一可靠性配置策略中的可靠性处理方法对数据访问的存储介质种类进行操作,以实现对不同的应用类型标识,获取对应的第一可靠性配置策略,以提高云平台的可靠性机制的实现效率和系统的整体效率。
进一步地,在上述实施例的基础上,若可靠性配置策略库中未包括:应用类型标识与第一可靠性配置策略的对应关系,如表一所示的应用类型标识与可靠性配置策略的对应关系表,如应用类型标识为1,则查表后可获得可靠性配置策略1,也即第一可靠性配置策略。
表一
应用类型标识 可靠性配置策略
应用类型标识1 可靠性配置策略1
应用类型标识2 可靠性配置策略2
如表一所示,若数据访问请求中的应用类型标识为应用类型标识3,而表一中并未包括应用类型标识3设置相应的可靠性配置策略,则上述实施例还包括如下步骤:
S105:数据访问请求中还包括文件类型标识,根据文件类型标识查询可靠性配置策略库。
其中,可靠性配置策略库中包括:文件类型标识与第二可靠性配置策略的对应关系,从而可通过文件类型标识获取第二可靠性配置策略;
如表二所示,如S103中,判断可靠性配置策略库中不包括应用类型标识 与第一可靠性配置策略的对应关系,例如,接收到的数据访问请求中包括应用类型标识3,而表二中无应用类型标识3与可靠性配置策略的对应关系,则该数据访问请求中还包括文件类型标识2,根据文件类型标识2查询表二,获取可靠性配置策略4,即S105中所述的第二可靠性配置策略。
表二
应用类型标识 可靠性配置策略
应用类型标识1 可靠性配置策略1
应用类型标识2 可靠性配置策略2
文件类型标识1 可靠性配置策略3
文件类型标识2 可靠性配置策略4
S106:根据查找到的第二可靠性配置策略,对数据访问请求进行处理,流程结束,其中,第二可靠性配置策略包括可靠性处理方法和数据访问的存储介质种类。
具体的,可靠性配置策略的获取装置根据文件类型标识在可靠性配置策略库中进行查找,根据查找到的第二可靠性配置策略中的可靠性处理方法对相应的数据访问的存储介质进行事务操作。
本实施例中,若根据应用类型标识不能够在可靠性配置策略库中查找到对应的第一可靠性配置策略,则根据数据访问请求中对应的文件类型标识在可靠性配置策略库中查找对应的第二可靠性配置策略,然后根据查找到的第二可靠性配置策略,对数据访问请求进行处理,从而在无法通过应用类型标识获得第一可靠性配置策略的情况下,仍旧可通过文件类型标识获得第二可靠性配置策略,实现对于不同的应用程序数据访问请求提供相应的可靠性处理方法和数据访问的存储介质种类,以提高可靠性机制的实现效率和系统的整体效率。
上述实施例均在通过通用访问接口接收应用程序发送的数据访问请求情况下,除此之外,在上述实施例的基础上,还包括另一种实现方式,图2为本发明提供的可靠性配置策略的获取方法实施例二的流程示意图,如图2所示,该实现方式包括如下步骤:
S201:通过可靠性访问接口接收应用程序发送的数据访问请求。
对于具有特定设置的应用程序,可直接通过可靠性访问接口发送数据访问请求。
S202:可靠性访问接口对应第三可靠性配置策略,根据第三可靠性配置策略对数据访问请求进行处理。其中,第三可靠性配置策略包括与可靠性访问接口对应的可靠性处理方法和数据访问的存储介质种类。
可靠性访问接口具有对应的第三可靠性配置策略,且该可靠性配置策略是固定的,所有通过该可靠性访问接口进行数据访问请求的应用程序,均为其提供相同的第三可靠性配置策略。
本实施例中通过可靠性访问接口接收应用程序发送的数据访问请求,可靠性访问接口对应第三可靠性配置策略,根据第三可靠性配置策略对数据访问请求进行处理,由于可靠性访问接口对应的第三可靠性配置策略是固定的,因此在应用程序直接通过可靠性访问接口进行访问时,不需要到可靠性配置策略库中进行查找,这样在满足对各应用访问请求提供相应的可靠性处理方法和数据访问的存储介质种类的同时,还可以提高应用程序数据访问的处理效率,减轻通用访问接口接收应用程序发送的数据访问请求的负担,即提高了可靠性机制的实现效率和系统的整体效率。
进一步地,上述实施例中的可靠性访问接口包括多个,且各可靠性访问接口均对应各自的第三可靠性配置策略。
由于可靠性访问接口只能被有特定设置的应用程序访问,该特定设置可使应用程序自主选择应该访问哪一个可靠性访问接口,而该可靠性访问接口对应固定的第三可靠性配置策略,因此对于具有不同特定设置的应用程序,需要访问不同的可靠性访问接口,以达到采用与应用程序相应的第三可靠性配置策略的目的,进一步满足对各应用访问请求提供相应的可靠性处理方法和数据访问的存储介质种类,提高可靠性机制的实现效率和系统的整体效率。
图3为本发明提供的可靠性配置策略的获取装置实施例一的结构示意图;如图3所示,可靠性配置的处理装置包括接收模块401和处理模块402,其中,接收模块401,用于接收应用程序发送的数据访问请求,数据访问请求中包括应用类型标识。
接收模块401接收应用程序发送的数据访问请求,数据访问请求可以包括应用类型标识、文件类型标识以及事务操作等信息,其中应用类型标识为 应用程序的应用类型,如office,video,qq等,文件类型标识为应用程序访问的文件的类型,如txt,pdf,rmvb等,事务操作包括事务的读、写、提交和中止等操作。
处理模块402,用于根据应用类型标识查询可靠性配置策略库,若可靠性配置策略库中包括:应用类型标识与第一可靠性配置策略的对应关系,获取第一可靠性配置策略;其中,第一可靠性配置策略包括可靠性处理方法和数据访问的存储介质种类。
可靠性配置策略库的静态形式为配置文件,运行时配置文件会被解析为相关数据结构,常驻于内存中。第一可靠性配置策略包括可靠性处理方法和数据访问的存储介质种类,可靠性处理方法包括日志、写时复制、多副本等方法,数据访问的存储介质种类包括PCM、DRAM、SSD等。
本实施例中接收模块401用于接收应用程序发送的数据访问请求,然后处理模块402根据数据访问请求中的应用类型标识查询可靠性配置策略库,若可靠性配置策略库中包括:应用类型标识与第一可靠性配置策略的对应关系,获取第一可靠性配置策略,以实现对于不同的应用访问请求提供相应的可靠性处理方法和数据访问的存储介质种类,以提高可靠性机制的实现效率和系统的整体效率。
进一步地,在上述实施例的基础上,处理模块402还用于,若可靠性配置策略库中未包括:应用类型标识与第一可靠性配置策略的对应关系,则根据文件类型标识查询可靠性配置策略库,可靠性配置策略库中包括:文件类型标识与第二可靠性配置策略的对应关系,获取第二可靠性配置策略;其中,第二可靠性配置策略包括可靠性处理方法和数据访问的存储介质种类。
本实施例中,处理模块402若根据应用类型标识不能够在可靠性配置策略库中查找到对应的第一可靠性配置策略,则根据文件类型标识在可靠性配置策略库中查找对应的第二可靠性配置策略,然后根据查找到的第二可靠性配置策略,对数据访问请求进行处理,从而在无法通过应用类型标识获得第一可靠性配置策略的情况下,仍然可以实现对于不同的应用访问请求提供相应的可靠性处理方法和数据访问的存储介质种类,以提高可靠性机制的实现效率和系统的整体效率。
图4为本发明提供的可靠性配置策略的获取装置实施例二的结构示意图, 如图4所示,可靠性配置策略的获取装置1包括访问接口11、可靠性控制器12、可靠性配置模块14和可靠性处理方法库15,其中,访问接口11属于接收模块401,可靠性控制器12、可靠性配置模块14和可靠性处理方法库15属于处理模块402。
访问接口11,包括通用访问接口111,用于接收应用程序发送的数据访问请求。
其中,访问接口11为应用程序提供一个数据访问的入口,应用程序可以通过访问接口11发送数据访问请求。数据访问请求可以包括应用类型标识、文件类型标识以及事务操作等信息,其中应用类型标识为应用程序的应用类型,如office,video,qq等,文件类型标识为应用程序访问的文件的类型,如txt,pdf,rmvb等,事务操作包括事务的读、写、提交和中止等操作。
可靠性控制器12,用于获取数据访问请求对应的应用类型标识,并根据应用类型标识在可靠性配置模块14中查找对应的第一可靠性配置策略,其中,第一可靠性配置策略包括可靠性处理方法和数据访问的存储介质种类;根据可靠性处理方法调用可靠性处理方法库15中对应的可靠性处理方法模块151。可靠性配置模块14,用于存储可靠性配置策略库141。
可靠性处理方法库15,用于存储可靠性处理方法模块151。可靠性处理方法模块151需预先存储在可靠性处理方法库15中,并且需要为每个可靠性处理方法设置相应的可靠性处理方法模块151,即可靠性处理方法与可靠性处理方法模块151为一一对应关系。
具体的,通用访问接口111接收应用程序发送的数据访问请求,可靠性控制器12获取数据访问请求对应的应用类型标识,然后根据应用类型标识在可靠性配置策略库141中进行查找,若根据应用类型标识能够在预先存储的可靠性配置策略库141中查找到对应的第一可靠性配置策略,则可靠性控制器12根据可靠性处理方法调用可靠性处理方法库15中对应的可靠性处理方法模块151,可靠性处理方法模块151在运行时对数据访问的存储介质种类进行数据访问请求。其中,可靠性配置策略库141的静态形式为配置文件,运行时配置文件会被解析为相关数据结构,常驻于内存中。第一可靠性配置策略包括可靠性处理方法和数据访问的存储介质种类,可靠性处理方法包括日志、写时复制、多副本等方法,数据访问的存储介质种类包括PCM、DRAM 和SSD等。
为使本实施例更加清楚,下面进行举例说明。
若有应用程序office通过通用访问接口111发送数据访问请求,可靠性控制器12截获到该数据访问请求,并获取该数据访问请求中的应用类型标识、文件类型标识以及事务操作等数据信息,假设该应用程序office要对文本文档进行写操作,那么可靠性控制器12会截获到的数据信息可以包括:应用类型标识office、文件类型标识txt和写操作。
可靠性控制器12根据获取到的应用类型标识office,在可靠性配置模块14的可靠性配置策略库141中进行查找,可靠性配置策略库141的静态形式为配置文件,可参见上述方法实施例中所示例的配置文件。
通过上述查找可靠性配置策略库141可知:可靠性配置策略库141为office配置的第一可靠性配置策略为Log和PCM,此时,可靠性控制器12调用对应Log的可靠性处理方法模块151,可靠性处理方法模块151在运行时对数据访问的存储介质种类进行数据访问请求。
本实施例中的可靠性配置策略的获取装置,通用访问接口111接收应用程序发送的数据访问请求,可靠性控制器12获取数据访问请求对应的应用类型标识,并根据应用类型标识查找可靠性配置策略库141获取第一可靠性配置策略,并根据第一可靠性配置策略中的可靠性处理方法调用可靠性处理方法库15中对应的可靠性处理方法模块151,可靠性处理方法模块151在运行时向相应的存储介质种类发送数据访问请求,从而实现对于不同的应用访问请求提供相应的可靠性处理方法和数据访问的存储介质种类,以提高可靠性机制的实现效率和系统的整体效率。
在上述实施例的基础上,可靠性控制器12还用于,若根据应用类型标识不能够在可靠性配置策略库141中查找到对应的第一可靠性配置策略,则从数据访问请求中获取对应的文件类型标识,并根据文件类型标识在可靠性配置策略库141中查找对应的第二可靠性配置策略,然后根据可靠性处理方法调用可靠性处理方法库15中对应的可靠性处理方法模块151。
本实施例中,可靠性控制器12若根据应用类型标识不能够在可靠性配置策略库141中查找到对应的第一可靠性配置策略,则根据文件类型标识在可靠性配置策略库141中查找对应的第二可靠性配置策略,然后根据查找到的第二可 靠性配置策略,对数据访问请求进行处理,从而在无法通过应用类型标识获得第一可靠性配置策略的情况下,仍然可以实现对于不同的应用访问请求提供相应的可靠性处理方法和数据访问的存储介质种类,以提高可靠性机制的实现效率和系统的整体效率。
进一步地,在上述实施例的基础上,可靠性配置策略的获取装置还可以包括存储介质访问封装器13,用于对可靠性处理方法模块151的数据访问请求进行处理。可靠性处理方法模块151在运行时向存储介质访问封装器13发送数据访问请求,由存储介质访问封装器13根据该数据访问请求对存储介质进行访问,从而实现对于不同的应用访问请求提供相应的可靠性处理方法和数据访问的存储介质种类,以提高可靠性机制的实现效率和系统的整体效率。
在上述实施例的基础上,如图5所示,访问接口11还包括:
可靠性访问接口112,用于接收应用程序发送的数据访问请求,可靠性访问接口121对应第三可靠性配置策略,其中,第三可靠性配置策略包括与可靠性访问接口121对应的可靠性处理方法和数据访问的存储介质种类;可靠性访问接口121根据可靠性处理方法调用可靠性处理方法库15中对应的可靠性处理方法模块151。
其中,可靠性访问接口112用于对于具有特定设置的应用程序,可直接访问可靠性访问接口112。可靠性访问接口具有对应的第三可靠性配置策略,且该第三可靠性配置策略是固定的,所有通过该可靠性访问接口112进行数据访问请求的应用程序,均为其提供相同的第三可靠性配置策略。
可靠性访问接口112接收应用程序发送的数据访问请求,由于可靠性访问接口对应第三可靠性配置策略,因此可直接获得相应的可靠性处理方法,接口根据该可靠性处理方法调用相应的可靠性处理方法模块151,该可靠性处理方法模块151在运行时根据接收到的数据访问请求到数据访问的存储介质种类中对数据进行处理。
本实施例中可靠性访问接口112接收应用程序发送的数据访问请求,可靠性访问接口112对应第三可靠性配置策略,根据第三可靠性配置策略对数据访问请求进行处理,由于可靠性访问接口112对应的第三可靠性配置策略是固定的,因此在应用程序直接通过可靠性访问接口112进行访问时,不需要到可靠性配置策略库141中进行查找,这样在满足对各应用访问请求提供 相应的可靠性处理方法和数据访问的存储介质种类的同时,还可以提高应用程序数据访问的处理效率,减轻通用访问接口111接收应用程序发送的数据访问请求的负担,即提高了可靠性机制的实现效率和系统的整体效率。
进一步地,在上述实施例的基础上,可靠性处理方法模块151在运行时可向存储介质访问封装器13发送数据访问请求,由存储介质访问封装器13根据该数据访问请求对存储介质进行访问,从而实现对于不同的应用访问请求提供相应的可靠性处理方法和数据访问的存储介质种类,以提高可靠性机制的实现效率和系统的整体效率。
在上述实施例的基础上,可靠性访问接口112包括多个,且各可靠性访问接口均对应各自的第三可靠性配置策略。
由于可靠性访问接口112只能被有特定设置的应用程序访问,该特定设置可使应用程序自主选择应该访问哪一个可靠性访问接口112,而该可靠性访问接口112对应固定的第三可靠性配置策略,因此对于具有不同特定设置的应用程序,需要访问不同的可靠性访问接口112,以达到采用与应用程序相应的第三可靠性配置策略的目的,进一步满足对各应用访问请求提供相应的可靠性处理方法和数据访问的存储介质种类,提高可靠性机制的实现效率和系统的整体效率。
图5为本发明提供的可靠性配置策略的获取设备实施例一的结构示意图,如图5所示,该设备包括:处理器301,存储器302,通信接口303,和总线304,其中,处理器301、存储器302和通信接口303通过总线304相连;
存储器302用于存放程序;
可靠性配置策略的获取设备通过通信接口303与外部设备通信;
当可靠性配置策略的获取设备运行时,处理器301用于执行存储器302存储的程序,以执行权利要求1或2的方法。
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (5)

  1. 一种可靠性配置策略的获取方法,其特征在于,包括:
    接收应用程序发送的数据访问请求,所述数据访问请求中包括应用类型标识;
    根据所述应用类型标识查询可靠性配置策略库,若所述可靠性配置策略库中包括:所述应用类型标识与第一可靠性配置策略的对应关系,获取所述第一可靠性配置策略;其中,所述第一可靠性配置策略包括可靠性处理方法和数据访问的存储介质种类。
  2. 如权利要求1所述的方法,其特征在于,所述数据访问请求中还包括文件类型标识;
    若所述可靠性配置策略库中未包括:所述应用类型标识与所述第一可靠性配置策略的对应关系,则根据所述文件类型标识查询所述可靠性配置策略库,所述可靠性配置策略库中包括:所述文件类型标识与第二可靠性配置策略的对应关系,获取所述第二可靠性配置策略;其中,所述第二可靠性配置策略包括可靠性处理方法和数据访问的存储介质种类。
  3. 一种可靠性配置策略的获取装置,其特征在于,包括:
    接收模块,用于接收应用程序发送的数据访问请求,所述数据访问请求中包括应用类型标识;
    处理模块,用于根据所述应用类型标识查询可靠性配置策略库,若所述可靠性配置策略库中包括:所述应用类型标识与第一可靠性配置策略的对应关系,获取所述第一可靠性配置策略;其中,所述第一可靠性配置策略包括可靠性处理方法和数据访问的存储介质种类。
  4. 如权利要求3所述的装置,其特征在于,包括:
    所述处理模块,还用于若所述可靠性配置策略库中未包括:所述应用类型标识与所述第一可靠性配置策略的对应关系,则根据所述文件类型标识查询所述可靠性配置策略库,所述可靠性配置策略库中包括:所述文件类型标识与第二可靠性配置策略的对应关系,获取所述第二可靠性配置策略;其中,所述第二可靠性配置策略包括可靠性处理方法和数据访问的存储介质种类。
  5. 一种可靠性配置策略的获取设备,其特征在于,包括:
    处理器,存储器,通信接口,和总线,其中,所述处理器、所述存储器 和所述通信接口通过所述总线相连;
    所述存储器用于存放程序;
    所述可靠性配置策略的获取设备通过所述通信接口与外部设备通信;
    当所述可靠性配置策略的获取设备运行时,所述处理器用于执行所述存储器存储的所述程序,以执行所述权利要求1或2所述的方法。
PCT/CN2014/089945 2014-10-30 2014-10-30 可靠性配置策略的获取方法、装置及设备 WO2016065592A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201480082764.8A CN107078919B (zh) 2014-10-30 2014-10-30 可靠性配置策略的获取方法、装置及设备
PCT/CN2014/089945 WO2016065592A1 (zh) 2014-10-30 2014-10-30 可靠性配置策略的获取方法、装置及设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/089945 WO2016065592A1 (zh) 2014-10-30 2014-10-30 可靠性配置策略的获取方法、装置及设备

Publications (1)

Publication Number Publication Date
WO2016065592A1 true WO2016065592A1 (zh) 2016-05-06

Family

ID=55856410

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/089945 WO2016065592A1 (zh) 2014-10-30 2014-10-30 可靠性配置策略的获取方法、装置及设备

Country Status (2)

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

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416619A (zh) * 2020-11-23 2021-02-26 平安普惠企业管理有限公司 一种接口配置方法、设备、终端及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102782715A (zh) * 2009-12-15 2012-11-14 微软公司 用广告来瞄准应用
CN102938784A (zh) * 2012-11-06 2013-02-20 无锡江南计算技术研究所 应用于分布式存储系统中的数据存储方法和系统
WO2013163122A1 (en) * 2012-04-23 2013-10-31 Google Inc. Associating a file type with an application in a network storage service
CN103875210A (zh) * 2011-10-14 2014-06-18 阿尔卡特朗讯公司 在通信环境中提供动态可靠性和安全性

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7397770B2 (en) * 2004-02-20 2008-07-08 International Business Machines Corporation Checking and repairing a network configuration
CN101147369B (zh) * 2005-03-21 2013-04-17 艾利森电话股份有限公司 自动QoS配置的方法
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
CN101321357B (zh) * 2007-06-05 2012-01-11 中兴通讯股份有限公司 一种长期演进网络管理系统和方法
US8650294B2 (en) * 2007-12-17 2014-02-11 Telefonaktiebolaget L M Ericsson (Publ) Method and arrangement for network QoS
CN101572718B (zh) * 2008-04-30 2012-07-11 张文 基于面向应用的IP QoS统一策略系统及其方法
CN101605057B (zh) * 2009-07-02 2011-12-28 中兴通讯股份有限公司 一种家庭网关实现下行Qos的方法和系统
CN102291777B (zh) * 2010-06-18 2013-08-14 鼎桥通信技术有限公司 一种服务质量策略的配置方法
CN102571615B (zh) * 2012-03-14 2014-09-24 成都广达电子股份有限公司 一种基于eoc终端的qos策略实现方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102782715A (zh) * 2009-12-15 2012-11-14 微软公司 用广告来瞄准应用
CN103875210A (zh) * 2011-10-14 2014-06-18 阿尔卡特朗讯公司 在通信环境中提供动态可靠性和安全性
WO2013163122A1 (en) * 2012-04-23 2013-10-31 Google Inc. Associating a file type with an application in a network storage service
CN102938784A (zh) * 2012-11-06 2013-02-20 无锡江南计算技术研究所 应用于分布式存储系统中的数据存储方法和系统

Also Published As

Publication number Publication date
CN107078919B (zh) 2020-07-07
CN107078919A (zh) 2017-08-18

Similar Documents

Publication Publication Date Title
AU2011348835B2 (en) Method and device for implementing memory migration
US11144399B1 (en) Managing storage device errors during processing of inflight input/output requests
WO2016066073A1 (zh) 支持sr-iov的存储资源访问方法、存储控制器及存储设备
US20180089044A1 (en) Technologies for providing network interface support for remote memory and storage failover protection
WO2018119601A1 (zh) 数据转换方法及备份服务器
WO2021098267A1 (zh) 一种磁盘处理的方法、系统、设备及可读存储介质
WO2018058998A1 (zh) 一种数据加载方法、终端和计算集群
US20220075757A1 (en) Data read method, data write method, and server
US10762109B2 (en) Asynchronous deletion in non-relational databases
US20160034582A1 (en) Computing device and method for executing database operation command
WO2015062228A1 (zh) 一种访问共享内存的方法和装置
US9483493B2 (en) Method and system for accessing a distributed file system
US10620871B1 (en) Storage scheme for a distributed storage system
US20220269428A1 (en) System Startup Method and Related Device
US10708379B1 (en) Dynamic proxy for databases
WO2018006723A1 (zh) 一种针对数据库的数据修改请求处理方法及装置
WO2017092384A1 (zh) 一种集群数据库分布式存储的方法和装置
EP3376403A1 (en) Method of accessing distributed database and device providing distributed data service
CN109388651B (zh) 一种数据处理方法和装置
US20200412797A1 (en) Reduction of Adjacent Rack Traffic in Multi-Rack Distributed Object Storage Systems
US10031777B2 (en) Method and system for scheduling virtual machines in integrated virtual machine clusters
WO2015090194A1 (zh) 一种实现设备共享的方法和装置
WO2016065592A1 (zh) 可靠性配置策略的获取方法、装置及设备
CN111262904A (zh) 服务代理系统及方法
WO2014163660A1 (en) Removable storage device identity and configuration information

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14904634

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14904634

Country of ref document: EP

Kind code of ref document: A1