[go: up one dir, main page]

CN104468747A - High-performance deployment method based on B/S - Google Patents

High-performance deployment method based on B/S Download PDF

Info

Publication number
CN104468747A
CN104468747A CN201410681609.XA CN201410681609A CN104468747A CN 104468747 A CN104468747 A CN 104468747A CN 201410681609 A CN201410681609 A CN 201410681609A CN 104468747 A CN104468747 A CN 104468747A
Authority
CN
China
Prior art keywords
server
cluster
database
data
application
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
CN201410681609.XA
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.)
G Cloud Technology Co Ltd
Original Assignee
G Cloud 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 G Cloud Technology Co Ltd filed Critical G Cloud Technology Co Ltd
Priority to CN201410681609.XA priority Critical patent/CN104468747A/en
Publication of CN104468747A publication Critical patent/CN104468747A/en
Pending legal-status Critical Current

Links

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
    • H04L67/1004Server selection for load balancing
    • H04L67/1012Server selection for load balancing based on compliance of requirements or conditions with available server resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明涉及计算机软件开发部署技术领域,具体涉及一种基于B/S的高性能部署方法。首先部署一个数据库集群,集群间可以通过触发器互相修改相对应的数据;每一个数据库对应一个应用服务器,并只为一个应用服务器服务;多个应用服务器建立一个群集,统一由最前端的调度服务器调试;调度服务器根据集群中服务器的状态,将请求发送至较空闲的服务器进行响应,达到负载均衡的效果;数据间使用效率较高的触发器互相访问,保证整个平台的数据一致性。本发明满足了平台高并发的需求,可以用于应用部署。

The present invention relates to the technical field of computer software development and deployment, and in particular to a high-performance deployment method based on B/S. First, a database cluster is deployed, and the corresponding data between clusters can be modified by triggers; each database corresponds to an application server and only serves one application server; multiple application servers establish a cluster, which is uniformly debugged by the front-end scheduling server; the scheduling server sends the request to the relatively idle server for response according to the status of the server in the cluster, so as to achieve the effect of load balancing; the data access each other using triggers with higher efficiency to ensure the data consistency of the entire platform. The present invention meets the high concurrency requirements of the platform and can be used for application deployment.

Description

一种基于B/S的高性能部署方法A high-performance deployment method based on B/S

技术领域technical field

本发明涉及计算机软件开发部署技术领域,具体涉及一种基于B/S的高性能部署方法。The invention relates to the technical field of computer software development and deployment, in particular to a B/S-based high-performance deployment method.

背景技术Background technique

目前在应用部署方面,很多情况都是使用一台应用服务器加一台数据库服务器完成;而在一些好的部署方案中,会搭建应用服务集群,但在数据库部署方面,为了使数据一致与有效,通过只部署一个数据库服务器。相当于一台数据库服务器为多台应用服务器服务。因此,在高并发的情况下,数据库的瓶颈就非常明显,应用服务器性性能提高了,但整体性能却非常差,甚至会出现数据库服务器宕机的情况。At present, in terms of application deployment, many cases are completed by using an application server plus a database server; and in some good deployment solutions, application service clusters will be built, but in terms of database deployment, in order to make data consistent and effective, By deploying only one database server. It is equivalent to one database server serving multiple application servers. Therefore, in the case of high concurrency, the bottleneck of the database is very obvious. The performance of the application server is improved, but the overall performance is very poor, and even the database server may go down.

发明内容Contents of the invention

本发明解决的技术问题在于提供一种基于B/S的高性能部署方法,以满足平台高并发的需求。The technical problem solved by the present invention is to provide a B/S-based high-performance deployment method to meet the high concurrency requirements of the platform.

本发明解决上述技术问题的技术方案是:The technical scheme that the present invention solves the problems of the technologies described above is:

首先部署一个数据库集群,集群间可以通过触发器互相修改相对应的数据;每一个数据库对应一个应用服务器,并只为一个应用服务器服务;多个应用服务器建立一个群集,统一由最前端的调度服务器调试;调度服务器根据集群中服务器的状态,将请求发送至较空闲的服务器进行响应,达到负载均衡的效果;数据间使用效率较高的触发器互相访问,保证整个平台的数据一致性。First deploy a database cluster, and the clusters can modify the corresponding data through triggers; each database corresponds to an application server and serves only one application server; multiple application servers establish a cluster, and the front-end scheduling server is unified Debugging; the scheduling server sends requests to idle servers to respond according to the status of the servers in the cluster, achieving the effect of load balancing; the data uses highly efficient triggers to access each other to ensure the data consistency of the entire platform.

