CN110324425B - Hybrid cloud transaction route processing method and device - Google Patents

Hybrid cloud transaction route processing method and device Download PDF

Info

Publication number
CN110324425B
CN110324425B CN201910614682.8A CN201910614682A CN110324425B CN 110324425 B CN110324425 B CN 110324425B CN 201910614682 A CN201910614682 A CN 201910614682A CN 110324425 B CN110324425 B CN 110324425B
Authority
CN
China
Prior art keywords
server
information
hybrid cloud
transaction
hit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910614682.8A
Other languages
Chinese (zh)
Other versions
CN110324425A (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201910614682.8A priority Critical patent/CN110324425B/en
Publication of CN110324425A publication Critical patent/CN110324425A/en
Application granted granted Critical
Publication of CN110324425B publication Critical patent/CN110324425B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Accounting & Taxation (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Cardiology (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a hybrid cloud transaction routing processing method and a device, wherein the method comprises the following steps: receiving transaction data and server information of each server in the hybrid cloud; wherein the server information includes: unifying resource positioning information; extracting keyword information in the transaction data; determining a hit server according to the keyword information, the server information and a preset routing strategy of the transaction data; wherein the hit server is a server having the same keyword as the transaction data; and carrying out hybrid cloud transaction routing processing according to the uniform resource positioning information of the hit server. The load problem of the traditional architecture and the PaaS architecture solves the problem of dynamic change and automatic adjustment of the bearing capacity caused by the start-stop operation of the server, and solves the problems of quick offline and switch-back under the condition that the PaaS or the traditional architecture is not usable as a whole.

Description

Hybrid cloud transaction route processing method and device
Technical Field
The invention relates to a load balancing technology, in particular to a distributed cluster traffic load and routing technology, and specifically relates to a hybrid cloud transaction routing processing method and device.
Background
At present, through the development of several years, the daily payment habits of the public in society are greatly changed by the internet payment and receipt service represented by a third-party payment mechanism, a convenient payment scheme is provided for the society, and the vigorous development of internet finance is promoted. Under the background, a channel system interfacing with a third party payment institution and outputting the bank payment and settlement service capability is particularly important, and besides providing 7 × 24 hours uninterrupted service, the channel system must have the capability of rapid scalability and ensure 99.999% availability of the system, thereby presenting an increasingly serious system challenge to financial institutions such as banks.
In order to respond to the challenge, the financial institutions such as banks and the like accelerate the technology transformation, on one hand, the Infrastructure is changed through the technology of Iaas (Infrastructure as a Service) cloud, PaaS (Platform architecture as a Service) and the like, and the operation and maintenance complexity is reduced; on the other hand, the stability of the financial system is maintained by keeping the traditional architecture and operation and maintenance mechanism. For example, a channel system interfacing with a third-party payment mechanism and outputting the bank payment and settlement service capability runs on a traditional architecture and a PaaS hybrid cloud architecture, and a commercial hardware load device F5 is used to realize the load of the flow, so that the channel system has both stability and appropriate elasticity capability.
In a mixed deployment mode in the prior art, a traditional architecture and a PaaS (platform as a service) mixed deployment mode have unreasonable defects, after the PaaS is rapidly expanded or contracted, the load cannot be rapidly adjusted, and when the PaaS is not available as a whole, the PaaS cannot be rapidly switched back to a traditional application server to continuously provide services to the outside.
Disclosure of Invention
In order to realize flexible adjustment of the mixed cloud transaction routing flow ratio, and simultaneously solve the contradiction between the stability and the quick expandability of a financial system. The embodiment of the invention provides a hybrid cloud transaction routing processing method, which comprises the following steps:
receiving transaction data and server information of each server in the hybrid cloud; wherein the server information includes: unifying resource positioning information;
extracting keyword information in the transaction data;
determining a hit server according to the keyword information, the server information and a preset routing strategy of the transaction data; wherein the hit server is a server having the same keyword as the transaction data;
and carrying out hybrid cloud transaction routing processing according to the uniform resource positioning information of the hit server.
In this embodiment of the present invention, the server information further includes: server IP address, server port information and server keyword information; the server keyword information includes: a partner organization number, a transaction code, and uniform resource identification information.
In an embodiment of the present invention, the extracting of the keyword information in the transaction data includes:
extracting keywords from an HTTP HEAD header of the transaction data; the keyword information comprises: the system comprises a cooperation organization number, a transaction number, uniform resource identification information and an extension reservation bit.
In an embodiment of the present invention, the determining a hit server according to the keyword information of the transaction data and a preset routing policy includes:
determining a preset routing strategy according to a preset cooperation mechanism number, a transaction number, uniform resource identification information and a priority sequence of an extended reserved bit;
and determining the server with the same key word as the transaction data as a hit server according to the priority sequence.
In the embodiment of the present invention, the performing routing processing on the hybrid cloud transaction according to the uniform resource location information of the hit server includes:
accessing the hit server into the hybrid cloud according to the uniform resource positioning information of the hit server;
and selecting an available server according to a preset optimal connection strategy to perform hybrid cloud routing processing.
In an embodiment of the present invention, the performing routing processing on the hybrid cloud transaction according to the uniform resource location information of the hit server further includes:
sending the detection message to an available server to perform heartbeat detection of the server;
and updating the server state according to the heartbeat detection result.
In the embodiment of the present invention, the method further includes:
receiving server change request information; the server change request information includes: server IP address, server port information and uniform resource identification information;
determining whether the received server IP address is a newly-added IP address according to the server information of each server in the hybrid cloud;
determining the server as a newly added IP address, and incorporating the server into a load group according to the server request information; determining that the server is not a newly added IP address, and removing the server from the payload packet.
Meanwhile, the invention also provides a hybrid cloud transaction route processing device, which comprises:
the data receiving module is used for receiving the transaction data and the server information of each server in the hybrid cloud; wherein the server information includes: unifying resource positioning information;
the keyword extraction module is used for extracting keyword information in the transaction data;
the routing strategy processing module is used for determining a hit server according to the keyword information, the server information and a preset routing strategy of the transaction data; wherein the hit server is a server having the same keyword as the transaction data;
and the hybrid cloud transaction processing module is used for performing hybrid cloud transaction routing processing according to the uniform resource positioning information of the hit server.
In this embodiment of the present invention, the routing policy processing module includes:
the routing strategy determining unit is used for determining a preset routing strategy according to the preset cooperation mechanism number, the transaction number, the uniform resource identification information and the priority sequence of the expansion reserved bit;
and the strategy execution unit is used for determining the server with the same key word as the transaction data as a hit server according to the priority sequence.
In an embodiment of the present invention, the hybrid cloud transaction processing module includes:
the server access unit is used for accessing the hit server into the hybrid cloud according to the uniform resource positioning information of the hit server;
and the cloud route processing unit is used for selecting the available servers according to a preset optimal connection strategy to perform hybrid cloud route processing.
In an embodiment of the present invention, the hybrid cloud transaction processing module further includes: a
The heartbeat detection unit is used for sending the detection message to the available server to carry out heartbeat detection of the server;
and the state updating unit is used for updating the server state according to the heartbeat detection result.
In the embodiment of the present invention, the apparatus further includes:
the data receiving module is also used for receiving server change request information; the server change request information includes: server IP address, server port information and uniform resource identification information;
the IP address judging module is used for determining whether the received IP address of the server is a newly-added IP address according to the server information of each server in the hybrid cloud;
a server state updating unit for determining the newly added IP address and incorporating the server into the load group according to the server request information; determining that the server is not a newly added IP address, and removing the server from the payload packet.
Meanwhile, the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the method when executing the computer program.
Meanwhile, the invention also provides a computer readable storage medium, and a computer program for executing the method is stored in the computer readable storage medium.
The invention provides a hybrid cloud transaction route processing device and method, which solve the problems of heterogeneous problems of a hybrid cloud and flexible adjustment of flow ratio, support dynamic change and automatic adjustment of bearing capacity caused by the start-stop operation of a server through a service registration module, realize quick offline and back-cut under the condition that a PaaS or traditional architecture is wholly unavailable, avoid the operation of manually adjusting load ratio, reduce the complexity of operation and maintenance, greatly reduce equipment expenditure through a hybrid cloud architecture, and solve the contradiction between the stability and quick expandability of a financial system.
In order to make the aforementioned and other objects, features and advantages of the invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a hybrid cloud transaction routing processing method provided by the present invention;
fig. 2 is a block diagram of a hybrid cloud transaction routing processing apparatus provided by the present invention;
FIG. 3 is a schematic diagram of an embodiment of the present invention;
FIG. 4 is a block diagram of an embodiment of the present invention;
FIG. 5 is a block diagram of an embodiment of the present invention;
fig. 6 is a flowchart of a routing policy selection method according to an embodiment of the present invention;
FIG. 7 is a block diagram of an embodiment of the present invention;
FIG. 8 is a block diagram of an embodiment of the present invention;
FIG. 9 is a flowchart of an add/delete server according to an embodiment of the present invention;
FIG. 10 is a diagram illustrating an effect of load adjustment of a newly added server according to an embodiment of the present invention;
FIG. 11 is a diagram illustrating the effect of load adjustment of a pruned server according to an embodiment of the present invention;
fig. 12 is a schematic block diagram of a system configuration of an electronic apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, a flowchart of a hybrid cloud transaction routing processing method provided by the present invention includes:
step S101, receiving transaction data and server information of each server in a hybrid cloud; wherein the server information includes: unifying resource positioning information;
step S102, extracting keyword information in the transaction data;
step S103, determining a hit server according to the keyword information, the server information and a preset routing strategy of the transaction data; the hit server is a server with the same keywords as the transaction data;
and step S104, performing hybrid cloud transaction routing processing according to the uniform resource positioning information of the hit server.
Wherein, the server information further includes: server IP address, server port information and server keyword information; the server keyword information includes: a partner organization number, a transaction code, and uniform resource identification information.
Extracting the keyword information in the transaction data comprises:
extracting keywords from an HTTP HEAD header of transaction data; the keyword information includes: the system comprises a cooperation organization number, a transaction number, uniform resource identification information and an extension reservation bit.
Meanwhile, the present invention also provides a hybrid cloud transaction route processing apparatus, as shown in fig. 2, the apparatus includes:
a data receiving module 201, configured to receive transaction data and server information of each server in the hybrid cloud; wherein the server information includes: unifying resource positioning information;
a keyword extraction module 202, configured to extract keyword information in the transaction data;
the routing strategy processing module 203 is used for determining a hit server according to the keyword information, the server information and a preset routing strategy of the transaction data; the hit server is a server with the same keywords as the transaction data;
and the hybrid cloud transaction processing module 204 is configured to perform hybrid cloud transaction routing processing according to the uniform resource positioning information of the hit server.
The invention provides a hybrid cloud transaction routing processing method and device, an application system is simultaneously deployed on a traditional architecture and a PaaS architecture, and the contradiction between the stability and the quick expandability of a financial system can be solved while flexible adjustment of flow ratio is supported. The problem that load proportion needs to be adjusted manually in the prior art is solved, the complexity of operation and maintenance operation is reduced, and equipment expenditure is greatly reduced through a hybrid cloud architecture.
The technical solution of the present invention will be described in further detail with reference to specific embodiments.
In the embodiment, the problem of heterogeneous problem of a hybrid cloud and the problem of flexible adjustment of flow ratio are solved through a Soft Load Balancing (SLB) module, a service registration module supports dynamic change and automatic adjustment of bearing capacity caused by start-stop operation of a Server, rapid offline and switchback under the condition that PaaS or a traditional architecture is wholly unavailable are realized, operation of manually adjusting Load ratio is avoided, complexity of operation and maintenance is reduced, equipment expenditure is greatly reduced through the hybrid cloud architecture, and the contradiction between stability and rapid expandability of a financial system is solved.
As shown in fig. 3, the hybrid cloud transaction route processing apparatus disclosed in the present embodiment includes: the system comprises a Soft Load (SLB) module 1, a service registration module 2 in a traditional cluster, an application 3 in the traditional cluster, a service registration module 2 in PaaS and an application 3 in the PaaS, wherein the modules and the applications cooperate with each other to jointly realize hybrid cloud transaction routing and load. Wherein:
the Soft Load (SLB) module 1 is used to implement traffic load balancing in a software manner, and to customize routing and load based on the implementation service layer of HTTP HEAD information. The core of the method is a routing strategy, rules are customized according to actual requirements such as transaction scale, importance level of a partner and the like, and keywords required by the rules of the routing strategy exist in HTTP HEAD.
In this embodiment, the service registration module 2 in the conventional cluster and the PaaS is configured to report unified external service address information and the like to the soft load 1 in an HTTP format, and the consistent HTTP request address information is seen from the perspective of the soft load 1, so that a difference in deployment between the conventional architecture and the PaaS architecture of the application 3 is solved, and a relationship between a deployment location and the application is shielded. The service registration module 2 in this embodiment may be embedded in a start-stop operation of an application, and is intended to register, after a start of an application 3 is completed, IP, port, and context information that may be provided to the outside in a memory database where the soft load module 1 is located, to indicate that the service is successfully started and may provide the service to the outside or indicate that the service is successfully shut down, and delete the service information from the memory database of the module where the soft load is located.
The application 3 is used for realizing the HTTP heartbeat monitoring function according to the soft load standard (HTTP protocol) in addition to business logics such as third-party payment and water, electricity and coal payment, and the like, so as to actually measure the availability of application services.
The traditional cluster of the hybrid cloud in the structure diagram of the hybrid cloud transaction routing processing apparatus shown in fig. 3 is that an operating system and specific middleware are installed on a PC SERVER without using a PaaS architecture, and the specific middleware is mainly middleware for providing WEB services, such as websphere, weblogic, jboss, and the like, and provides a WEB container service for the application 3 of the hybrid cloud.
The PaaS architecture of the hybrid cloud is a technical architecture for realizing PC SERVER resource sharing and rapid capacity expansion and reduction operations based on a certain virtual technology, and a scheme of combining lightweight docker, tomcat and liberty can be adopted.
As shown in fig. 4, the Soft Load (SLB) module 1 includes: an HTTP HEAD keyword extraction unit 11, an HTTP HEAD keyword calculation unit 12, a load policy unit 13, and a heartbeat monitoring unit 14.
It should be noted that, in a large-scale distributed environment, enterprises including banks and numerous cooperating organizations may have high-frequency data interaction for completing business processing such as authentication and payment. In the system deployment process, different server clusters can be adopted to process data submitted by different cooperation mechanisms, even for cooperation mechanisms with huge performance capacity requirements, the server clusters can be further divided according to transaction codes (equal to a certain type of service), and then the number of the cooperation mechanism and the transaction codes can be used as keywords in the routing of a target server cluster.
According to the embodiment of the invention, the keywords can be corono, trxCode, URI, reservedField; wherein, the coroPOD represents a cooperative organization number, the trxCode represents a transaction number, and the URI represents a uniform resource location and mainly extracts http:// ip: port/URI which is used for matching a cluster service address registered in a soft load, so as to divide a cluster according to the coroPOD, realize the division of service in the cluster according to the trxCode, and further distinguish partial service priority according to the URI; the reservedField represents an extended reserved bit, which provides an extended possibility for using the application a in the present embodiment, and has flexibility. As can be appreciated. The above-mentioned keyword only refers to a name adopted in the embodiment of the present invention, but the present invention is also applicable to other scenarios that require intercepting a specified keyword in a communication context as a routing condition, and is not specifically limited herein. Wherein:
the HTTP HEAD keyword extracting unit 11 is configured to extract HTTP HEAD keywords such as coopn, trxCode, URI, and reservedField, and to implement the scheme of the present invention, the extracted keywords include the keywords but are not limited to the keywords, and the extracted result is transmitted to the HTTP HEAD keyword calculating unit 12.
The HTTP HEAD keyword calculation unit 12 is configured to perform matching from high to low according to a routing policy configured in the Soft Load (SLB) module 1 and according to a weight relationship of four elements, such as URI > cooper no > trxCode > reserved field, according to the weight relationship.
The load policy unit 13 is configured to select a certain server currently in an available state in the target service cluster according to the target service cluster associated with the URI and the minimum connection priority policy, forward the request to the server by the load policy unit 13, and synchronously wait for a response of the target server; and triggering to recalculate the number of the connections held by each server according to the response result.
As shown in fig. 5, the heartbeat monitoring unit 14 of the soft load module 1 includes: a heartbeat monitoring management unit 141, a heartbeat message sending/receiving unit 142 and an application service state updating unit 143. Wherein:
the heartbeat monitoring management unit 141 is configured to manage scheduling of the detection packet, including a time interval, a failure detection frequency, and the like.
The heartbeat message sending/receiving unit 142 is configured to send a probe message to the server where the application a is located, synchronize and wait until the server responds, and if the response result is 200/OK, the service is considered to be available.
The application service state updating unit 143 is configured to update the state of the corresponding server according to the detection result of the heartbeat packet sending/receiving unit 142, and if the response is 200/OK, update the state of the server to be available; otherwise, the unavailable state is included.
As shown in fig. 6, the specific selection policy provided in the embodiment of the present invention selects an optimal transaction routing policy according to the routing policy selection method shown in fig. 6, so as to determine the target service cluster.
Fig. 6 is a flow chart illustrating a routing policy selection method according to an embodiment of the present disclosure. The input for realizing the process comprises two parts, wherein the first part is a routing strategy file customized according to requirements and is used for defining the relation between keywords and a target URL; the second part is a keyword output by the HTTP HEAD keyword extraction unit 11. The process may comprise the steps of:
step S500: initially, a key for loading the routing policy file and the output of the HTTP HEAD key extraction unit 11.
Step S501: judging whether the URI is hit, assigning a PATH part in the URI of the keyword output by the HTTP HEAD keyword extraction unit 11 to a temporary variable var as a left value, and assigning a right value as a judgment branch of the URI in the routing policy file, and if the URI is hit, switching to a branch S502; if not, the process proceeds to step S503.
Step S502: the URI address hit by the URI is returned, and the route determination is ended based on the URL output in step S501.
Step S503: judging whether a mechanism number (cooper No) is hit, assigning a keyword cooper No output by the HTTP HEAD keyword extraction unit 11 to a temporary variable var as a left value, wherein the right value is a judgment branch of the cooper No in the routing strategy file, and if the mechanism number (cooper No) is hit, switching to the step S104; if not, the process proceeds to step S106.
Step S504: judging whether a transaction code (trxCode) is hit, assigning a keyword-trxCode output by the HTTP HEAD keyword extraction module 11 to a temporary variable var as a left value, wherein a right value is a judgment branch of the trxCode in the routing policy file, and if the transaction code (trxCode) is hit, turning to the step S105; if not, the process proceeds to step S106.
Step S505: judging whether an extended rule (reservedField) is hit, assigning a keyword-reservedField output by the HTTP HEAD keyword extraction module 11 to a temporary variable var as a left value, wherein the right value is a judgment branch of the reservedField in the routing policy file, and if yes, turning to the step S507; if not, the process proceeds to step S506.
Step S506: judging whether a default cluster exists in the routing policy file, if so, extracting a URL (uniform resource locator) under the default cluster and transferring to S108; otherwise, the process proceeds to S509.
Step S507: returning the URI address hit by the rule, and ending the route determination based on the URL output in step S105.
Step S508: returning the URI address hit by the rule, and ending the route judgment according to the URL output in step S106.
Step S509: and outputting 'cluster does not exist' and ending the route judgment.
In the embodiment of the invention, based on the consideration of flexible and friendly service, the situation that the target service cluster can not be hit may occur, if the result that the target service cluster can not be hit occurs, a policy of configuring a default service cluster or directly rejecting can be adopted according to the actual business requirement, for example, the distribution relation between the payment transaction and the personal agreement in the third party payment is adopted, a simple policy is that the payment is consistent with the routing rule of the personal agreement, on the premise that if the cluster carried by the agreement can not be hit correctly during the payment, the policy of configuring the cluster which can not be hit is as follows: directly refusing. The four elements mentioned above only refer to names and comparison weights used in the embodiments of the present invention, but the present invention is also applicable to other scenarios in which specified keywords and weights of each keyword in a communication context need to be intercepted as routing conditions, and is not specifically limited herein.
As shown in fig. 7, the service registration module 2 includes: an application service start/stop unit 21, and an application service state registration/deregistration unit 22. According to the embodiment of the invention, the service registration module 2 is a bridge between the Soft Load (SLB) bearing module 1 and the application 3, and the decoupling of the application deployment environment and the application itself is realized by introducing the service registration module 2. Wherein:
an application service start/stop unit 21, configured to package a start script for a container carrying an external service of the application a, where the start script includes resources required for loading the external service of the application a, such as a database connection pool, collaboration information, and specific service parameters such as current limiting information; meanwhile, the system also comprises a heartbeat monitoring and monitoring service starting and application service state registration/logout unit 22.
An application service state registration/deregistration unit 22 for performing corresponding operations according to the start result of the application service start/stop unit 21. If the starting is successful, the local IP, the configured port and the URI are obtained and pushed to the Soft Load (SLB) module 1, and the Soft Load (SLB) module 1 is informed that the server is ready and can serve for the outside.
The application service stopping process is just opposite, and the difference is that the Soft Load (SLB) module 1 is notified to log off the server, and then the application server is stopped, and resources are released.
As shown in fig. 8, the heartbeat monitoring structure implemented by application 3 includes: a heartbeat monitoring message analyzing unit 31 and an application state assembling unit 32; the application 3 realizes the association with the Soft Load (SLB) module 1 by exposing IP, PORT and context to the service registration module 2 of the hybrid cloud, thereby becoming a service entity. Wherein:
and the heartbeat monitoring message analyzing unit 31 is configured to analyze the HTTP message according to a heartbeat message format agreed by the Soft Load (SLB) module 1, acquire a timestamp, and record the timestamp in a detection log file for later troubleshooting.
And the application state assembling unit 32 is configured to initiate a simulation query message immediately after the heartbeat monitoring message analyzing unit 31 to query whether the full link of the transaction detection application a is really available, and return a query result to the Soft Load (SLB) module 1 according to a convention.
Fig. 9 illustrates a flow chart of a load adjustment processing method according to an embodiment of the present disclosure. As shown in fig. 9, the load adjustment processing method may include steps S900 to S906. The method comprises the following steps:
step S900: the change registration information is read from the cache.
According to the embodiment of the disclosure, since the change of the server information triggers the linkage adjustment of the cache information, the step reads the newly added or deleted change information of the server, and the information includes: IP, PORT, URI, etc.
Step S901: and judging whether to add the IP. Determining whether the service is a new service according to the IP, PORT and URI read in the step S900, and if so, turning to a step S902; otherwise, the process proceeds to step S906.
Step S902: and initiating heartbeat detection. And assembling a heartbeat message according to the information such as the IP, the PORT, the URI and the like read in the step S900, exchanging information with the server pointed by the HTTP:// IP: PORT/URI, and outputting a return result of the target server.
Step S903: and detecting whether the heartbeat detection is successful. Outputting a result according to the step S902, and if the result shows success, turning to the step S905; otherwise, the process proceeds to step S904.
Step S904: the wait time is calculated by the number of failures. According to the failure information fed back in step S902, HTTP:// IP: PORT/URI information, the failure times are accumulated, the waiting time and the next detection time are calculated, and the process proceeds to step S902.
In step S905: load grouping is included per cluster flag. The server is included in the list of available servers according to the IP, PORT, URI output in step S900, thereby increasing the load, with reference to fig. 10.
Fig. 10 is a diagram illustrating an effect of load adjustment of a new server according to an embodiment of the present invention. As shown in fig. 10, the transition process and effect of the newly added service are demonstrated, which are specifically described as follows: 1) the newly added server 1001 registers service information to the distributed storage through a service registration module in the starting process; 2) soft load of the broadcast change server information is stored in a distributed mode; 3) the soft load refreshes the locally available server information, thereby bringing the newly added server 1001 into serviceable range.
In step S906: the server is removed from the cluster. The server is removed from the list of available servers according to the IP, PORT, URI output in step S900, thereby reducing the load, with the effect as shown in fig. 11.
Fig. 11 is a diagram illustrating an effect of load adjustment of a pruning server according to an embodiment of the present invention. As shown in fig. 11, the transition process and effect of the shutdown service are demonstrated, which are specifically described as follows: 1) the offline server 1101 registers logout information with the distributed storage through the service registration module in the shutdown process; 2) soft load of distributed storage broadcast change server information; 3) the soft load refreshes the locally available server information, kicking the offline server 1101 out of service.
The embodiment of the invention also provides electronic equipment which can be a desktop computer, a tablet computer, a mobile terminal and the like, and the embodiment is not limited thereto. In this embodiment, the implementation method of the electronic device may refer to a method, and the contents thereof are incorporated herein, and repeated descriptions are omitted.
Fig. 12 is a schematic block diagram of a system configuration of an electronic apparatus 400 according to an embodiment of the present invention. As shown in fig. 12, the electronic device 400 may include a processor 401 and a memory 402; the memory 402 is coupled to the processor 401 by a bus 403. Notably, this diagram is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In an embodiment, hybrid cloud transaction routing processing functionality may be integrated into the processor 401. The central processor 401 may be configured to perform the following control: receiving transaction data and server information of each server in the hybrid cloud; wherein the server information includes: unifying resource positioning information; extracting keyword information in the transaction data; determining a hit server according to the keyword information, the server information and a preset routing strategy of the transaction data; wherein the hit server is a server having the same keyword as the transaction data; and carrying out hybrid cloud transaction routing processing according to the uniform resource positioning information of the hit server.
The invention provides a hybrid cloud transaction routing device and a method, which solve the heterogeneous problem and the load problem of the traditional architecture and the PaaS architecture through a soft load module; the problem of dynamic change and automatic adjustment of the bearing capacity caused by the start-stop operation of the server is solved through the service registration module, and the problems of quick offline and back-cut under the condition that the PaaS or the traditional architecture is not available as a whole are solved. Meanwhile, production, operation and maintenance practices of important applications such as agent third-party quick payment are combined, the problem that load proportion needs to be adjusted manually in the prior art is solved, the complexity of operation and maintenance operation is reduced, and equipment expenses are greatly reduced through a hybrid cloud architecture.
Embodiments of the present invention also provide a computer-readable program, where when the program is executed in an electronic device, the program causes a computer to execute the hybrid cloud transaction routing process described above in the electronic device.
Embodiments of the present invention also provide a storage medium storing a computer-readable program, where the computer-readable program enables a computer to execute the hybrid cloud transaction routing processing described in the above embodiments in an electronic device.
The preferred embodiments of the present invention have been described above with reference to the accompanying drawings. The many features and advantages of the embodiments are apparent from the detailed specification, and thus, it is intended by the appended claims to cover all such features and advantages of the embodiments that fall within the true spirit and scope thereof. Further, since numerous modifications and changes will readily occur to those skilled in the art, it is not desired to limit the embodiments of the invention to the exact construction and operation illustrated and described, and accordingly, all suitable modifications and equivalents may be resorted to, falling within the scope thereof.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (14)

