CN115344193A - Storage dynamic routing method and device - Google Patents

Storage dynamic routing method and device Download PDF

Info

Publication number
CN115344193A
CN115344193A CN202110530271.8A CN202110530271A CN115344193A CN 115344193 A CN115344193 A CN 115344193A CN 202110530271 A CN202110530271 A CN 202110530271A CN 115344193 A CN115344193 A CN 115344193A
Authority
CN
China
Prior art keywords
request
user
storage
path
request path
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.)
Pending
Application number
CN202110530271.8A
Other languages
Chinese (zh)
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.)
NetsUnion Clearing Corp
Original Assignee
NetsUnion Clearing Corp
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 NetsUnion Clearing Corp filed Critical NetsUnion Clearing Corp
Priority to CN202110530271.8A priority Critical patent/CN115344193A/en
Publication of CN115344193A publication Critical patent/CN115344193A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing storage systems
    • G06F3/0622Securing storage systems in relation to access
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]

Abstract

The invention provides a storage dynamic routing method and a storage dynamic routing device, wherein the storage dynamic routing method comprises the following steps: receiving an operation request of a user, wherein the operation request comprises a first request path; acquiring configuration information of a user, and determining a storage protocol corresponding to the user according to the configuration information; generating a second request path according to the first request path, wherein the second request path corresponds to the storage protocol; and executing the operation corresponding to the operation request according to the second request path. The first request path can be converted into the second request path corresponding to different storage protocols by implementing the invention, so the invention supports the conversion among a plurality of different storage protocols, and even if the storage mode of the file is changed, the invention does not affect the external user.

Description

