CN112838964A - Bank-level soft load system and method - Google Patents

Bank-level soft load system and method Download PDF

Info

Publication number
CN112838964A
CN112838964A CN202110012276.1A CN202110012276A CN112838964A CN 112838964 A CN112838964 A CN 112838964A CN 202110012276 A CN202110012276 A CN 202110012276A CN 112838964 A CN112838964 A CN 112838964A
Authority
CN
China
Prior art keywords
bank
load
state detection
detection program
communication state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110012276.1A
Other languages
Chinese (zh)
Inventor
罗光圣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai international studies university
Original Assignee
Shanghai international studies university
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 Shanghai international studies university filed Critical Shanghai international studies university
Priority to CN202110012276.1A priority Critical patent/CN112838964A/en
Publication of CN112838964A publication Critical patent/CN112838964A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes
    • 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/02Banking, e.g. interest calculation or account maintenance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Environmental & Geological Engineering (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a bank-level soft load system and a method, comprising the following steps: the called API part: the communication routing information used for the communication initiator to obtain the activity by calling the function GetDtnAddr (); communication state detection program portion: and checking the health state of each piece of routing information in the background service application of the bank financial client and a communication server link, so that the routing link obtained each time by the API part called by the application is active. The method comprises the steps that (1) a background business system of a bank client side deploys multiple nodes, and node information deployed by background service in a configuration file is randomly selected; (2) when a large number of users access the client, the called API part acquires relevant information. Compared with the load balancing method of the distributed cluster of the bank financial business background service system, the load balancing method is cheap, convenient to deploy, low in cost and small in application transformation, and is deployed in an AP (access point) mode by using a shared memory technology.

Description

Bank-level soft load system and method
Technical Field
The invention relates to the technical field of application of software to algorithms, in particular to a bank-level soft load system and a bank-level soft load method.
Background
The existing load balancing technology comprises the following steps:
1. and link load balancing is realized by erecting two link load balancing devices outside an external firewall. The link load balancing equipment can automatically select and judge the best one of a plurality of access links, thereby accelerating the access speed of a user and the service response time, and shielding a series of problems caused by the fact that the north-south telecommunication mutual access, the network response speed is too slow and the bandwidth resources cannot be fully utilized; and once any one of the links has a problem, the other healthy link carries all network access, and when the link with the problem returns to normal, the network service automatically returns to the load balancing state, such as F5, SSL.
And 2, the Web server load balancing module selects the Web server with the best performance to respond to the request of the user according to the performance between the Web servers and the network health condition when the user initiates the request. All server resources can be fully utilized, all traffic can be distributed to each Web server in a balanced mode, and the phenomenon of imbalance can be effectively avoided, such as nignix.
3. The application server is load-balanced, stores application programs, is a center for business logic processing of the online banking system, and is easy to cause larger pressure. The system realizes the load balance of the application server through Web server software. Such as an EJB;
in the prior art, the cost of hardware F5 is high, and the development of small enterprises is not facilitated. The web server load balancing has low practicability and poor effect on a distributed cluster mode. The load balance of the application server is large in application transformation with banks, cross-process, shared memory needs to be pre-distributed, and management is not facilitated. The communication state of the application level can not be detected, the file record data is more, and the efficiency is low.
Disclosure of Invention
The present invention is directed to a bank-level soft load system and method, so as to solve the problems in the background art.
In order to achieve the purpose, the invention provides the following technical scheme: a bank-level soft load system and method, comprising:
the called API part: the communication routing information used for the communication initiator to obtain the activity by calling the function GetDtnAddr ();
communication state detection program portion: checking the health state of each piece of routing information in the background service application of the bank financial client and a communication server link, so that the routing link obtained by the called API part of the application is active each time;
the communication state detection program daemon: and carrying out timing check on the communication state detection program part, and restarting the communication state detection program part by the daemon process of the communication state detection program at the first time when the communication state detection program part is interrupted.
Preferably, the called API part specifically includes a weight value algorithm API code, reads and analyzes a node that can be used by the application in the shared area, selects one available node according to a load balancing policy and returns the node to the embedded application, and the embedded application accesses an interface or a service according to the returned node information.
Preferably, the load balancing policy is an averaging policy or a weighting policy.
Preferably, the weight policy sets a weight value for each server, where the weight value is an integer value from 1 to 65535, and the larger the weight value is, the more times the server is distributed is.
Preferably, the sharing strategy is to distribute the load to different servers uniformly.
Preferably, the daemon process of the communication state detection program specifically includes a scanning detection API code algorithm, and may periodically read and analyze the load balancing configuration file to obtain information of each node of the load, perform connectivity detection on each node according to the node information, write the node state into the shared area according to a detection result, and perform periodic connectivity detection according to a preset polling period.
Preferably, the period for periodically reading and analyzing the load balancing configuration file is set according to actual needs.
A bank-level soft load system and method, any one of the above mentioned bank-level soft load systems being used to implement the method, characterized by comprising the steps of:
(1) a background business system of a bank client deploys multiple nodes, and randomly selects node information deployed from background services in a configuration file;
(2) when a large number of users access the client, the called API part acquires relevant information;
(3) the background nodes automatically communicate through a memory sharing technology;
(4) when one node is interrupted, the communication state detection program part can automatically detect and automatically route the client access to the other node.
(5) And dynamically adjusting the balance strategy of the communication state detection program daemon.
Compared with the prior art, the invention has the beneficial effects that: the bank application level soft load can be realized by using an API mode, whether the bank application level deployment node is interrupted or not can be monitored, and the routing is automatic, so that the application downtime can be avoided.
The invention has the advantages of low price, convenient deployment, low cost and small application transformation for the load balance of the bank distributed cluster, and adopts the API mode for deployment and uses the shared memory technology.
Drawings
Fig. 1 is a general structural view of the present invention.
Fig. 2 is an overall framework and operational schematic 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.
Referring to fig. 1-2, the present invention provides a technical solution: a bank-level soft load system and method comprises a called API part, a communication state detection program part and a communication state detection program daemon part;
wherein the called API part is used for a communication initiator (Client) to acquire active communication routing information by calling a GetDtnAddr () function.
And the communication state detection program part is used for checking the health state of each piece of routing information in the application and a communication service end link in order to realize fault recovery, so that the routing link obtained by the API part called by the application each time is active.
The communication state detection program daemon is used for carrying out timing check on the communication state detection program part in order to prevent the abnormity or artificial interruption of the communication state detection program part, and when the communication state detection program part is interrupted, the communication state detection program daemon needs to restart the communication state detection program part at the first time so as to ensure that routing information obtained by the called API part is quasi-instant and correct.
B. And (3) weight strategy: each server sets a weight value which is an integer value from 1 to 65535, and the larger the weight value is, the more times are distributed;
C. the implementation method of the invention comprises the following steps:
C1. and realizing load balance of access among applications by adopting a software load balance technology based on a weight value algorithm. Load balancing access to the back-end node is realized by embedding a general API;
D. the invention comprises the following steps: the file technology is adopted, the file recording data is few, and the influence on the efficiency is negligible. The server end supports a heartbeat interface, the detection of the communication state can reach an application level, in addition, when the API is called by the client end, different communication modes and library functions and different operating systems are automatically distinguished, such as windows and linux, and the same source code can be compiled in a conditional compiling mode.
The bank-level API provided by the invention improves the low efficiency and time consumption, accelerates the rapid deployment and saves the hardware cost of load balancing.
A bank-level soft load system and method, any one of the above mentioned bank-level soft load systems being used to implement the method, characterized by comprising the steps of:
the method comprises the following steps that (1) a bank client background business system deploys multiple nodes, and node information deployed by background services in configuration files is randomly selected;
(2) when a large number of users access the client, the called API part acquires relevant information;
(3) the background nodes automatically communicate through a memory sharing technology;
(4) when one node is interrupted, the communication state detection program part can automatically detect and automatically route the client access to the other node.
(5) And dynamically adjusting the balance strategy of the communication state detection program daemon.
The API based on the weight value algorithm is finally packaged into a name of balance-1.0. jar, meanwhile, the API for detecting the scanning surface is packaged into a scan-1.0.0.jar, in order to ensure the operation and maintenance safety, the invention provides some auxiliary tool software to prevent the disastrous consequence caused by manually and directly changing the original information file, the auxiliary tool software for adding, deleting, modifying and checking the information of the load balancing configuration file can be realized by using SHELL if the configuration file does not use binary system or encryption processing, and the auxiliary tool software (optional) for modifying the link health state value (or deleting the file) of the communication state file can be used during the processing of abnormal or emergency;
if the client traffic needs to be temporarily closed, the tool can be used to change the state value in the communication route health state file to "N" after the state detection program is stopped, the application does not need to be stopped, and the system automatically resumes communication after the communication state detection program is restarted, and the like.
Figure BDA0002885318320000041
Figure BDA0002885318320000051
API installation for calculating weight values:
1. preparation work
balance-1.0.0.jar API for calculating weights
2. Function call
LoadBalancnglib. GetDtnAddr ("Path of configuration file", "group name of call")
Note that: the CtatInfoFile parameter contained in the configuration file corresponds to the address of the result file of the probe. If the environment variable "$ XXX" is used, please set the environment variable first (i.e., a cstats. info file will be generated after Scan is run)
Starting: sh/start
Stopping: sh/stop
API installation for detecting whether scanning cluster machine is available
1. Before installing Scan, please install the version above JDK 1.5.
2. And installing Scan.
Effect of Scan
Ip, port for probe access
4. Preparation for installation
scan-1.0.0.jar,start.sh,stop.sh,config.cfg
5. Description of installation parameters
scan-1.0.0.jar running program to detect if ip is available
sh starting procedure
sh stop procedure
cfg configuration file
6. Mounting step
1. The JDK installation is guaranteed to be successful and is a version above JDK 1.5.
2. After the installation catalog is established, the scale-1.0.0. jar, start.sh,
sh file is moved into the installation directory.
And (3) modifying the authority: the command chmod 755 is input.
Sh file, input command: sh of vi start
5. Start, input command: sh/start
7. Detecting is successful installation
Inputting a command: ps-ef | grep scan checks to see if any process exists
8. Stop running
Inputting a command: sh/stop
Note that: the CtatInfoFile parameter contained in the configuration file corresponds to the address of the result file of the probe. If the environment variable "$ XXX" is used, please set the environment variable in the Linux environment first.
The present invention has:
the software load application supports the software load of other protocols (such as HTTP/S, Tuxedo, Webservice, RMI and the like) based on a TCP/IP communication protocol.
The soft load API has certain universality, and the JAVA or C application which can provide source codes can call the soft load API (C and JAVA API) through micro code modification.
The reliability is that the soft load should provide a monitoring interface, and when a disaster occurs to the soft load, the soft load can be discovered by the monitoring application in time. Meanwhile, the embedded soft load API does not influence the running stability of the embedded application.
The API soft load application only probes the availability of IP and PORT, and does not probe specific services (such as specific URL service of HTTP, name service of Tuxedo, RMI remote method call service, etc.) enabled on IP and PORT.
Maintainability, the configuration of the load strategy is convenient for developers or operation and maintenance personnel to maintain, and the configuration can be completed only by a small amount of modification during change.
Stability, when the soft load can not provide service for various reasons, the operation of the embedded application is not influenced. Meanwhile, the soft load only provides available calling nodes, does not participate in business processing links such as communication establishment and message sending of the embedded application, and ensures stable operation of the embedded application.
The flexibility is that the policy configuration of the soft load can support a plurality of applications on one physical device, and subsequently can also support a plurality of applications on a plurality of physical devices.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (8)

1. A bank-level soft load system and method are characterized by comprising:
the called API part: the communication routing information used for the communication initiator to obtain the activity by calling the function GetDtnAddr ();
communication state detection program portion: checking the health state of each piece of routing information in the background service application of the bank financial client and a communication server link, so that the routing link obtained by the called API part of the application is active each time;
the communication state detection program daemon: and carrying out timing check on the communication state detection program part, and restarting the communication state detection program part by the daemon process of the communication state detection program at the first time when the communication state detection program part is interrupted.
2. The system and method for bank-level background application soft loading according to claim 1, wherein: the called API part specifically comprises a weighted value algorithm API code, reads and analyzes nodes which can be used by application in the shared area, selects one available node to return to any one background application system according to a banking background load balancing strategy, and the background application system accesses an interface or service according to returned node information, so that service interruption caused by large concurrent access of a client can be avoided.
3. The system and method of claim 2, wherein the soft loading system comprises: the load balancing strategy is an averaging strategy or a weighting strategy.
4. The system and method of claim 3, wherein the soft load system comprises: the weight policy sets a weight value for each server, the weight value is an integer value from 1 to 65535, and the larger the weight value is, the more times the weight value is distributed.
5. The system and method of claim 3, wherein the soft load system comprises: the load sharing strategy is to distribute the load to different servers uniformly.
6. The system and method of claim 1, wherein the system comprises: the communication state detection program daemon specifically comprises an API code algorithm for detecting whether the nodes deployed by the bank background business system interrupt, the API method can periodically read and analyze the load balancing configuration file to obtain the information of each node of the load, and connectivity detection is carried out on each node according to the node information. And writing the node state into the shared area according to the detection result. And carrying out periodic connectivity detection according to a preset polling period.
7. The system and method of claim 6, wherein the soft loading system comprises: the period for periodically reading and analyzing the load balancing configuration file is set according to actual needs.
8. A bank-level soft load system and method, the bank-level soft load system of any one of claims 1-7 being adapted to implement the method, characterized by the steps of:
(1) a background business system of a bank client deploys multiple nodes, and randomly selects node information deployed from background services in a configuration file;
(2) when a large number of users access the client, the called API part acquires relevant information;
(3) the background nodes automatically communicate through a memory sharing technology;
(4) when one node is interrupted, the communication state detection program part can automatically monitor and automatically route the client access to the other node;
(5) and dynamically adjusting the balance strategy of the communication state detection program daemon.
CN202110012276.1A 2021-01-06 2021-01-06 Bank-level soft load system and method Pending CN112838964A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110012276.1A CN112838964A (en) 2021-01-06 2021-01-06 Bank-level soft load system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110012276.1A CN112838964A (en) 2021-01-06 2021-01-06 Bank-level soft load system and method

Publications (1)

Publication Number Publication Date
CN112838964A true CN112838964A (en) 2021-05-25

Family

ID=75926182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110012276.1A Pending CN112838964A (en) 2021-01-06 2021-01-06 Bank-level soft load system and method

Country Status (1)

Country Link
CN (1) CN112838964A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114039981A (en) * 2021-11-11 2022-02-11 中国建设银行股份有限公司 Message processing method, device, server and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100318403A1 (en) * 2009-06-12 2010-12-16 Accenture Global Services Gmbh System and method for top-down performance optimization using elasticity modeling
CN104462546A (en) * 2014-12-22 2015-03-25 上海斐讯数据通信技术有限公司 Data access storage and interprocess data sharing system
CN106797405A (en) * 2016-12-14 2017-05-31 华为技术有限公司 Distributed load equalizing system, health examination method and service node
CN110187972A (en) * 2019-05-31 2019-08-30 上海银行股份有限公司 A kind of soft load balancing implementation based on API

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100318403A1 (en) * 2009-06-12 2010-12-16 Accenture Global Services Gmbh System and method for top-down performance optimization using elasticity modeling
CN104462546A (en) * 2014-12-22 2015-03-25 上海斐讯数据通信技术有限公司 Data access storage and interprocess data sharing system
CN106797405A (en) * 2016-12-14 2017-05-31 华为技术有限公司 Distributed load equalizing system, health examination method and service node
CN110187972A (en) * 2019-05-31 2019-08-30 上海银行股份有限公司 A kind of soft load balancing implementation based on API

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114039981A (en) * 2021-11-11 2022-02-11 中国建设银行股份有限公司 Message processing method, device, server and storage medium
CN114039981B (en) * 2021-11-11 2024-04-02 中国建设银行股份有限公司 Message processing method, device, server and storage medium

Similar Documents

Publication Publication Date Title
KR101470712B1 (en) Method and system for minimizing loss in a computer application
US7526685B2 (en) Application manager for monitoring and recovery of software based application processes
US7076801B2 (en) Intrusion tolerant server system
US20200162433A1 (en) Scalable proxy clusters
KR102050188B1 (en) Microservice system and method thereof
US9009683B2 (en) Systems and/or methods for testing client reactions to simulated disruptions
US6934880B2 (en) Functional fail-over apparatus and method of operation thereof
US10120779B1 (en) Debugging of hosted computer programs
CN111262839A (en) Vulnerability scanning method, management equipment, node and storage medium
CN115617610A (en) Kubernetes-based full-behavior monitoring method and system in bypass non-invasive application operation
JP6866927B2 (en) Cluster system, cluster system control method, server device, control method, and program
Maati et al. CIoTAS protocol: CloudIoT available services protocol through autonomic computing against distributed denial of services attacks
US11012523B2 (en) Dynamic circuit breaker applications using a proxying agent
CN112838964A (en) Bank-level soft load system and method
WO2024036043A1 (en) Method and apparatus for controlling electronic devices
US20210058407A1 (en) Suspending security violating-database client connections in a database protection system
US20230344520A1 (en) Intelligent Monitoring and Repair of Network Services Using Log Feeds Provided Over Li-Fi Networks
Jeong et al. Proactive live migration for virtual network functions using machine learning
CN114938396A (en) Routing method of service call request, method and device for creating service
CN112583951A (en) Application layer double-live method, device, equipment and storage medium
Min et al. An approach to intrusion tolerance for mission-critical services using adaptability and diverse replication
US20240095370A1 (en) Protecting software development environments from malicious actors
US11775401B1 (en) Intelligent coordination of log analysis and repair processes in a multi-cloud system
US20240056349A1 (en) Method and apparatus for controlling electronic devices
US20220318350A1 (en) Dynamic transaction-aware web application authentication using call intercepts

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210525