CN114253928A - Access method and device for storage file - Google Patents

Access method and device for storage file Download PDF

Info

Publication number
CN114253928A
CN114253928A CN202011017879.2A CN202011017879A CN114253928A CN 114253928 A CN114253928 A CN 114253928A CN 202011017879 A CN202011017879 A CN 202011017879A CN 114253928 A CN114253928 A CN 114253928A
Authority
CN
China
Prior art keywords
data center
internet data
target file
file
cloud host
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
CN202011017879.2A
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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202011017879.2A priority Critical patent/CN114253928A/en
Publication of CN114253928A publication Critical patent/CN114253928A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture
    • G06F16/183Provision of network file services by network file servers, e.g. by using NFS, CIFS
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to a method and a device for accessing a storage file, wherein the method comprises the following steps: receiving a file request initiated by a user to the object storage in the public cloud, wherein the file request is used for requesting to access a target file; requesting a target file from an internet data center through a dedicated connection between the internet data center and the object store in a case where the target file is not stored in the object store; and sending the target file returned by the Internet data center through the special connection to the user. The method and the device solve the technical problem that the access efficiency of the stored file is low.

Description

Access method and device for storage file
Technical Field
The present application relates to the field of computers, and in particular, to a method and an apparatus for accessing a storage file.
Background
The object storage is distributed storage facing to the Internet, supports reading, writing and managing files at any time and place through an Http/Http protocol, provides an infinite storage space for clients through a flat storage architecture, is a storage mode with high reliability, high availability, low cost and infinite expansion, and is suitable for massive unstructured data storage.
At present, a large-scale data application related to multimedia data display usually stores mass data by building a data center by itself, but with the rapid development of services, the time period of building the data center by itself is long, so that an application related to the display of unstructured data (videos and pictures) with a huge amount of customers usually combines and uses a public cloud object for storage as a secondary source station, and uses the building data center as a source station.
In the scheme of matching and using the self-built source station and the secondary source station at present, public network source return data is relied on, and in the mode, the quality of a public network cannot be guaranteed, so that the source return speed cannot be stably guaranteed, and the access efficiency of files is seriously influenced.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The application provides a method and a device for accessing a storage file, which are used for at least solving the technical problem of low access efficiency of the storage file in the related technology.
According to an aspect of an embodiment of the present application, there is provided an access method for a storage file, including:
receiving a file request initiated by a user to an object storage in a public cloud, wherein the file request is used for requesting to access a target file;
requesting the target file from an internet data center through a dedicated connection between the internet data center and the object store in a case that the target file is not stored in the object store;
and sending the target file returned by the Internet data center through the special connection to the user.
Optionally, before requesting the target file from the internet data center through a dedicated connection between the internet data center and the object store, the method further comprises:
establishing a dedicated connection line between the internet data center and a virtual private network corresponding to the internet data center in the public cloud, wherein the virtual private network allows the internet data center to access the intranet domain name stored in the object storage through the dedicated connection line;
establishing a cloud host corresponding to the internet data center in the virtual private network;
and establishing the connection of the object storage to the internet data center through the cloud host to obtain the special connection.
Optionally, the establishing, by the cloud host, a connection of the object storage to the internet data center includes:
starting the cloud host, and communicating the cloud host with the internet data center;
setting a public network load balancing mounting elastic IP for the cloud host, wherein the public network load balancing mounting elastic IP is used for allowing the object storage to access the internet data center based on the elastic IP;
and setting the network address of the cloud host in the object storage as a special line return source domain name corresponding to the internet data center.
Optionally, the establishing, in the virtual private network, a cloud host corresponding to the internet data center includes:
acquiring the peak bandwidth of the virtual private network;
determining the number of cloud hosts according to the peak bandwidth and the target redundancy;
and establishing the cloud hosts meeting the cloud host number for the Internet data center in the virtual private network.
Optionally, requesting the target file from the internet data center through the dedicated connection includes:
acquiring a network address of the cloud host;
and sending the file request to the cloud host through the network address, wherein the file request is forwarded to the internet data center from the private connection line through the cloud host.
Optionally, sending the target file returned by the internet data center through the dedicated connection to the user includes:
receiving the target file returned by the internet data center through the cloud host;
storing the target file in the object store;
and sending the target file to the user.
Optionally, after receiving a file request initiated by a user to the object storage, the method further includes:
detecting a remaining bandwidth of the dedicated connection in case the target file is not stored in the object store;
under the condition that the residual bandwidth is smaller than a bandwidth threshold value, requesting the target file from the Internet data center through public network connection between the Internet data center and the object storage, and sending the target file returned by the Internet data center through the public network connection to the user;
and in the case that the residual bandwidth is larger than or equal to the bandwidth threshold value, executing the step of requesting the target file from the Internet data center through the special connection.
According to another aspect of the embodiments of the present application, there is also provided an access device for storing a file, including:
the system comprises a receiving module, a storage module and a processing module, wherein the receiving module is used for receiving a file request initiated by a user to an object storage in a public cloud, and the file request is used for requesting to access a target file;
a request module, configured to request the target file from an internet data center through a dedicated connection between the internet data center and the object store when the target file is not stored in the object store;
and the sending module is used for sending the target file returned by the Internet data center through the special connection to the user.
According to another aspect of the embodiments of the present application, there is also provided a storage medium including a stored program which, when executed, performs the above-described method.
According to another aspect of the embodiments of the present application, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the above method through the computer program.
In the embodiment of the application, a file request initiated by a receiving user to an object storage in a public cloud is adopted, wherein the file request is used for requesting to access a target file; requesting the target file from the internet data center through a dedicated connection between the internet data center and the object storage under the condition that the target file is not stored in the object storage; the method comprises the steps that a target file returned by an internet data center through a special connection is sent to a user, the special connection exists between the internet data center and object storage in a public cloud, when the target file requested by the user is not stored in the object storage, the target file is requested to the internet data center through the special connection, the internet data center returns the target file through the special connection, the source returning of the storage file by using a public network is avoided, the source returning efficiency and stability of storage file access are guaranteed, the technical effect of improving the access efficiency of the storage file is achieved, and the technical problem that the access efficiency of the storage file is low is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a schematic diagram of a hardware environment for a method of accessing a stored file according to an embodiment of the present application;
FIG. 2 is a flow chart of an alternative method of accessing stored files according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an access process for a stored file according to an alternative embodiment of the present application;
FIG. 4 is a schematic diagram of a process for establishing a dedicated connection according to an alternative embodiment of the present application;
FIG. 5 is a schematic diagram of an alternative file storage access device according to an embodiment of the present application;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of embodiments of the present application, an embodiment of a method for accessing a storage file is provided.
Alternatively, in this embodiment, the access method for the storage file may be applied to a hardware environment formed by the terminal 101, the object storage server 103 in the public cloud, and the internet data center server 105 as shown in fig. 1. As shown in fig. 1, the object storage server 103 in the public cloud is connected to the terminal 101 through a network, and the object storage server 103 in the public cloud is used for providing services (such as multimedia playing service, shopping service, financial transaction service, etc.) for the terminal 101, where the network includes but is not limited to: the terminal 101 is not limited to a PC, a mobile phone, a tablet computer, and the like. The internet data center server 105 is connected to the object storage server 103 in the public cloud. The access method of the storage file according to the embodiment of the present application may be executed by the object storage server 103 in the public cloud.
Fig. 2 is a flowchart of an alternative method for accessing a stored file according to an embodiment of the present application, and as shown in fig. 2, the method may include the following steps:
step S202, receiving a file request initiated by a user to an object storage in a public cloud, wherein the file request is used for requesting to access a target file;
step S204, under the condition that the target file is not stored in the object storage, requesting the target file from an Internet data center through a special connection between the Internet data center and the object storage;
step S206, the target file returned by the Internet data center through the special connection is sent to the user.
Through the steps S202 to S206, a dedicated connection exists between the internet data center and the object storage in the public cloud, when the object storage does not store the target file requested by the user, the target file is requested to the internet data center through the dedicated connection, and the internet data center returns the target file through the dedicated connection, so that the source return of the storage file by using the public network is avoided, the source return efficiency and stability of the storage file access are ensured, the technical effect of improving the access efficiency of the storage file is realized, and the technical problem of low access efficiency of the storage file is solved.
In the technical solution provided in step S202, the User initiating the file request may be, but is not limited to, a User who registers an account in the object storage in the public cloud, that is, a User of the object storage in the public cloud.
Optionally, in this embodiment, the target file may include, but is not limited to, various types of files, such as: multimedia files, picture files, text files, transaction files, log files, and the like.
As an alternative embodiment, after the step S202, the method further includes:
s11, detecting the residual bandwidth of the dedicated connection when the target file is not stored in the object storage;
s12, when the residual bandwidth is smaller than the bandwidth threshold, requesting the target file from the Internet data center through the public network connection between the Internet data center and the object storage, and sending the target file returned by the Internet data center through the public network connection to the user;
and S13, when the residual bandwidth is larger than or equal to the bandwidth threshold, executing the step of requesting the target file from the Internet data center through the special connection.
Optionally, in this embodiment, when the object storage in the public cloud is full or insufficient in the bandwidth of the dedicated connection, the target file may also be requested from the internet data center through the public network connection.
Optionally, in this embodiment, the object storage of the public cloud may set a domain name (private line domain name) of the private connection as the first source station (primary), preferentially go to the first source station to pull data, and configure a domain name (public network domain name) of the public network connection as the second source station (standby). When the special connection bandwidth is full or insufficient, part of the source return flow can be switched to the second source station to ensure that the user can normally acquire the file without influencing the service.
In an alternative embodiment, fig. 3 is a schematic diagram of an access process of a storage file according to an alternative embodiment of the present application, and as shown in fig. 3, the access process of the storage file may include, but is not limited to, the following steps:
in step S302, the User accesses a file in the public cloud object storage through the client, but does not find the file to be accessed.
Step S304, the public cloud object storage pulls the file from the client source station 1 to the object storage through the private line domain name.
And S306, when the special line link has a problem, the public cloud object storage is switched to the public network domain name pull file.
Step S308, the public cloud object stores and synchronously returns the file to the client of the user.
In the technical solution provided in step S204, an Internet Data Center (Internet Data Center, abbreviated as IDC) may be, but is not limited to, a Data Center built by a customer on a public cloud, that is, a customer IDC.
Optionally, in this embodiment, the dedicated connection between the internet data center and the object storage in the public cloud is a connection dedicated to the back source storage file between the object storage and the internet data center.
Before the above step S204, the above dedicated connection may be established, but is not limited to, by:
s21, establishing a dedicated connection line between the Internet data center and a virtual private network corresponding to the Internet data center in the public cloud, wherein the virtual private network allows the Internet data center to access the intranet domain name stored in the object through the dedicated connection line;
s22, establishing a cloud host corresponding to the Internet data center in the virtual private network;
s23, establishing the connection of the object storage to the Internet data center through the cloud host to obtain the special connection.
Optionally, in this embodiment, the mirror image back-to-source process may be connected back to the source through a dedicated line, and first, bidirectional intercommunication between a customer self-built IDC (Internet Data Center) and a public cloud through the dedicated line needs to be achieved. The client IDC may first implement one-way interworking with the object storage through a VPC (Virtual Private Cloud) environment corresponding to the client in the public Cloud. And then the connection of the object storage to the internet data center is realized through the cloud host established in the virtual private network.
Optionally, in this embodiment, the dedicated communication line between the IDC of the client and the VPC may be established, but is not limited to, by pulling a dedicated line through which the IDC of the client is communicable with a VPC environment constructed by the client in the public cloud. At the moment, the client IDC can actively initiate network connection and access object storage by accessing the intranet domain name stored by the object in the public cloud.
As an alternative embodiment, the connection of the object store to the internet data center may be established, but is not limited to, by:
s31, starting the cloud host, and communicating the cloud host with the Internet data center;
s32, a public network load balancing mounting elastic IP is set for the cloud host, wherein the public network load balancing mounting elastic IP is used for allowing the object storage to access the Internet data center based on the elastic IP;
and S33, setting the network address of the cloud host in the object storage as a private return source domain name corresponding to the Internet data center.
Optionally, in this embodiment, since a dedicated connection line is established between the internet data center and the virtual private network, the cloud host established in the virtual private network can be connected with the internet data center after being started.
Optionally, in this embodiment, public network load balancing mount resilient IP is used to allow the object store to access the internet data center based on resilient IP. Load Balancing (SLB) is a network service device that distributes traffic to multiple backend servers. The external service capability of an application system can be rapidly improved through flow distribution; hiding an actual service port, and enhancing the safety of an internal system; by eliminating single point of service failures, the reliability of the application system is improved. The load balancing of the public network set by the cloud host can perform load balancing processing on data which are stored in the object and sent to the internet data center.
Optionally, in this embodiment, an Elastic IP (EIP) is an IP address associated with a customer account, and may be bound to any one of a cloud server, a cloud physical host, or load balancing of the customer, so that the bound cloud resource has the capability of communicating with the Internet. Thereby enabling the cloud host to communicate with the object store.
The target that the object storage is based on the public network IP, passes through a client VPC environment and then accesses the client IDC source station is realized through the public network load balancing mounting elastic IP.
Optionally, in this embodiment, the network address of the cloud host is set as the source return domain name corresponding to the internet data center in the object storage, so that the internet data center can return the requested target file to the cloud host according to the network address of the cloud host, and then the cloud host returns the target file to the object storage through the connected dedicated line.
As an alternative embodiment, the cloud host corresponding to the internet data center may be established in the virtual private network by, but not limited to, the following manners:
s41, obtaining the peak bandwidth of the virtual private network;
s42, determining the number of cloud hosts according to the peak bandwidth and the target redundancy;
s43, establishing the cloud host meeting the cloud host number for the Internet data center in the virtual private network.
Optionally, in this embodiment, the cloud host is an important component of a cloud computing infrastructure, and can provide a computing service that is simple, efficient, safe, reliable, and elastically scalable in processing capability, so that a developer can easily perform internet scale computing and deploy a required server environment. The cloud host established in the virtual private network can be used as a proxy for the process of storing the file back to the source.
Optionally, in this embodiment, the source-returning agent process of the storage file mainly includes a large number of input/output IO operations, high requirements for the network card, low requirements for the CPU and the memory, and a cloud host model with a high network card performance may be selected.
Optionally, in this embodiment, a cloud host meeting the service requirement and throughput of the intranet may be established according to the peak bandwidth and the target redundancy of the virtual private network. Such as: the peak bandwidth of a client is 20Gbps, 10 cloud host proxy back-source services are needed, the target redundancy is 2, and then 12 cloud hosts can be established in the virtual private network for the client.
In the process, bidirectional intercommunication with object storage through a private line can be realized by using a public network Load Balance (LB) and an Elastic IP (EIP) through a client VPC environment as a transfer, internal network IP conflict possibly caused by planning of client IDC and a cloud network is not limited, and the client does not need to modify an original internal network domain name communication mode.
In an alternative embodiment, fig. 4 is a schematic diagram of a process of establishing a dedicated connection according to an alternative embodiment of the present application, and as shown in fig. 4, a client IDC communicates with a client VPC through a dedicated connection, a plurality of KS3 proxy machines are established in the client VPC, and the plurality of KS3 proxy machines communicate with a public cloud object store through a public network LB and an elastic ip (eip), so as to implement a dedicated connection between the client IDC and the object store in the public cloud.
In the technical solution provided in step S204, if the target file requested by the user is not stored in the object storage, the target file is pulled from the internet data center through the established dedicated connection.
In the above step S204, the target file may be requested to the internet data center, but not limited to, by:
s51, acquiring the network address of the cloud host;
s52, the file request is sent to the cloud host through the network address, wherein the file request is forwarded to the Internet data center from the private connection line through the cloud host.
Optionally, in this embodiment, the network address of the cloud host is an elastic IP of the cloud host, the file request can be routed to a certain cloud host for processing through the elastic IP of the cloud host and the public network load balance set on the cloud host, and the cloud host can forward the file request to the internet data center through a dedicated connection line.
In the technical solution provided in step S206, the internet data center returns the target file through the dedicated connection, and then the target file is stored and sent to the user who initiated the file request.
In the above step S206, the target file may be sent to the user by, but not limited to, the following ways:
s61, receiving the target file returned by the Internet data center through the cloud host;
s62, storing the object file in the object store;
and S63, sending the target file to the user.
Optionally, in this embodiment, the internet data center sends the target file to the cloud host through a dedicated connection line between the internet data center and the virtual private network, and then the cloud host sends the target file to the object for storage through public network load balancing and flexible IP.
Optionally, in this embodiment, the object store receives the target file, stores the target file in the object store, and returns the target file to the user. So that the next time the user or other user requests access to the target file is available directly to the user.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
According to another aspect of the embodiment of the present application, there is also provided a storage file access apparatus for implementing the above storage file access method. Fig. 5 is a schematic diagram of an alternative file storage access device according to an embodiment of the present application, and as shown in fig. 5, the device may include:
a receiving module 52, configured to receive a file request initiated by a user to an object storage in a public cloud, where the file request is used to request access to a target file;
a request module 54, configured to request the target file from an internet data center through a dedicated connection between the internet data center and the object store if the target file is not stored in the object store;
a sending module 56, configured to send the target file returned by the internet data center through the dedicated connection to the user.
It should be noted that the receiving module 52 in this embodiment may be configured to execute the step S202 in this embodiment, the requesting module 54 in this embodiment may be configured to execute the step S204 in this embodiment, and the sending module 56 in this embodiment may be configured to execute the step S206 in this embodiment.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may operate in a hardware environment as shown in fig. 1, and may be implemented by software or hardware.
Through the module, the special connection exists between the internet data center and the object storage in the public cloud, when the object storage does not store the target file requested by the user, the target file is requested to the internet data center through the special connection, the internet data center returns the target file through the special connection, the source returning of the storage file by using the public network is avoided, the source returning efficiency and the stability of the storage file access are ensured, the technical effect of improving the access efficiency of the storage file is realized, and the technical problem of low access efficiency of the storage file is solved.
As an alternative embodiment, the apparatus further comprises:
the first establishing module is used for establishing a special connection line between the internet data center and a virtual private network corresponding to the internet data center in the public cloud, wherein the virtual private network allows the internet data center to access the intranet domain name stored in the object storage through the special connection line;
the second establishing module is used for establishing a cloud host corresponding to the internet data center in the virtual private network;
and the third establishing module is used for establishing the connection between the object storage and the internet data center through the cloud host to obtain the special connection.
As an optional embodiment, the third establishing module is configured to:
starting the cloud host, and communicating the cloud host with the internet data center;
setting a public network load balancing mounting elastic IP for the cloud host, wherein the public network load balancing mounting elastic IP is used for allowing the object storage to access the internet data center based on the elastic IP;
and setting the network address of the cloud host in the object storage as a special line return source domain name corresponding to the internet data center.
As an optional embodiment, the second establishing module is configured to:
acquiring the peak bandwidth of the virtual private network;
determining the number of cloud hosts according to the peak bandwidth and the target redundancy;
and establishing the cloud hosts meeting the cloud host number for the Internet data center in the virtual private network.
As an alternative embodiment, the request module includes:
the acquisition unit is used for acquiring the network address of the cloud host;
the first sending unit is used for sending the file request to the cloud host through the network address, wherein the file request is forwarded to the internet data center from the private connection line through the cloud host.
As an alternative embodiment, the sending module includes:
the receiving unit is used for receiving the target file returned by the internet data center through the cloud host;
a storage unit configured to store the target file in the object store;
and the second sending unit is used for sending the target file to the user.
As an alternative embodiment, the apparatus further comprises:
a detection module, configured to detect a remaining bandwidth of the dedicated connection when the target file is not stored in the object storage after receiving a file request initiated by a user to the object storage;
the processing module is used for requesting the target file from the Internet data center through public network connection between the Internet data center and the object storage under the condition that the residual bandwidth is smaller than a bandwidth threshold value, and sending the target file returned by the Internet data center through the public network connection to the user;
and the execution module is used for executing the step of requesting the target file from the Internet data center through the special connection under the condition that the residual bandwidth is greater than or equal to the bandwidth threshold.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments. It should be noted that the modules described above as a part of the apparatus may be operated in a hardware environment as shown in fig. 1, and may be implemented by software, or may be implemented by hardware, where the hardware environment includes a network environment.
According to another aspect of the embodiment of the present application, there is also provided an electronic device for implementing the above method for accessing a storage file.
Fig. 6 is a block diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 6, the electronic device may include: one or more processors 601 (only one of which is shown), a memory 603, and a transmission 605. as shown in fig. 6, the electronic apparatus may further include an input-output device 607.
The memory 603 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for accessing a storage file in the embodiment of the present application, and the processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 603, that is, implements the above-mentioned method for accessing a storage file. The memory 603 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 603 may further include memory located remotely from the processor 601, which may be connected to the electronic device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The above-mentioned transmission device 605 is used for receiving or sending data via a network, and may also be used for data transmission between a processor and a memory. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 605 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 605 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Among them, the memory 603 is used to store an application program, in particular.
The processor 601 may call the application stored in the memory 603 through the transmission device 605 to perform the following steps:
receiving a file request initiated by a user to an object storage in a public cloud, wherein the file request is used for requesting to access a target file;
requesting the target file from an internet data center through a dedicated connection between the internet data center and the object store in a case that the target file is not stored in the object store;
and sending the target file returned by the Internet data center through the special connection to the user.
By adopting the embodiment of the application, a scheme for accessing the storage file is provided. The method has the advantages that the special connection exists between the internet data center and the object storage in the public cloud, when the object storage does not store the target file requested by the user, the target file is requested to the internet data center through the special connection, the internet data center returns the target file through the special connection, the source returning of the storage file by using the public network is avoided, the source returning efficiency and the stability of the storage file access are guaranteed, the technical effect of improving the access efficiency of the storage file is achieved, and the technical problem of low access efficiency of the storage file is solved.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
It will be understood by those skilled in the art that the structure shown in fig. 6 is merely an illustration, and the electronic device may be a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a Mobile Internet Device (MID), a PAD, etc. Fig. 6 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 6, or have a different configuration than shown in FIG. 6.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program for instructing hardware associated with an electronic device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Embodiments of the present application also provide a storage medium. Alternatively, in this embodiment, the storage medium may be a program code for executing an access method of a storage file.
Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
receiving a file request initiated by a user to an object storage in a public cloud, wherein the file request is used for requesting to access a target file;
requesting the target file from an internet data center through a dedicated connection between the internet data center and the object store in a case that the target file is not stored in the object store;
and sending the target file returned by the Internet data center through the special connection to the user.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, network devices, or the like) to execute all or part of the steps of the method described in the embodiments of the present application.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. An access method for a stored file, comprising:
receiving a file request initiated by a user to an object storage in a public cloud, wherein the file request is used for requesting to access a target file;
requesting the target file from an internet data center through a dedicated connection between the internet data center and the object store in a case that the target file is not stored in the object store;
and sending the target file returned by the Internet data center through the special connection to the user.
2. The method of claim 1, wherein prior to requesting the target file from an internet data center over a dedicated connection between the internet data center and the object store, the method further comprises:
establishing a dedicated connection line between the internet data center and a virtual private network corresponding to the internet data center in the public cloud, wherein the virtual private network allows the internet data center to access the intranet domain name stored in the object storage through the dedicated connection line;
establishing a cloud host corresponding to the internet data center in the virtual private network;
and establishing the connection of the object storage to the internet data center through the cloud host to obtain the special connection.
3. The method of claim 2, wherein establishing, by the cloud host, a connection for the object storage to the internet data center comprises:
starting the cloud host, and communicating the cloud host with the internet data center;
setting a public network load balancing mounting elastic IP for the cloud host, wherein the public network load balancing mounting elastic IP is used for allowing the object storage to access the internet data center based on the elastic IP;
and setting the network address of the cloud host in the object storage as a special line return source domain name corresponding to the internet data center.
4. The method of claim 2, wherein establishing the cloud host corresponding to the internet data center in the virtual private network comprises:
acquiring the peak bandwidth of the virtual private network;
determining the number of cloud hosts according to the peak bandwidth and the target redundancy;
and establishing the cloud hosts meeting the cloud host number for the Internet data center in the virtual private network.
5. The method of claim 2, wherein requesting the target file from the internet data center over the dedicated connection comprises:
acquiring a network address of the cloud host;
and sending the file request to the cloud host through the network address, wherein the file request is forwarded to the internet data center from the private connection line through the cloud host.
6. The method of claim 2, wherein sending the target file returned by the internet data center over the dedicated connection to the user comprises:
receiving the target file returned by the internet data center through the cloud host;
storing the target file in the object store;
and sending the target file to the user.
7. The method of claim 1, wherein after receiving a user initiated file request to the object store, the method further comprises:
detecting a remaining bandwidth of the dedicated connection in case the target file is not stored in the object store;
under the condition that the residual bandwidth is smaller than a bandwidth threshold value, requesting the target file from the Internet data center through public network connection between the Internet data center and the object storage, and sending the target file returned by the Internet data center through the public network connection to the user;
and in the case that the residual bandwidth is larger than or equal to the bandwidth threshold value, executing the step of requesting the target file from the Internet data center through the special connection.
8. An access device for storing a file, comprising:
the system comprises a receiving module, a storage module and a processing module, wherein the receiving module is used for receiving a file request initiated by a user to an object storage in a public cloud, and the file request is used for requesting to access a target file;
a request module, configured to request the target file from an internet data center through a dedicated connection between the internet data center and the object store when the target file is not stored in the object store;
and the sending module is used for sending the target file returned by the Internet data center through the special connection to the user.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program when executed performs the method of any of the preceding claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the method of any of the preceding claims 1 to 7 by means of the computer program.
CN202011017879.2A 2020-09-24 2020-09-24 Access method and device for storage file Pending CN114253928A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011017879.2A CN114253928A (en) 2020-09-24 2020-09-24 Access method and device for storage file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011017879.2A CN114253928A (en) 2020-09-24 2020-09-24 Access method and device for storage file