Storage dynamic routing method and device
Technical Field
The invention relates to the field of computer storage, in particular to a storage dynamic routing method and device.
Background
In a traditional internet service system, system files are mostly stored in a file storage manner, but with the development of internet services, file storage gradually fails to meet the storage requirements of massive files, so that more and more service systems need to migrate system files from the file storage manner to an object storage manner.
After the storage mode is migrated through the prior art, a newly accessed user can directly adopt a new storage mode for storage, but for an original user, it is difficult to coordinate the user to change from the original storage mode to the new storage mode for data operation, so that the migration of the storage mode affects the service execution of the original user in the system.
Disclosure of Invention
Therefore, the technical problem to be solved by the present invention is to overcome the defect in the prior art that the storage of the system file is migrated, which may affect the user, and to provide a storage dynamic routing method and apparatus.
The first aspect of the present invention provides a storage dynamic routing method, including: receiving an operation request of a user, wherein the operation request comprises a first request path; acquiring configuration information of a user, and determining a storage protocol corresponding to the user according to the configuration information; generating a second request path according to the first request path, wherein the second request path corresponds to the storage protocol; and executing the operation corresponding to the operation request according to the second request path.
Optionally, in the storage dynamic routing method provided by the present invention, generating a second request path according to the first request path includes: determining a current directory in session control, and merging the first request path and the current directory to obtain a complete request path; and converting the complete request path according to the storage protocol to obtain a second request path.
Optionally, in the storage dynamic routing method provided by the present invention, if the operation request is a directory switching request, executing an operation corresponding to the operation request according to a second request path, including: if the second request path exists, changing the current directory in the session control of the user into the first request path; and returning response information of successful directory switching to the user.
Optionally, in the storage dynamic routing method provided by the present invention, if the second request path has a file object in the object storage, it is determined that the second request path exists.
Optionally, the storage dynamic routing method provided by the present invention further includes: if the second request path does not have a file object in the object storage, judging whether at least one file or directory exists under the second request path; and if at least one file or directory exists in the second request path, judging that the second request path exists.
Optionally, in the storage dynamic routing method provided by the present invention, if the operation request is a request for obtaining a file list, the storage protocol corresponding to the user is an object storage protocol, and the operation corresponding to the operation request is executed according to a second request path, including: taking the second request path as an identifier of a request for acquiring the file list; and traversing all files of the user, acquiring all file objects at the beginning of the identification, and packaging the file objects at the beginning of the identification as a standard file path to return to the user.
Optionally, in the storage dynamic routing method provided by the present invention, if the operation request is a download request, the storage protocol corresponding to the user is an object storage protocol, and the operation corresponding to the operation request is executed according to the second request path, including: packaging the downloading request according to an object storage protocol; executing the encapsulated download request to acquire data under a second request path; and returning the data under the second request path to the user.
Optionally, in the storage dynamic routing method provided by the present invention, before the step of receiving an operation request of a user for target data, the method further includes: acquiring basic information and a storage protocol of a user; and storing the basic information and the storage protocol of the user into a preset management background.
Optionally, in the dynamic routing method with storage provided by the present invention, after the step of storing the basic information and the storage protocol of the user in the preset management background, before the step of receiving the operation request of the user, the method further includes: receiving login information of a user, and determining basic information of the user according to the login information of the user; determining a storage protocol of a user according to basic information of the user and a preset management background; configuration information corresponding to the storage protocol is injected in the context of the user.
Optionally, the storage dynamic routing method provided by the present invention further includes: receiving a storage protocol switching request; acquiring basic information and a target storage protocol of a user according to a storage protocol switching request; replacing a storage protocol corresponding to the basic information stored in a preset management background with a target storage protocol; when the login information of the user is received, the configuration information corresponding to the target storage protocol is injected into the context of the user.
Optionally, in the storage dynamic routing method provided by the present invention, when the file storage is used, the access right of the file directory is controlled by the system where the file encryption transmission protocol is located; when using object storage, the access rights of the file object are controlled by the access control list of the object storage.
The second aspect of the present invention provides a dynamic storage routing apparatus, including: the operation request receiving module is used for receiving an operation request of a user, wherein the operation request comprises a first request path; the storage protocol determining module is used for acquiring the configuration information of the user and determining the storage protocol corresponding to the user according to the configuration information; the path conversion module is used for generating a second request path according to the first request path, and the second request path corresponds to the storage protocol; and the operation instruction execution module is used for executing the operation corresponding to the operation request according to the second request path.
A third aspect of the present invention provides a computer apparatus comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to perform the method of storing dynamic routing as provided by the first aspect of the invention.
A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions for causing a computer to execute the storage dynamic routing method according to the first aspect of the present invention.
The technical scheme of the invention has the following advantages:
after receiving an operation request of a user, the storage dynamic routing method and the storage dynamic routing device provided by the invention firstly convert a first request path carried by the operation request into a second request path corresponding to a storage protocol according to the storage protocol of the user, and then complete the operation on target data according to the second request path. The storage dynamic routing method provided by the invention can convert the first request path carried in the operation request into the second request path corresponding to different storage protocols, so that the method supports conversion among a plurality of different storage protocols, and after receiving the operation request of a user, the first request path is converted according to the storage protocol of the user, then the operation request of the user is executed, the user does not need to change, and therefore, even if the storage mode of a file is changed, the method does not affect external users.
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 embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a specific example of a dynamic routing method in an embodiment of the present invention;
FIG. 2 is a schematic block diagram of a specific example of a file encryption transport protocol service system according to an embodiment of the present invention;
FIG. 3 is a schematic block diagram of a specific example of a dynamic routing apparatus for storage in an embodiment of the present invention;
fig. 4 is a schematic block diagram of a specific example of a computer device in the embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "first", "second", and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
An embodiment of the present invention provides a storage dynamic routing method, as shown in fig. 1, including:
step S10: and receiving an operation request of a user, wherein the operation request comprises a first request path. For example, if the operation request is to download a file, the operation request may carry a path where the file is located, if the operation request is to store the file, the operation request may carry a path where the file is stored, and if the operation request is to switch the path, the operation request may carry a switched path.
Step S20: the method comprises the steps of obtaining configuration information of a user, and determining a storage protocol corresponding to the user according to the configuration information, wherein the configuration information comprises information of the storage protocol configured for the user in advance.
In an optional embodiment, the configuration information of the user may be stored in the management background in advance, the management background may be located in the SFTP server, or may be located in a location accessible by the SFTP server, when the user logs in the server, the server injects the configuration information stored in the management background into the context of the user, and when the user sends an operation request, the server may determine the storage protocol of the user according to the configuration information in the context of the user.
In an optional embodiment, the configuration information includes, in addition to the storage protocol of the user, a user name, an initial password, a home directory, and conventional SFTP user parameters, and if the storage protocol is an object storage protocol (S3 protocol), the configuration information also includes a bucket, a key (AccessKey/SecretKey), and the like in the aspect of object storage.
Step S30: a second request path is generated according to the first request path, and the second request path corresponds to the storage protocol.
In an alternative embodiment, the first request path is determined by the user according to the file storage interface displayed at the user side, however, the file storage interface displayed at the user side may not conform to the storage protocol of the user, and therefore, a second storage path corresponding to the storage protocol needs to be generated according to the first storage path, so as to complete the operation request along the second storage path. Illustratively, the first request path is generally a path with a directory hierarchy, and if the storage protocol of the user is object storage, the first request path needs to be converted into a second request path meeting the storage protocol, so as to operate a file under the path. If the specified path corresponds to the storage protocol, this step need not be performed.
Step S40: and executing the operation corresponding to the operation request according to the second request path. Illustratively, when the operation request is to download a file, the file in the second request path is downloaded, and when the operation request is to store the file, the file is stored in the directory of the second request path.
After receiving an operation request of a user, the storage dynamic routing method provided in the embodiment of the present invention converts a first request path carried in the operation request into a second request path corresponding to a storage protocol according to the storage protocol of the user, and then completes the operation request according to the second request path. The storage dynamic routing method provided by the embodiment of the invention can convert the first request path in the operation request into the second request path corresponding to different storage protocols, so that the embodiment of the invention supports the conversion among different storage protocols, and after receiving the operation request of the user, the first request path is converted according to the storage protocol of the user, then the operation request of the user is executed, and the user does not need to change the storage mode of the file, so that the user is not influenced even if the storage mode of the file is changed.
In an optional embodiment, the step S30 specifically includes:
firstly, determining a current directory in session control, and merging a first request path and the current directory to obtain a complete request path.
In an optional embodiment, the first request path is a path from the current directory to the target directory, and is not a path from the initial directory to the target directory, in order to obtain the complete request path, the path from the initial directory to the current directory needs to be obtained, and then the path from the initial directory to the current directory is spliced with the first request path, so that the complete request path from the initial directory to the target directory can be obtained.
And then, converting the complete request path according to the storage protocol to obtain a second request path.
If the file storage interface displayed by the user side does not match with the storage protocol of the user, the target directory needs to be queried step by step from the initial directory according to the storage mode corresponding to the storage protocol when being queried, and therefore, in order to accurately find the target directory in the storage mode corresponding to the storage protocol, a second request path needs to be obtained according to the complete request path.
In an alternative embodiment, when performing path conversion, conversion needs to be performed according to a storage characteristic corresponding to a storage protocol, for example, if the full path is in a form of being "/" cut into a file tree, when converting the full path into a second request path corresponding to an object storage, since the object storage is in a flat storage manner and there is no concept of a directory tree, when converting the second request path, conversion needs to be performed to convert the full path into a form not being "/" cut.
In an optional embodiment, if the operation request is a directory switching request, the step S40 specifically includes:
and judging whether the second request path exists, if so, changing the current directory in the session control of the user into the first request path, and returning response information of successful directory switching to the user. Since the current directory in the session control is user-oriented, it is necessary to change the directory in the session control to the first request path instead of the second request path.
And if the second request path does not exist, returning response information of failure in directory switching.
In an alternative embodiment, the determination of whether the second request path exists may be performed by:
if the file object exists in the second request path, judging that the second request path exists; if the file object does not exist in the second request path, judging whether at least one file or directory exists in the second request path; and if at least one file or directory exists in the second request path, judging that the second request path exists.
In an optional embodiment, if the operation request is a request for obtaining a file list, the storage protocol corresponding to the user is an object storage protocol, and the step S40 specifically includes:
first, the second request path is used as the identifier of the request for obtaining the file list.
Then, all files of the user are traversed, all file objects beginning with the identifier are obtained, and the file objects beginning with the identifier are packaged into a standard file to be returned to the user. The object storage protocol is directory-less, and objects prefixed to the second request path can all be identified as objects under that path.
In a specific embodiment, when acquiring the file list, the file containing the identifier needs to be acquired circularly, but in consideration of performance, a maximum number of file lists may be set, and when the returned result is greater than the maximum number of file lists, the circulation is not performed.
In an optional embodiment, if the operation request is a download request, the storage protocol corresponding to the user is an object storage protocol, and the step S40 specifically includes:
firstly, a downloading request is encapsulated according to an object storage protocol, and specifically, an s3client encapsulating downloading request needs to be created.
And then, executing the encapsulated downloading request to acquire the data in the second request path.
In a specific embodiment, since the object storage is generally a flat storage manner, when the specified path is converted into the second request path, the first request path is actually converted into a string of character strings, and when data under the second request path is acquired, the data prefixed by the string of character strings is actually acquired.
And finally, returning the data in the second request path to the user. And returning the data under the second request path to the user in a streaming mode.
In an optional embodiment, only when the second request path exists, the file under the path can be downloaded, and therefore, before the above operations are performed, it is further necessary to determine whether the second request path exists, and the specific determination method is described in the above embodiment.
In an optional embodiment, if the operation request is a storage request, the storage request includes data to be stored, and the storage protocol is object storage, the step S40 specifically includes: and identifying the data to be stored according to the second request path, and storing the identified data to be stored. When the storage mode is object storage, the second request path is a string of character strings, the data to be stored is identified, namely the character strings are used as prefixes of the data to be stored, and when the data to be stored needs to be queried later, query can be performed through the prefixes.
In an optional embodiment, as described in step S20 above, the configuration information of the user may be stored in the management background in advance, specifically by the following steps: and acquiring the basic information and the storage protocol of the user, and storing the basic information and the storage protocol of the user into a preset management background. The basic information of the user may be a user name or the like that can uniquely identify the user.
In an optional embodiment, in order to quickly determine the storage protocol of the user when the operation request of the user is received, after the login information of the user is received, the basic information of the user may be determined according to the login information of the user, then the storage protocol corresponding to the information is determined from a preset management background according to the basic information of the user, and the configuration information corresponding to the storage protocol is injected into the context of the user, so that when the operation request of the user is received, the storage protocol of the user may be determined according to the configuration information carried in the context of the user.
In a specific embodiment, after the SFTP user logs in the SFTP server, the SFTP server creates a file system (FileSystem) according to the configuration information of the SFTP user, for example, if the storage protocol of the user is S3, a S3FileSystem is created, and at the same time, the S3 storage related configuration information is injected into the user context.
In an alternative embodiment, when the storage protocol of the user needs to be modified, the following steps are performed:
firstly, receiving a storage protocol switching request, and acquiring basic information and a target storage protocol of a user according to the storage protocol switching request;
and then, the storage protocol corresponding to the basic information stored in the preset management background is replaced by the target storage protocol. When login information of a user is received, configuration information corresponding to a target storage protocol is injected into the context of the user.
When the user logs in the SFTP server again, the SFTP server injects the configuration information of each replaced storage protocol into the context of the user, and when the user sends an operation request, the SFTP server can identify a new storage protocol according to the context of the user and execute the operation request according to the new storage protocol, so that the operation of the user is not influenced after the storage protocol is changed.
In an alternative embodiment, when using file storage, the access rights of the file directory are controlled by the system in which the file encryption transport protocol resides; when using object storage, the access rights of the file object are controlled by the access control list of the object storage.
According to the storage dynamic routing method provided by the embodiment of the invention, the storage protocol of the user is configured in the management background, when the storage mode of the user is changed, the storage protocol in the configuration information is directly modified in the management background, when the user logs in again, the updated configuration information in the management background can be injected into the context of the user, when the user sends an operation request, the server can determine the storage protocol of the user according to the configuration information in the context of the user, and execute the operation request according to the storage protocol of the user, so that the storage protocol of the user is changed, the influence on the user is avoided, and the conversion of the user to the storage protocol is not sensible.
The embodiment of the invention provides a file encryption transmission protocol service system, which comprises an access layer, a protocol layer and a storage layer as shown in figure 2;
the access layer is used for connecting with a user and receiving an operation request of the user, wherein the operation request comprises a first request path.
The protocol layer comprises a file encryption transmission protocol, a storage protocol route and a storage protocol conversion module, and in addition, the protocol layer also comprises related protocols such as user login, file deletion, uploading and downloading, directory creation and the like.
The file encryption transmission protocol is used for transmitting files, the protocol can carry out operations such as remote file acquisition, file content transmission, file management and the like, and the transmission of control signals and data signals of the protocol is carried out through a safety data channel.
The storage protocol routing is used for selecting a storage mode corresponding to the storage protocol according to the storage protocol of the user. The embodiment of the invention also provides a proprietary user management background, SFTP users can be conveniently managed in the management background, and different users are allowed to select different configurations of bottom layer storage protocols. The storage protocol routing can route the user to the storage service corresponding to the storage protocol of the user after the storage protocol of the user is acquired by the user management background.
The storage protocol conversion module comprises at least one server adapter used for adapting the operation request according to the storage mode corresponding to the storage protocol. As shown in fig. 2, the storage protocol conversion module provided in the embodiment of the present invention includes an S3 adapter and a swift adapter, and in practical application, different adapters may be added according to a storage protocol of a user to complete adaptation to an operation request.
The storage layer comprises at least one storage submodule, and different storage submodules are used for storing different types of files. In the embodiment of the invention, the S3 service, the file storage and the swift service are arranged in the storage layer, and different modules are used for storing files according to different protocols.
The file encryption transmission protocol service system comprises an access layer, a protocol layer and a storage layer, wherein a user connects a file encryption transmission server through the access layer and sends an operation request, the protocol layer comprises a file encryption transmission protocol, a storage protocol route and a storage protocol conversion module, the file encryption transmission protocol is used for transmitting files, the storage protocol route is used for selecting a storage mode corresponding to the storage protocol according to the storage protocol of the user, and the storage protocol conversion module adapts the operation request sent by the user according to the storage mode corresponding to the storage protocol. The file encryption transmission protocol server provided by the embodiment of the invention can flexibly and changeably select different storage modes through the storage protocol routing and storage protocol conversion module under the condition of meeting the requirement that the upper-layer file encryption transmission protocol is not changed, so that the external user is not influenced even if the storage mode of the file is changed. The storage protocol of the user is configured in the management background, if the storage mode of the user is required to be changed, the storage protocol in the configuration information is directly switched in the management background, the change of file operation caused by the conversion of the storage protocol is solved by the storage dynamic routing method provided by the embodiment of the invention, and the conversion of the user to the storage protocol is not sensed.
In a specific embodiment, the file encryption transmission protocol server provided in the embodiment of the present invention delivers the directory right to the bottom layer for control, and is only responsible for the read-write right control of the user, for example, when the file storage is used, the directory right is controlled by the system deploying the file encryption transmission protocol server; when using object storage, the access rights of the file object are controlled by the file access rights control (ACL) of the object storage.
In a specific embodiment, the service provided by the file encryption transmission protocol server provided by the embodiment of the present invention is a stateless service, and the real data storage and the service provided by the file encryption transmission protocol server are separated, so that the file encryption transmission protocol server can be deployed at any position, each server can independently provide services to the outside without mutual influence, a plurality of file encryption transmission protocol servers can be deployed at the same time to provide services for users, and the throughput of the services is improved. The stateless service enables the file to have no intermediate state, and the consistency of data is guaranteed.
An embodiment of the present invention provides a dynamic storage routing apparatus, as shown in fig. 3, including:
the operation request receiving module 10 is configured to receive an operation request including a first request path from a user, where the detailed description refers to the description of step S10 in the foregoing embodiment.
The storage protocol determining module 20 is configured to obtain configuration information of a user, and determine a storage protocol corresponding to the user according to the configuration information, where the detailed description refers to the description of step S20 in the foregoing embodiment.
The path conversion module 30 is configured to generate a second request path according to the first request path, where the second request path corresponds to the storage protocol, and the detailed description refers to the description of step S30 in the foregoing embodiment.
The operation instruction executing module 40 is configured to execute an operation corresponding to the operation request according to the second request path, and the detailed description refers to the description of step S40 in the foregoing embodiment.
After receiving an operation request of a user, the storage dynamic routing device provided in the embodiment of the present invention converts a first request path carried in the operation request into a second request path corresponding to a storage protocol according to the storage protocol of the user, and then completes an operation on target data according to the second request path. The storage dynamic routing device provided by the embodiment of the invention can convert the first request path into the second request path corresponding to different storage protocols, so that the embodiment of the invention supports conversion among a plurality of different storage protocols, and after receiving the operation request of a user, the first request path is converted according to the storage protocol of the user, and then the operation request of the user is executed, the user does not need to change, and therefore, even if the storage mode of a file is changed, the storage dynamic routing device does not influence external users.
An embodiment of the present invention provides a computer device, as shown in fig. 4, the computer device mainly includes one or more processors 51 and a memory 52, and one processor 51 is taken as an example in fig. 4.
The computer device may further include: an input device 53 and an output device 54.
The processor 51, the memory 52, the input device 53 and the output device 54 may be connected by a bus or other means, as exemplified by the bus connection in fig. 4.
The processor 51 may be a Central Processing Unit (CPU). The Processor 51 may also be other general purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The memory 52 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created from use of the message identification number generation apparatus, and the like. Further, the memory 52 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 52 optionally includes memory located remotely from processor 51, and these remote memories may be connected to the memory dynamic routing device via a network. The input device 53 may receive user input of a calculation request (or other numeric or character information) and generate key signal inputs associated with the memory dynamic routing device. The output device 54 may include a display device such as a display screen for outputting the calculation result.
Embodiments of the present invention provide a computer-readable storage medium, where the computer-readable storage medium stores computer instructions, and the computer-readable storage medium stores computer-executable instructions, where the computer-executable instructions may execute the storage dynamic routing method in any of the above method embodiments. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk Drive (Hard Disk Drive, abbreviated as HDD), or a Solid State Drive (SSD); the storage medium may also comprise a combination of memories of the kind described above.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications derived therefrom are intended to be within the scope of the invention.

Claims (14)

1. A method for storing dynamic routing, comprising:
receiving an operation request of a user, wherein the operation request comprises a first request path;
acquiring configuration information of the user, and determining a storage protocol corresponding to the user according to the configuration information;
generating a second request path according to the first request path, wherein the second request path corresponds to the storage protocol;
and executing the operation corresponding to the operation request according to the second request path.
2. The memory dynamic routing method of claim 1, wherein generating a second request path from the first request path comprises:
determining a current directory in session control, and merging the first request path and the current directory to obtain a complete request path;
and converting the complete request path according to the storage protocol to obtain the second request path.
3. The memory dynamic routing method of claim 1, wherein if the operation request is a directory switch request, performing an operation corresponding to the operation request according to the second request path, includes:
if the second request path exists, changing the current directory in the session control of the user into the first request path;
and returning response information of successful directory switching to the user.
4. The memory dynamic routing method of claim 3,
and if the file object exists in the second request path, judging that the second request path exists.
5. The memory dynamic routing method of claim 4, further comprising:
if the file object does not exist in the second request path, judging whether at least one file or directory exists in the second request path;
and if at least one file or directory exists in the second request path, judging that the second request path exists.
6. The storage dynamic routing method of claim 1, wherein if the operation request is a request for obtaining a file list, the storage protocol corresponding to the user is an object storage protocol, and an operation corresponding to the operation request is executed according to the second request path, including:
taking the second request path as an identifier of the request for obtaining the file list;
and traversing all files of the user, acquiring all file objects starting from the identifier, packaging the file objects starting from the identifier as a standard file path, and returning the standard file path to the user.
7. The memory dynamic routing method according to claim 1, wherein if the operation request is a download request, the storage protocol corresponding to the user is an object storage protocol, and an operation corresponding to the operation request is executed according to the second request path, including:
packaging the downloading request according to the object storage protocol;
executing the encapsulated download request to acquire data under the second request path;
and returning the data under the second request path to the user.
8. The memory dynamic routing method of claim 1, wherein the step of receiving the operation request of the user for the target data is preceded by the step of:
acquiring basic information and a storage protocol of a user;
and storing the basic information and the storage protocol of the user into a preset management background.
9. The dynamic routing method according to claim 8, wherein after the step of storing the basic information and the storage protocol of the user in a preset management background and before the step of receiving the operation request of the user, the method further comprises:
receiving login information of a user, and determining basic information of the user according to the login information of the user;
determining a storage protocol of the user according to the basic information of the user and the preset management background;
injecting configuration information corresponding to the storage protocol in the user's context.
10. The memory dynamic routing method of claim 8, further comprising:
receiving a storage protocol switching request;
acquiring basic information and a target storage protocol of a user according to the storage protocol switching request;
replacing the storage protocol corresponding to the basic information stored in the preset management background with the target storage protocol;
when login information of a user is received, configuration information corresponding to the target storage protocol is injected into the context of the user.
11. The memory dynamic routing method of any one of claims 1-10,
when the file storage is used, the access authority of the file directory is controlled by a system where a file encryption transmission protocol is located;
when using object storage, the access rights of the file object are controlled by the access control list of the object storage.
12. A memory dynamic routing apparatus, comprising:
an operation request receiving module, configured to receive an operation request of a user, where the operation request includes a first request path;
the storage protocol determining module is used for acquiring the configuration information of the user and determining a storage protocol corresponding to the user according to the configuration information;
a path conversion module, configured to generate a second request path according to the first request path, where the second request path corresponds to the storage protocol;
and the operation instruction execution module is used for executing the operation corresponding to the operation request according to the second request path.
13. A computer device, comprising:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to perform the method of any of claims 1-11.
14. A computer-readable storage medium storing computer instructions for causing a computer to perform the method of storing dynamic routing of any one of claims 1-11.
CN202110530271.8A 2021-05-14 2021-05-14 Storage dynamic routing method and device Pending CN115344193A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110530271.8A CN115344193A (en) 2021-05-14 2021-05-14 Storage dynamic routing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110530271.8A CN115344193A (en) 2021-05-14 2021-05-14 Storage dynamic routing method and device