1. A hybrid cloud transaction routing processing method is characterized by comprising the following steps:
receiving transaction data and server information of each server in the hybrid cloud reported in an HTTP (hyper text transport protocol) form by using a soft load module; wherein the server information includes: unifying resource positioning information;
the soft load module extracts keyword information in the transaction data from an HTTP HEAD header of the transaction data; the keyword information of the transaction data comprises: the system comprises a cooperation organization number, a transaction number, uniform resource identification information and an expansion reserved bit;
the soft load module determines a hit server according to the keyword information, the server information and a preset routing strategy of the transaction data; wherein the hit server is a server having the same keyword as the transaction data;
and performing hybrid cloud transaction routing processing according to the uniform resource positioning information of the hit server, wherein the service registration module accepts the soft load module and the application, and the soft load module and the application perform information interaction through transfer of the service registration module.
2. The hybrid cloud transaction routing processing method of claim 1, wherein the server information further comprises: server IP address, server port information and server keyword information; the server keyword information includes: a partner organization number, a transaction code, and uniform resource identification information.
3. The hybrid cloud transaction routing processing method of claim 1, wherein the determining a hit server according to the keyword information of the transaction data and a preset routing policy comprises:
determining a preset routing strategy according to a preset cooperation mechanism number, a transaction number, uniform resource identification information and a priority sequence of an extended reserved bit;
and determining the server with the same key word as the transaction data as a hit server according to the priority sequence.
4. The hybrid cloud transaction routing processing method of claim 1, wherein the performing hybrid cloud transaction routing processing according to the uniform resource locator information of the hit server comprises:
accessing the hit server into the hybrid cloud according to the uniform resource positioning information of the hit server;
and selecting an available server according to a preset optimal connection strategy to perform hybrid cloud routing processing.
5. The hybrid cloud transaction routing processing method of claim 4, wherein the performing hybrid cloud transaction routing processing according to the uniform resource locator information of the hit server further comprises:
sending the detection message to an available server to perform heartbeat detection of the server;
and updating the server state according to the heartbeat detection result.
6. The hybrid cloud transaction routing processing method of claim 1, wherein the method further comprises:
receiving server change request information; the server change request information includes: server IP address, server port information and uniform resource identification information;
determining whether the received server IP address is a newly-added IP address according to the server information of each server in the hybrid cloud;
determining the server as a newly added IP address, and incorporating the server into a load group according to the server request information; determining that the server is not a newly added IP address, and removing the server from the payload packet.
7. A hybrid cloud transaction route processing apparatus, the apparatus comprising: the system comprises a soft load module and a service registration module, wherein the service registration module is used for receiving the soft load module and an application, and the soft load module and the application perform information interaction through transfer of the service registration module; wherein, the soft load module:
the data receiving module is used for receiving the transaction data and the server information of each server in the hybrid cloud reported in the HTTP mode; wherein the server information includes: unifying resource positioning information;
the keyword extraction module is used for extracting keyword information in the transaction data; wherein the content of the first and second substances,
the extracting of the keyword information in the transaction data comprises:
extracting keyword information from an HTTP HEAD header of the transaction data; the keyword information of the transaction data comprises: the system comprises a cooperation organization number, a transaction number, uniform resource identification information and an expansion reserved bit;
the routing strategy processing module is used for determining a hit server according to the keyword information, the server information and a preset routing strategy of the transaction data; wherein the hit server is a server having the same keyword as the transaction data;
and the hybrid cloud transaction processing module is used for performing hybrid cloud transaction routing processing according to the uniform resource positioning information of the hit server.
8. The hybrid cloud transaction routing processing apparatus of claim 7, wherein said server information further comprises: server IP address, server port information and server keyword information; the server keyword information includes: a partner organization number, a transaction code, and uniform resource identification information.
9. The hybrid cloud transaction routing processing device of claim 7, wherein the routing policy processing module comprises:
the routing strategy determining unit is used for determining a preset routing strategy according to the preset cooperation mechanism number, the transaction number, the uniform resource identification information and the priority sequence of the expansion reserved bit;
and the strategy execution unit is used for determining the server with the same key word as the transaction data as a hit server according to the priority sequence.
10. The hybrid cloud transaction routing processing apparatus of claim 7, wherein the hybrid cloud transaction processing module comprises:
the server access unit is used for accessing the hit server into the hybrid cloud according to the uniform resource positioning information of the hit server;
and the cloud route processing unit is used for selecting the available servers according to a preset optimal connection strategy to perform hybrid cloud route processing.
11. The hybrid cloud transaction routing processing apparatus of claim 7, wherein the hybrid cloud transaction processing module further comprises:
the heartbeat detection unit is used for sending the detection message to the available server to carry out heartbeat detection of the server;
and the state updating unit is used for updating the server state according to the heartbeat detection result.
12. The hybrid cloud transaction routing processing apparatus of claim 7, wherein said apparatus further comprises:
the data receiving module is also used for receiving server change request information; the server change request information includes: server IP address, server port information and uniform resource identification information;
the IP address judging module is used for determining whether the received IP address of the server is a newly-added IP address according to the server information of each server in the hybrid cloud;
a server state updating unit for determining the newly added IP address and incorporating the server into the load group according to the server request information; determining that the server is not a newly added IP address, and removing the server from the payload packet.
13. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 6 when executing the computer program.
14. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 6.
CN201910614682.8A 2019-07-09 2019-07-09 Hybrid cloud transaction route processing method and device Active CN110324425B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910614682.8A CN110324425B (en) 2019-07-09 2019-07-09 Hybrid cloud transaction route processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910614682.8A CN110324425B (en) 2019-07-09 2019-07-09 Hybrid cloud transaction route processing method and device

Publications (2)

Publication Number Publication Date
CN110324425A CN110324425A (en) 2019-10-11
CN110324425B true CN110324425B (en) 2022-03-11

Family

ID=68121596

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910614682.8A Active CN110324425B (en) 2019-07-09 2019-07-09 Hybrid cloud transaction route processing method and device

Country Status (1)

Country Link
CN (1) CN110324425B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115080573B (en) * 2022-08-19 2022-11-01 深圳星云智联科技有限公司 Data processing method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660366A (en) * 2019-02-28 2019-04-19 携程旅游信息技术(上海)有限公司 Mixed cloud charging method and system

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102637287A (en) * 2012-03-18 2012-08-15 江苏新彩软件有限公司 Dynamic load balancing method for high-capacity concurrent transactions of users of Internet lottery
US9923808B2 (en) * 2012-10-09 2018-03-20 Netscout Systems, Inc. System and method for real-time load balancing of network packets
CN105204947A (en) * 2015-10-15 2015-12-30 云南大学 Hybrid cloud computing resource management system based on commercial bank model
CN106097061A (en) * 2016-06-08 2016-11-09 杭州洋驼网络科技有限公司 A kind of online transaction system based on cloud service
CN106446268A (en) * 2016-10-19 2017-02-22 中国工商银行股份有限公司 Database lateral extension system and method
CN106549878B (en) * 2016-10-26 2020-07-07 中国银联股份有限公司 Service distribution method and device
US10652320B2 (en) * 2017-02-21 2020-05-12 Microsoft Technology Licensing, Llc Load balancing in distributed computing systems
CN107682265B (en) * 2017-09-07 2021-04-20 银清科技有限公司 Message routing method and device of payment system
CN107766175B (en) * 2017-09-07 2020-10-23 中国光大银行股份有限公司信用卡中心 Data processing system for bank

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660366A (en) * 2019-02-28 2019-04-19 携程旅游信息技术(上海)有限公司 Mixed cloud charging method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"混合云"构建智慧银河新生态;王小虎;《金融电子化》;20180815;全文 *
The load balancing improvement of a data center by a hybrid algorithm in cloud computing;Youssef Fahim;《IEEE》;20141022;全文 *

Also Published As

Publication number Publication date
CN110324425A (en) 2019-10-11

Similar Documents

Publication Publication Date Title
CN113254466B (en) Data processing method and device, electronic equipment and storage medium
CN110191164A (en) Distributed Services access system and method
US9774582B2 (en) Private cloud connected device cluster architecture
KR20160147909A (en) System and method for supporting common transaction identifier (xid) optimization and transaction affinity based on resource manager (rm) instance awareness in a transactional environment
CN103580937A (en) Web service simulating method and system and service agent system thereof
TW201724001A (en) System and method for acquiring, processing and updating global information
CN109618003B (en) Server planning method, server and storage medium
CN114172966B (en) Service calling method, service processing method and device under unitized architecture
CN111064626A (en) Configuration updating method, device, server and readable storage medium
CN114358921A (en) System switching method, apparatus, device, medium, and program product
CN110324425B (en) Hybrid cloud transaction route processing method and device
CN116204239A (en) Service processing method, device and computer readable storage medium
US20230283695A1 (en) Communication Protocol for Knative Eventing's Kafka components
CN112187916B (en) Cross-system data synchronization method and device
CN116260878A (en) Service center system based on global service structure server of distributed computing and storage
CN112702441B (en) Container-based access data processing method, device, system and storage medium
CN115238006A (en) Retrieval data synchronization method, device, equipment and computer storage medium
US11277300B2 (en) Method and apparatus for outputting information
CN112988738B (en) Data slicing method and device for block chain
CN115373831A (en) Data processing method, device and computer readable storage medium
CN113296968A (en) Address list updating method, device, medium and electronic equipment
CN110336847B (en) Payment message transmission system and method
CN113271229B (en) Equipment control method and device, storage equipment, safety equipment, switch, router and server
CN111866171B (en) Message processing method, device, electronic equipment and medium
US11799982B2 (en) Message push method, apparatus, device and 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