Publications (1)

Publication Number Publication Date
CN114253928A true CN114253928A (en) 2022-03-29

Family

ID=80790083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011017879.2A Pending CN114253928A (en) 2020-09-24 2020-09-24 Access method and device for storage file

Country Status (1)

Country Link
CN (1) CN114253928A (en)

Similar Documents

Publication Publication Date Title
CN106856434B (en) Method and device for converting access request
US8762544B2 (en) Selectively communicating data of a peripheral device to plural sending computers
CN111163130B (en) Network service system and data transmission method thereof
CN109521956B (en) Cloud storage method, device, equipment and storage medium based on block chain
CN102271165B (en) Device and method for sharing and managing resources searched on Internet
US20170171301A1 (en) Method, device and system for load balancing configuration
US10320951B2 (en) Systems and methods for establishing a virtual local area network
CN106648838B (en) Resource pool management configuration method and device
CN111245918A (en) Service request transmission method and device
CN106161356B (en) Method and system for rapidly logging in website through client
US11803606B2 (en) Device augmentation of real time communications
CN105554096A (en) Method and system for realizing cloud game cloud service
CN110351364A (en) Date storage method, equipment and computer readable storage medium
CN111131470B (en) Terminal device, data processing method thereof and data processing system
CN109981778B (en) Method, device, equipment and storage medium for realizing service of content distribution network
CN108600255B (en) Mock service management method, device, computer equipment and storage medium
US20200236084A1 (en) Computing system with gateway data transfer based upon device data flow characteristics and related methods
CN114253928A (en) Access method and device for storage file
CN108737350B (en) Information processing method and client
JP2023522785A (en) Harmony Comprehensive Proxy Service
CN109302446B (en) Cross-platform access method and device, electronic equipment and storage medium
CN108696598B (en) Method and device for transparently transmitting message received by stateless service through long connection under micro-service architecture
CN113747252A (en) Multimedia resource transmission method, device and system
CN111416852A (en) Method for session synchronization among multiple load balancers and load balancer
CN113452539B (en) Source station switching method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination