CN112468558A - Request forwarding method, device, terminal and storage medium based on hybrid cloud - Google Patents

Request forwarding method, device, terminal and storage medium based on hybrid cloud Download PDF

Info

Publication number
CN112468558A
CN112468558A CN202011281681.5A CN202011281681A CN112468558A CN 112468558 A CN112468558 A CN 112468558A CN 202011281681 A CN202011281681 A CN 202011281681A CN 112468558 A CN112468558 A CN 112468558A
Authority
CN
China
Prior art keywords
server
request
cloud
public cloud
request information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011281681.5A
Other languages
Chinese (zh)
Other versions
CN112468558B (en
Inventor
武旭峰
安刚
张海忠
秦东明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
3Clear Technology Co Ltd
Original Assignee
3Clear 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 3Clear Technology Co Ltd filed Critical 3Clear Technology Co Ltd
Priority to CN202011281681.5A priority Critical patent/CN112468558B/en
Publication of CN112468558A publication Critical patent/CN112468558A/en
Application granted granted Critical
Publication of CN112468558B publication Critical patent/CN112468558B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1014Server selection for load balancing based on the content of a request

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a request forwarding method, a request forwarding device, a terminal and a storage medium based on a hybrid cloud, wherein the method comprises the following steps: acquiring current load conditions of a plurality of servers in a multi-service cluster in a public cloud; determining a designated server according to the current load condition; the appointed servers comprise a first server capable of providing appointed services, which is determined according to the sequence of the current load condition from small to large; sending the request information to a designated server; receiving response information corresponding to the request information from the specified server; when the multi-service cluster in the public cloud does not comprise a server capable of providing the specified service, the server which is finally determined to be incapable of providing the specified service in the public cloud forwards the request information to the server in the private cloud; response information corresponding to the request information is received from a server in the private cloud. When the public cloud is abnormal, the request is forwarded to the private cloud, and the private cloud sends response information, so that the condition of no response is effectively avoided.

Description

Request forwarding method, device, terminal and storage medium based on hybrid cloud
Technical Field
The invention relates to the field of cloud computing, in particular to a request forwarding method, a request forwarding device, a request forwarding terminal and a storage medium based on a hybrid cloud.
Background
The current gateway technology mainly uses zuul as a framework, which is an open source project of Netflix company, and is constructed in Servlet 2.5, and uses a blocking type API (application Program interface), which does not support long connection. For example, websockets, when an exception occurs in a program, the internal exception covers actual information, and frames also have the phenomenon of stopping or updating too slowly, which greatly restricts the expansion of the technology and the progress of engineering. And at present, if data is lost or a program is hung up due to a hardware problem, the single cloud service cannot provide data for a client.
Therefore, providing a user request forwarding method capable of effectively avoiding response exception is one of the problems that needs to be solved in the art at present.
Disclosure of Invention
In view of this, embodiments of the present invention provide a request forwarding method, an apparatus, a terminal and a storage medium based on a hybrid cloud, so as to solve the problem that a program is suspended due to data loss or hardware problem during a single cloud service, and thus data cannot be provided for a client.
Therefore, the embodiment of the invention provides the following technical scheme:
the first aspect of the present invention provides a request forwarding method based on a hybrid cloud, including:
acquiring current load conditions of a plurality of servers in a multi-service cluster in a public cloud;
determining a designated server according to the current load condition; the appointed servers comprise a first server capable of providing appointed services, which is determined according to the sequence of the current load condition from small to large;
sending the request information to the specified server;
receiving response information corresponding to the request information from the specified server;
when a server capable of providing the specified service is not included in the multi-service cluster in the public cloud, the server which is finally determined to be incapable of providing the specified service in the public cloud forwards the request information to a server in the private cloud; response information corresponding to the request information is received from a server in the private cloud.
Optionally, before sending the request information to the specified server, the method further includes:
acquiring a user account and a password carried in the request;
and determining that the user account and the password meet preset conditions.
The second aspect of the present invention provides a request forwarding method based on a hybrid cloud, including:
establishing a server queue according to the sequence of the current load condition of each server in the multi-service cluster in the public cloud from small to large;
determining a first appointed server capable of providing appointed service in a server queue, and receiving request information sent by a client;
generating response information according to the request information, and sending the response information to the client;
when a server in the multi-server group in the public cloud cannot provide the specified service, determining the server which cannot provide the specified service at last, and forwarding the request information to a server in the private cloud; so that the server in the private cloud provides response information corresponding to the request information.
Optionally, before determining a first designated server capable of providing a designated service in the server queue and receiving request information sent by the client, the method further includes:
counting the number of received requests in a preset working period;
reading a preset current limiting strategy for adding a current limiting label when the number of requests in a preset working period exceeds a preset request amount threshold;
and extracting user information carried by the request, and adding a current limiting label to the request according to the preset current limiting strategy and the user information.
Optionally, the current limiting policy is IP segment current limiting, and adding a current limiting tag to the request according to the preset current limiting policy and the user information specifically includes:
and acquiring the requested user IP, judging whether the user IP is in the current limiting IP section, and adding a current limiting label for the request of the user IP in the current limiting IP section.
Optionally, the step of failing to provide the specified service by the server in the multi-server farm in the public cloud includes: public cloud data overrun, requests overrun public cloud limit order and public cloud no-response data.
The third aspect of the present invention provides a request forwarding apparatus based on a hybrid cloud, which is applied to a client, and includes:
the load obtaining module is used for obtaining the current load conditions of a plurality of servers in the multi-service cluster in the public cloud;
the server determining module is used for determining a designated server according to the current load condition; the appointed servers comprise a first server capable of providing appointed services, which is determined according to the sequence of the current load condition from small to large;
the request sending module is used for sending request information to the specified server;
a first response receiving module, configured to receive response information corresponding to the request information from the specified server;
a second response receiving module, configured to, when a server capable of providing a specified service is not included in the multi-service cluster in the public cloud, forward, by a server that is determined to be unable to provide the specified service last in the public cloud, the request information to a server in the private cloud; response information corresponding to the request information is received from a server in the private cloud.
The fourth aspect of the present invention provides a request forwarding apparatus based on a hybrid cloud, which is applied to a server of a public cloud, and includes:
the server queue establishing module is used for establishing a server queue according to the sequence of the current load condition of each server in the multi-service cluster in the public cloud from small to large;
the request receiving module is used for determining a first appointed server capable of providing appointed service in the server queue and receiving request information sent by the client;
the response sending module generates response information according to the request information and sends the response information to the client;
the request forwarding module is used for determining a server which cannot provide the specified service at last and forwarding the request information to a server in a private cloud when the server in the multi-server group in the public cloud cannot provide the specified service; so that the server in the private cloud provides response information corresponding to the request information.
A fifth aspect of the present invention provides a terminal, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the one processor to cause the at least one processor to perform the method of the first or second aspect.
A sixth aspect of the present invention provides a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, carry out the steps of the method of the first or second aspect.
The technical scheme of the embodiment of the invention has the following advantages:
the embodiment of the invention provides a request forwarding method, a request forwarding device, a terminal and a storage medium based on a hybrid cloud. Compared with the traditional single cloud processing, the method has better experience effect, and effectively avoids the condition that the response cannot be performed due to factors such as accidental data loss and large data volume. The public cloud redirection private cloud acquisition data can also realize dynamic capacity expansion and upgrading and the like on the aspect of high service availability, and is also efficiently decoupled with other services.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, 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 flow diagram of a hybrid cloud-based request forwarding method according to one embodiment of the invention;
fig. 2 is a flowchart of a hybrid cloud-based request forwarding method according to another embodiment of the present invention;
fig. 3 is a block diagram of a hybrid cloud-based request forwarding apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram of a hybrid cloud-based request forwarding apparatus according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
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 a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like indicate orientations or positional relationships based on those shown in the drawings, and are used merely for convenience of description and for simplicity of description, and do not indicate or imply that the referenced device or element must have a particular orientation, be constructed in a particular orientation, and be operated, and thus should not be considered as limiting the present application. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In this application, the word "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes are not set forth in detail in order to avoid obscuring the description of the present application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
According to an embodiment of the present invention, there is provided a hybrid cloud-based request forwarding method embodiment, it should be noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different from that here.
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.
The embodiment provides a request forwarding method based on a hybrid cloud, which can be used for a terminal, where the terminal may be an intelligent device such as a smart phone, a smart watch, an ipad, a tablet computer, and the like, and the method is not limited in the present application.
Fig. 1 is a flowchart of a hybrid cloud-based request forwarding method according to an embodiment of the present invention, and as shown in fig. 1, the flowchart includes the following steps:
and S1, acquiring the current load conditions of a plurality of servers in the multi-service cluster in the public cloud.
S2, determining a designated server according to the current load condition; the designated server comprises a first server which can provide the designated service and is determined according to the sequence of the current load condition from small to large.
When a client sends a large number of requests, each server in the public cloud has different configuration performance and different load capacity, and the requests are distributed according to the current load condition of each server, so that the individual servers are prevented from bearing excessive pressure.
And S3, sending the request information to the designated server.
S4, response information corresponding to the request information is received from the designated server.
S5, when the multi-service cluster in the public cloud does not comprise a server capable of providing the specified service, the server which is finally determined to be incapable of providing the specified service in the public cloud forwards the request information to the server in the private cloud; response information corresponding to the request information is received from a server in the private cloud.
The method includes the steps that a server capable of providing specified services is not included in a multi-service cluster in the public cloud, namely when the public cloud is abnormal, the abnormal conditions include the conditions that public cloud data exceeds a time limit, a request exceeds a public cloud limit order, the public cloud does not respond to data and the like, and the conditions that the public cloud hangs up due to human factors can be included. Due to the timeliness of data retained on the public cloud, a data overrun condition may occur. Data retained on the public cloud is also limited, so situations can arise where requests exceed public cloud restrictions and public cloud unresponsive data. At this time, the server which is finally determined to be unable to provide the specified service in the public cloud forwards the request information to the server in the private cloud, redirection of the public cloud to the private cloud is completed, and the private cloud completes the response.
Prior to step S2, the method further comprises: s10, acquiring the user account and the password carried in the request; and determining that the user account and the password accord with preset conditions. The request information is authenticated, if the user account number and the password meet the request of the preset condition, the authentication is passed, the request information is sent to the appointed server, and if not, the authentication is not passed. A request for authentication failure may be returned to the client.
Other authentication modes can be adopted, for example, a mode of using a client inside the system is used for assigning the unique id to the client, the permission token is set, the unique id is stacked into an encryption mode by jwt for matching, the matching is successfully passed through the authentication, and the request information after the authentication is passed is sent to the assigned server.
Fig. 2 is a flowchart of a hybrid cloud-based request forwarding method according to another embodiment of the present invention, and as shown in fig. 2, the flowchart includes the following steps:
s100, establishing a server queue according to the sequence from small to large of the current load condition of each server in the multi-service cluster in the public cloud. That is, the priority of each server for receiving requests is determined, and the server with the smaller current load preferentially receives the requests.
S200, determining a first appointed server capable of providing appointed service in a server queue, and receiving request information sent by a client.
S300, generating response information according to the request information, and sending the response information to the client;
s400, when the servers in the multi-server cluster in the public cloud cannot provide the designated service, determining the server which cannot provide the designated service at last, and forwarding the request information to the server in the private cloud; so that the server in the private cloud provides response information corresponding to the request information.
Before step S200, the method further includes step S101, counting the number of requests received in a preset work period; reading a preset current limiting strategy for adding a current limiting label when the number of requests in a preset working period exceeds a preset request amount threshold; and extracting user information carried by the request, adding a current limiting label to the request according to a preset current limiting strategy and the user information, and designating the server to receive the request without the current limiting label. Namely, the request information is limited, and the individual server is prevented from bearing excessive pressure.
The preset work period is a reference value for determining the user request amount, specifically may be 10 seconds, 1 minute, or 3 minutes, and the preset work period may be set according to an average time used for processing the request by each server in the multiple servers.
The preset request amount threshold is used for judging whether current limitation is needed, and the preset request amount threshold can be set according to the maximum load amount of the request, namely the maximum processing request amount, of the server. When the request quantity exceeds a preset request quantity threshold value within preset time, judging that current limitation is required; and when the request quantity does not exceed the preset threshold value within the preset time, judging that the current limitation is not needed for the moment, and directly receiving the request information sent by the client by the appointed server. The preset current limiting strategy can be realized through a pre-written script file, and is used for adding a corresponding current limiting label for the received request according to the user information corresponding to the request, and then judging whether the current request is received or not through the current request corresponding to the current limiting label when the request reaches a specified server, and directly returning the request which does not meet the requirement to the client side.
The flow restriction tag is a tag for determining whether or not to receive a request, and specifies that the server does not receive a request including the flow restriction tag. Whether the requests need to be limited is judged by analyzing the user information, and then the current limiting labels are added to the different requests, relatively important requests in the requests can be identified through the user information, and the efficiency of server request processing in the public cloud is improved.
After the server in the public cloud adds the current limiting label to the corresponding request according to the pre-stored current limiting strategy, the request added with the label is directly returned to the client or distributed to other servers in the multi-service cluster in the public cloud, and the request without the current limiting label is directly received, so that the risk of server crash is greatly reduced.
The method for adding the current limiting label to the request according to the preset current limiting strategy and the user information specifically comprises the following steps:
and acquiring the requested user IP, judging whether the user IP is in the current limiting IP section, and adding a current limiting label for the request of the user IP in the current limiting IP section.
Other current limiting strategies can be adopted, for example, if the current is limited by a user group, a current limiting label is added to a request corresponding to a user in the current limiting user group, and a designated server receives the request without the current limiting label.
In this embodiment, a case where a server in a multi-server cluster in a public cloud cannot provide a specific service is called a public cloud exception, and includes: public cloud data overrun, requests overrun public cloud limit order and public cloud no-response data. But also public cloud hang-ups due to human factors, etc.
In this embodiment, a request forwarding apparatus based on a hybrid cloud is further provided, and the apparatus is used to implement the foregoing embodiments, and the description of the apparatus is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram of a hybrid cloud-based request forwarding apparatus according to an embodiment of the present invention; the device is applied to a client, and as shown in fig. 3, the device comprises:
the load obtaining module 1 is configured to obtain current load conditions of multiple servers in a multi-service cluster in a public cloud.
The server determining module 2 is used for determining a designated server according to the current load condition; the designated server comprises a first server which can provide the designated service and is determined according to the sequence of the current load condition from small to large.
And the request sending module 3 is used for sending the request information to the specified server.
And a first response receiving module 4, configured to receive response information corresponding to the request information from the specified server.
A second response receiving module 5, configured to, when a server capable of providing the specified service is not included in the multi-service cluster in the public cloud, forward, by a server that is finally determined to be incapable of providing the specified service in the public cloud, request information to a server in the private cloud; response information corresponding to the request information is received from a server in the private cloud.
Fig. 4 is a block diagram of a hybrid cloud-based request forwarding apparatus according to another embodiment of the present invention; the device is applied to a server of a public cloud, and as shown in fig. 4, the device comprises:
the server queue establishing module 10 is configured to establish a server queue according to a sequence from a small load condition to a large load condition of each server in the multi-service cluster in the public cloud.
And the request receiving module 20 is configured to determine a first designated server in the server queue, which can provide a designated service, and receive request information sent by the client.
And the response sending module 30 generates response information according to the request information and sends the response information to the client.
The request forwarding module 40 is configured to determine, when a server in the multi-server group in the public cloud cannot provide a specific service, a server that cannot provide the specific service at last, and forward request information to a server in the private cloud; so that the server in the private cloud provides response information corresponding to the request information.
Further functional descriptions of the modules are the same as those of the corresponding embodiments, and are not repeated herein.
An embodiment of the present invention further provides a terminal, which has the request forwarding device based on a hybrid cloud shown in fig. 3 or 4.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention, and as shown in fig. 5, the terminal may include: at least one processor 380, such as a CPU (Central Processing Unit), at least one communication interface 303, memory 320, and at least one communication bus 302. Wherein a communication bus 302 is used to enable the connection communication between these components. The communication interface 303 may include a Display (Display) and a Keyboard (Keyboard), and the optional communication interface 303 may further include a standard wired interface and a standard wireless interface. The Memory 320 may be a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The memory 320 may optionally be at least one storage device located remotely from the processor 380. Wherein the processor 380 may be in connection with the apparatus described in fig. 3 or fig. 4, the memory 320 stores an application program, and the processor 380 calls the program code stored in the memory 320 for performing any of the above-mentioned method steps. I.e. for performing any of the above-mentioned method steps, i.e. for performing the following operations:
the method comprises the steps of obtaining the current load conditions of a plurality of servers in a multi-service cluster in the public cloud.
Determining a designated server according to the current load condition; the designated server comprises a first server which can provide the designated service and is determined according to the sequence of the current load condition from small to large.
And sending the request information to a specified server.
Response information corresponding to the request information is received from the specified server.
When the multi-service cluster in the public cloud does not comprise a server capable of providing the specified service, the server which is finally determined to be incapable of providing the specified service in the public cloud forwards the request information to the server in the private cloud; response information corresponding to the request information is received from a server in the private cloud.
In the embodiment of the present invention, the processor 380 calls the program code in the memory 320, and is further configured to perform the following operations:
before sending the request information to the designated server, acquiring a user account and a password carried in the request; and determining that the user account and the password accord with preset conditions.
In another embodiment of the present invention, the processor 380 calls the program code in the memory 320 to perform the following operations:
and establishing a server queue according to the sequence of the current load condition of each server in the multi-service cluster in the public cloud from small to large.
Determining a first appointed server capable of providing appointed service in the server queue, and receiving request information sent by the client.
And generating response information according to the request information, and sending the response information to the client.
When a server in a multi-server group in a public cloud cannot provide the specified service, determining a server which cannot provide the specified service at last, and forwarding request information to a server in a private cloud; so that the server in the private cloud provides response information corresponding to the request information.
In the embodiment of the present invention, the processor 380 calls the program code in the memory 320, and is further configured to perform the following operations:
before determining the first designated server in the server queue capable of providing the designated service and receiving the request information sent by the client,
and counting the number of the received requests in the preset working period.
And reading a preset current limiting strategy for adding a current limiting label when the number of requests in the preset work period exceeds a preset request amount threshold value.
And extracting user information carried by the request, and adding a current limiting label to the request according to a preset current limiting strategy and the user information.
The communication bus 302 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
The memory 320 may include a volatile memory (RAM), such as a random-access memory (RAM); the memory may also include a non-volatile memory (english: non-volatile memory), such as a flash memory (english: flash memory), a hard disk (english: hard disk drive, abbreviated: HDD) or a solid-state drive (english: SSD); memory 320 may also comprise a combination of memories of the sort described above.
The processor 380 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of a CPU and an NP.
The processor 380 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
Optionally, memory 320 is also used to store program instructions. Processor 380 may invoke program instructions to implement the hybrid cloud-based request forwarding method as shown in the embodiments of fig. 1 and 2 of the present application.
An embodiment of the present invention further provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when executed by a processor, the computer-executable instructions implement the request forwarding 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 (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A request forwarding method based on a hybrid cloud is characterized by comprising the following steps:
acquiring current load conditions of a plurality of servers in a multi-service cluster in a public cloud;
determining a designated server according to the current load condition; the appointed servers comprise a first server capable of providing appointed services, which is determined according to the sequence of the current load condition from small to large;
sending the request information to the specified server;
receiving response information corresponding to the request information from the specified server;
when a server capable of providing the specified service is not included in the multi-service cluster in the public cloud, the server which is finally determined to be incapable of providing the specified service in the public cloud forwards the request information to a server in the private cloud; response information corresponding to the request information is received from a server in the private cloud.
2. The hybrid cloud-based request forwarding method of claim 1, wherein before sending request information to the designated server, the method further comprises:
acquiring a user account and a password carried in the request;
and determining that the user account and the password meet preset conditions.
3. A request forwarding method based on a hybrid cloud is characterized by comprising the following steps:
establishing a server queue according to the sequence of the current load condition of each server in the multi-service cluster in the public cloud from small to large;
determining a first appointed server capable of providing appointed service in a server queue, and receiving request information sent by a client;
generating response information according to the request information, and sending the response information to the client;
when a server in the multi-server group in the public cloud cannot provide the specified service, determining the server which cannot provide the specified service at last, and forwarding the request information to a server in the private cloud; so that the server in the private cloud provides response information corresponding to the request information.
4. The hybrid cloud-based request forwarding method according to claim 3, wherein before determining a first designated server in the server queue capable of providing a designated service and receiving the request information sent by the client, the method further comprises:
counting the number of received requests in a preset working period;
reading a preset current limiting strategy for adding a current limiting label when the number of requests in a preset working period exceeds a preset request amount threshold;
and extracting user information carried by the request, and adding a current limiting label to the request according to the preset current limiting strategy and the user information.
5. The hybrid cloud-based request forwarding method of claim 4, wherein the current-limiting policy is IP segment current limiting, and adding a current-limiting label to the request according to the preset current-limiting policy and the user information specifically comprises:
and acquiring the requested user IP, judging whether the user IP is in the current limiting IP section, and adding a current limiting label for the request of the user IP in the current limiting IP section.
6. The hybrid cloud based request forwarding method of claim 3,
the failure of a server in the multi-server farm in the public cloud to provide a specified service comprises: public cloud data overrun, requests overrun public cloud limit order and public cloud no-response data.
7. A request forwarding device based on a hybrid cloud is applied to a client side and is characterized by comprising:
the load obtaining module is used for obtaining the current load conditions of a plurality of servers in the multi-service cluster in the public cloud;
the server determining module is used for determining a designated server according to the current load condition; the appointed servers comprise a first server capable of providing appointed services, which is determined according to the sequence of the current load condition from small to large;
the request sending module is used for sending request information to the specified server;
a first response receiving module, configured to receive response information corresponding to the request information from the specified server;
a second response receiving module, configured to, when a server capable of providing a specified service is not included in the multi-service cluster in the public cloud, forward, by a server that is determined to be unable to provide the specified service last in the public cloud, the request information to a server in the private cloud; response information corresponding to the request information is received from a server in the private cloud.
8. A request forwarding device based on a hybrid cloud is applied to a server of a public cloud, and is characterized by comprising:
the server queue establishing module is used for establishing a server queue according to the sequence of the current load condition of each server in the multi-service cluster in the public cloud from small to large;
the request receiving module is used for determining a first appointed server capable of providing appointed service in the server queue and receiving request information sent by the client;
the response sending module generates response information according to the request information and sends the response information to the client;
the request forwarding module is used for determining a server which cannot provide the specified service at last and forwarding the request information to a server in a private cloud when the server in the multi-server group in the public cloud cannot provide the specified service; so that the server in the private cloud provides response information corresponding to the request information.
9. A terminal, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the one processor to cause the at least one processor to perform the method of any one of claims 1-2 or 3-6.
10. A computer-readable storage medium having stored thereon computer instructions, which when executed by a processor, perform the steps of the method of any of claims 1-2 or 3-6.
CN202011281681.5A 2020-11-16 2020-11-16 Request forwarding method, device, terminal and storage medium based on hybrid cloud Active CN112468558B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011281681.5A CN112468558B (en) 2020-11-16 2020-11-16 Request forwarding method, device, terminal and storage medium based on hybrid cloud

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011281681.5A CN112468558B (en) 2020-11-16 2020-11-16 Request forwarding method, device, terminal and storage medium based on hybrid cloud

Publications (2)

Publication Number Publication Date
CN112468558A true CN112468558A (en) 2021-03-09
CN112468558B CN112468558B (en) 2021-08-20

Family

ID=74837099

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011281681.5A Active CN112468558B (en) 2020-11-16 2020-11-16 Request forwarding method, device, terminal and storage medium based on hybrid cloud

Country Status (1)

Country Link
CN (1) CN112468558B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113489773A (en) * 2021-06-30 2021-10-08 未鲲(上海)科技服务有限公司 Data access method, device, equipment and medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747071A (en) * 2013-12-31 2014-04-23 合肥有线电视宽带网络有限公司 Private cloud voice data processing balancing system and method for broadcast television network
US20160188877A1 (en) * 2013-08-14 2016-06-30 Ajeya Hindupur Simha Automating Monitoring Of A Computing Resource In A Cloud-Based Data Center
CN106453564A (en) * 2016-10-18 2017-02-22 北京京东尚科信息技术有限公司 Elastic cloud distributed massive request processing method, device and system
CN107071020A (en) * 2017-04-07 2017-08-18 天津中科先进技术研究院有限公司 Load balancing framework applied to cloud computing server
CN107239329A (en) * 2016-03-29 2017-10-10 西门子公司 Unified resource dispatching method and system under cloud environment
CN107241384A (en) * 2017-05-03 2017-10-10 复旦大学 A kind of content distribution service priority scheduling of resource method based on many cloud frameworks
CN108234617A (en) * 2017-12-26 2018-06-29 国家电网公司 Dynamic resource scheduling method in hybrid cloud mode for power system
US10067850B2 (en) * 2010-07-19 2018-09-04 Akamai Technologies, Inc. Load test charts with standard deviation and percentile statistics
CN109587254A (en) * 2018-12-11 2019-04-05 深圳市口袋网络科技有限公司 Cloud Server access method, device, Cloud Server and storage medium
CN109710392A (en) * 2018-12-21 2019-05-03 万达信息股份有限公司 A kind of heterogeneous resource dispatching method based on mixed cloud
CN110636115A (en) * 2019-08-29 2019-12-31 平安医疗健康管理股份有限公司 Cross-cloud service calling processing method, gateway server and requester server

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10067850B2 (en) * 2010-07-19 2018-09-04 Akamai Technologies, Inc. Load test charts with standard deviation and percentile statistics
US20160188877A1 (en) * 2013-08-14 2016-06-30 Ajeya Hindupur Simha Automating Monitoring Of A Computing Resource In A Cloud-Based Data Center
CN103747071A (en) * 2013-12-31 2014-04-23 合肥有线电视宽带网络有限公司 Private cloud voice data processing balancing system and method for broadcast television network
CN107239329A (en) * 2016-03-29 2017-10-10 西门子公司 Unified resource dispatching method and system under cloud environment
CN106453564A (en) * 2016-10-18 2017-02-22 北京京东尚科信息技术有限公司 Elastic cloud distributed massive request processing method, device and system
CN107071020A (en) * 2017-04-07 2017-08-18 天津中科先进技术研究院有限公司 Load balancing framework applied to cloud computing server
CN107241384A (en) * 2017-05-03 2017-10-10 复旦大学 A kind of content distribution service priority scheduling of resource method based on many cloud frameworks
CN108234617A (en) * 2017-12-26 2018-06-29 国家电网公司 Dynamic resource scheduling method in hybrid cloud mode for power system
CN109587254A (en) * 2018-12-11 2019-04-05 深圳市口袋网络科技有限公司 Cloud Server access method, device, Cloud Server and storage medium
CN109710392A (en) * 2018-12-21 2019-05-03 万达信息股份有限公司 A kind of heterogeneous resource dispatching method based on mixed cloud
CN110636115A (en) * 2019-08-29 2019-12-31 平安医疗健康管理股份有限公司 Cross-cloud service calling processing method, gateway server and requester server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113489773A (en) * 2021-06-30 2021-10-08 未鲲(上海)科技服务有限公司 Data access method, device, equipment and medium

Also Published As

Publication number Publication date
CN112468558B (en) 2021-08-20

Similar Documents

Publication Publication Date Title
CN110351357B (en) Server current limiting method, device, computer equipment and storage medium
CN111367983B (en) Database access method, system, device and storage medium
US20210036907A1 (en) Methods and apparatuses for pushing a message
CN111447102B (en) SDN network device access method and device, computer device and storage medium
CN111756674B (en) Network communication method, system, device and computer readable storage medium
CN110554927A (en) Micro-service calling method based on block chain
CN111490963B (en) Data processing method, system, equipment and storage medium based on QUIC protocol stack
CN108683679A (en) More account login methods, device, equipment and the storage medium of Web APP
CN109951537A (en) A kind of load balance distribution method towards block chain
CN103795569A (en) Server connection method and device based on connection pool
CN112948120A (en) Load balancing method, system, device and storage medium
CN106713378B (en) Method and system for providing service by multiple application servers
CN112468558B (en) Request forwarding method, device, terminal and storage medium based on hybrid cloud
CN114363963A (en) Load balancing selection method and system for cloud-native UPF signaling plane
CN110098920B (en) Block chain link point load balancing method and device for reducing node collision
CN112448978B (en) Data management method and system
CN108259518A (en) A kind of network connection authentication method, device, electronic equipment and storage medium
CN109905407B (en) Management method, system, equipment and medium for accessing intranet based on VPN server
CN113157415B (en) Farm rendering method, device, electronic equipment and storage medium
CN113779021B (en) Data processing method, device, computer system and readable storage medium
WO2021012974A1 (en) Cloud-platform-based network flow control method and apparatus for containerized application, and device and storage medium
CN109548000B (en) System, method and computer equipment for sharing and purchasing communication service
CN113572701A (en) Service interface flow control method, device, equipment and storage medium
CN114285845B (en) Networking authentication method and system in cloud environment, computer equipment and storage medium
CN114095976B (en) Distribution method and device of network slices, electronic equipment and readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20210309

Assignee: Beijing Zhongke Sanqing Environmental Technology Co.,Ltd.

Assignor: 3CLEAR TECHNOLOGY Co.,Ltd.

Contract record no.: X2022980012305

Denomination of invention: Method, device, terminal and storage medium for request forwarding based on hybrid cloud

Granted publication date: 20210820

License type: Common License

Record date: 20220815

EE01 Entry into force of recordation of patent licensing contract