Publications (1)

Publication Number Publication Date
CN115344193A true CN115344193A (en) 2022-11-15

Family

ID=83946992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110530271.8A Pending CN115344193A (en) 2021-05-14 2021-05-14 Storage dynamic routing method and device

Country Status (1)

Country Link
CN (1) CN115344193A (en)

Similar Documents

Publication Publication Date Title
US11088903B2 (en) Hybrid cloud network configuration management
CN106506587B (en) Docker mirror image downloading method based on distributed storage
US9525592B2 (en) Client/server network environment setup method and system
CN109547509B (en) Cross-platform deployment method and system
CN111966633B (en) Method, device, electronic equipment and medium for inquiring child node under directory
CN110262872B (en) Load balancing application management method and device, computer equipment and storage medium
CN108647317B (en) Incremental file generation method and device, storage medium and electronic equipment
US20230328138A1 (en) Cloud Platform and Bucket Management Method for Object Storage Service Provided by Cloud Platform
WO2019201040A1 (en) File update management method and system and terminal apparatus
CN112965770A (en) Multi-language resource management method, module, device, system and readable storage medium
CN110197064B (en) Process processing method and device, storage medium and electronic device
US10404578B2 (en) Method for calling routing algorithm, SDN controller, and SDN-OAF
US20230239212A1 (en) Stable References for Network Function Life Cycle Management Automation
CN108370329B (en) Management method and device for management function object
CN115344193A (en) Storage dynamic routing method and device
CN111770153A (en) Object downloading method and device, electronic equipment and storage medium
CN115883512A (en) DNS domain name processing method, device, system, equipment and medium
CN115344541A (en) File storage method, device, equipment and storage medium
CN113918423A (en) Cloud platform monitoring method and device and application thereof
EP4202674A1 (en) Information processing device, information processing method, and information processing program
EP4202718A1 (en) Information processing device, information processing method, and information processing program
US20230177006A1 (en) Information processing apparatus, information processing method, and information processing program
CN113626409B (en) Test data processing method, device, equipment and storage medium
US20220182286A1 (en) Facilitating performance of node management actions in a computing infrastructure having diverse node interfaces
CN115633084A (en) K8s cluster access method and device and computer readable 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