所述的方法包括如下具体步骤:Described method comprises following specific steps:

第1步、建立数据库集群,集群中的数据库可以通过触发器互相访问与修改数据;The first step is to establish a database cluster, and the databases in the cluster can access and modify data through triggers;

第2步、建立应用集群,集群间相互独立;同时一个应用服务器对应一个数据库服务器,避免数据库共用现象;The second step is to establish an application cluster, and the clusters are independent of each other; at the same time, one application server corresponds to one database server to avoid database sharing;

第3步、部署调度服务器,可将请求分发至群集中任何一台应用服务器中;Step 3: Deploy the scheduling server, which can distribute the request to any application server in the cluster;

第4步、用户通过浏览器访问调度服务器;Step 4, the user accesses the scheduling server through a browser;

第5步、调度服务器根据集群中各服务器的状态,将请求发送至某服务器A中进行响应;Step 5: The scheduling server sends the request to a certain server A for response according to the status of each server in the cluster;

第6步、服务器根据业务逻辑,访问相应的数据库;Step 6, the server accesses the corresponding database according to the business logic;

第7步、数据库判断是否为查询业务,如果是,则直接从服务器D中查询数据,并返回,并跳至第9步;否则流程跳至第8步;Step 7, the database judges whether it is a query service, if yes, directly query data from server D, return it, and skip to step 9; otherwise, the process skips to step 8;

第8步、数据库服务器A通过触发器修改集群中其它数据库服务器的数据;Step 8, database server A modifies the data of other database servers in the cluster through triggers;

第9步、结束。Step 9, end.

本发明的有益效果是:本方法通过部署数据库集群,并且集群间可通过触发器互相修改,同时每一个数据库只为一台应用服务器访问,解决在高并发下数据库瓶颈问题。同时在数据出现变化的情况下,数据库间通过触发器修改集群中其它数据库的数据,达到数据一致性的效果。在前端应用服务器,通过调度服务将请求转发较空闲的服务器,因此,该方法可以在保证数据有效性、一致性的前提下,提供高并发的应用部署方法。The beneficial effects of the invention are: the method solves the database bottleneck problem under high concurrency by deploying database clusters, and the clusters can modify each other through triggers, and at the same time, each database is only accessed by one application server. At the same time, when the data changes, the databases modify the data of other databases in the cluster through triggers to achieve the effect of data consistency. On the front-end application server, the request is forwarded to an idle server through the scheduling service. Therefore, this method can provide a highly concurrent application deployment method on the premise of ensuring data validity and consistency.

附图说明Description of drawings

下面结合附图对本发明进一步说明:Below in conjunction with accompanying drawing, the present invention is further described:

图1是本发明的流程图;Fig. 1 is a flow chart of the present invention;

图2是本发明具体部署案例流程图。Fig. 2 is a flowchart of a specific deployment case of the present invention.

具体实施方式Detailed ways

本发明系统通过建立数据库集群与数据修改机制,在达到数据有效性、一致性的前提下,提供高性能的并发服务。The system of the invention provides high-performance concurrent services on the premise of achieving data validity and consistency by establishing a database cluster and a data modification mechanism.

如图1所示,本发明基本流程图是:As shown in Figure 1, the basic flowchart of the present invention is:

第1步、建立数据库集群,集群中的数据库可以通过触发器互相访问与修改数据;The first step is to establish a database cluster, and the databases in the cluster can access and modify data through triggers;

第2步、建立应用集群,集群间相互独立;同时一个应用服务器对应一个数据库服务器,避免数据库共用现象;The second step is to establish an application cluster, and the clusters are independent of each other; at the same time, one application server corresponds to one database server to avoid database sharing;

第3步、部署调度服务器,可将请求分发至群集中任何一台应用服务器中;Step 3: Deploy the scheduling server, which can distribute the request to any application server in the cluster;

第4步、用户通过浏览器访问调度服务器;Step 4, the user accesses the scheduling server through a browser;

第5步、调度服务器根据集群中各服务器的状态,将请求发送至某服务器A中进行响应;Step 5: The scheduling server sends the request to a certain server A for response according to the status of each server in the cluster;

第6步、服务器根据业务逻辑,访问相应的数据库;Step 6, the server accesses the corresponding database according to the business logic;

第7步、数据库表,根据数据是否已修改,通过触发器修改集群中其它数据库服务器的数据;Step 7, the database table, according to whether the data has been modified, modify the data of other database servers in the cluster through the trigger;

第8步、服务器A将相应的响应返回给用户。Step 8. Server A returns the corresponding response to the user.

下面具体以教育云系统的文件上传为例,以两台数据库服务器与两台应用服务器为例,说明本发明的主要部署。Taking the file uploading of the education cloud system as an example, and two database servers and two application servers as examples, the main deployment of the present invention will be described below.

如附图2所示,是本发明的具体部署案例流程;包括如下步骤:As shown in Figure 2, it is a specific deployment case flow of the present invention; it includes the following steps:

第1步、部署数据库服务器DA与数据库服务器DB;Step 1, deploy database server DA and database server DB;

第2步、配置DA的文件表T1,在T1新增数据时,通过触发器将数据新增至DB的T1中;同时配置DB的表T1;Step 2. Configure the file table T1 of DA. When new data is added to T1, the data is added to T1 of DB through a trigger; at the same time, table T1 of DB is configured;

第3步、部署应用服务器WA与WB,同时WA与DA关联,WB与DB关联;Step 3. Deploy the application server WA and WB, and associate WA with DA, and associate WB with DB;

第4步、部署调度服务R;Step 4, deploy scheduling service R;

第5步、用户通过R,上传文件。Step 5, the user uploads the file through R.

第6步、R将用户请求,将发至当时较空闲的应用服务器WA中;Step 6, R sends the user request to the idle application server WA at that time;

第7步、WA判断是否为查询业务,如果是,则从DA查询返回并结束,否则流程跳到第8步Step 7, WA judges whether it is a query business, if yes, returns from DA query and ends, otherwise the process skips to step 8

第8步、WA将数据新增至DA的表T1中。Step 8, WA adds data to table T1 of DA.

第9步、DA的T1通过触发器,将数据写入DB的表T1中;Step 9: T1 of DA writes data into table T1 of DB through a trigger;

第10步、结束。Step 10, end.

Claims (2)

1.一种基于B/S的高性能部署方法,其特征在于:首先部署一个数据库集群,集群间可以通过触发器互相修改相对应的数据;每一个数据库对应一个应用服务器,并只为一个应用服务器服务;多个应用服务器建立一个群集,统一由最前端的调度服务器调试;调度服务器根据集群中服务器的状态,将请求发送至较空闲的服务器进行响应,达到负载均衡的效果;数据间使用效率较高的触发器互相访问,保证整个平台的数据一致性。1. A high-performance deployment method based on B/S, which is characterized in that: first deploy a database cluster, and the corresponding data can be modified each other through triggers between the clusters; each database corresponds to an application server, and only for one application Server service; multiple application servers establish a cluster, which is uniformly debugged by the front-end scheduling server; the scheduling server sends requests to idle servers to respond according to the status of the servers in the cluster, achieving the effect of load balancing; data usage efficiency Higher triggers access each other to ensure data consistency across the platform. 2.根据权利要求1所述的基于B/S的高性能部署方法,其特征在于:所述的方法包括如下具体步骤:2. The high-performance deployment method based on B/S according to claim 1, characterized in that: said method comprises the following specific steps: 第1步、建立数据库集群,集群中的数据库可以通过触发器互相访问与修改数据;The first step is to establish a database cluster, and the databases in the cluster can access and modify data through triggers; 第2步、建立应用集群,集群间相互独立;同时一个应用服务器对应一个数据库服务器,避免数据库共用现象;The second step is to establish an application cluster, and the clusters are independent of each other; at the same time, one application server corresponds to one database server to avoid database sharing; 第3步、部署调度服务器,可将请求分发至群集中任何一台应用服务器中;Step 3: Deploy the scheduling server, which can distribute the request to any application server in the cluster; 第4步、用户通过浏览器访问调度服务器;Step 4, the user accesses the scheduling server through a browser; 第5步、调度服务器根据集群中各服务器的状态,将请求发送至某服务器A中进行响应;Step 5: The scheduling server sends the request to a certain server A for response according to the status of each server in the cluster; 第6步、服务器根据业务逻辑,访问相应的数据库;Step 6, the server accesses the corresponding database according to the business logic; 第7步、数据库判断是否为查询业务,如果是,则直接从服务器D中查询数据,并返回,并跳至第9步;否则流程跳至第8步;Step 7, the database judges whether it is a query service, if yes, directly query data from server D, return it, and skip to step 9; otherwise, the process skips to step 8; 第8步、数据库服务器A通过触发器修改集群中其它数据库服务器的数据;Step 8, database server A modifies the data of other database servers in the cluster through triggers; 第9步、结束。Step 9, end.
CN201410681609.XA 2014-11-23 2014-11-23 High-performance deployment method based on B/S Pending CN104468747A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410681609.XA CN104468747A (en) 2014-11-23 2014-11-23 High-performance deployment method based on B/S

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410681609.XA CN104468747A (en) 2014-11-23 2014-11-23 High-performance deployment method based on B/S

Publications (1)

Publication Number Publication Date
CN104468747A true CN104468747A (en) 2015-03-25

Family

ID=52914099

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410681609.XA Pending CN104468747A (en) 2014-11-23 2014-11-23 High-performance deployment method based on B/S

Country Status (1)

Country Link
CN (1) CN104468747A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107750450A (en) * 2015-06-19 2018-03-02 诺基亚通信公司 Optimization business

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100057829A1 (en) * 2008-08-28 2010-03-04 Avg Technologies Cz, S.R.O. Cross site, cross domain session sharing without database replication
CN102142024A (en) * 2010-02-01 2011-08-03 微软公司 Logical data backup and rollback using incremental capture in a distributed database
CN102207937A (en) * 2010-03-29 2011-10-05 华为技术有限公司 Database access method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100057829A1 (en) * 2008-08-28 2010-03-04 Avg Technologies Cz, S.R.O. Cross site, cross domain session sharing without database replication
CN102142024A (en) * 2010-02-01 2011-08-03 微软公司 Logical data backup and rollback using incremental capture in a distributed database
CN102207937A (en) * 2010-03-29 2011-10-05 华为技术有限公司 Database access method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107750450A (en) * 2015-06-19 2018-03-02 诺基亚通信公司 Optimization business

Similar Documents

Publication Publication Date Title
CN107066319B (en) Multi-dimensional scheduling system for heterogeneous resources
US10445223B1 (en) Service virtualization platform
CN103425762A (en) Telecom operator mass data processing method based on Hadoop platform
CN103338135B (en) A kind of method for real-time monitoring of cluster storage capacity
CN105045607A (en) Method for achieving uniform interface of multiple big data calculation frames
CN103581332B (en) HDFS framework and pressure decomposition method for NameNodes in HDFS framework
CN103559306A (en) Query system and method for accessing data centers through cloud platform
CN104348913B (en) A kind of extendible big data interactive method of close coupling
CN101853274A (en) A Method for Realizing Interconnection of Heterogeneous Databases
CN102971698B (en) Snapshot data-processing method and system, storage system and snapshot agency
CN103002044B (en) A kind of method that improves multi-platform intelligent terminal disposal ability
CN107124469B (en) Cluster node communication method and system
CN104202383A (en) Centralized configuration distribution and management method in distributed cluster environment
CN106302640A (en) Data request processing method and device
CN106251071A (en) A kind of cloud workflow implementing method supporting multiple engine
CN107395731A (en) A kind of adjusting method and device of the container cluster based on service orchestration
CN116800616B (en) Management method and related device of virtualized network equipment
CN104462483A (en) Data synchronizing method, device and system
CN108037977B (en) Virtual computer resource management method, device, computer medium, and system
CN102355499A (en) Cloud computing system
CN105681426A (en) Heterogeneous system
CN104219226B (en) A kind of method of optimal communication agent node number in determination cloud platform
CN105550238A (en) Architecture system of database appliance
CN104765644A (en) Resource collaboration evolution system and method based on intelligent agent
US10452529B1 (en) Techniques and devices for cloud memory sizing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150325