CN112883097B - Data processing method based on server, server cluster and service system - Google Patents

Data processing method based on server, server cluster and service system Download PDF

Info

Publication number
CN112883097B
CN112883097B CN202110268672.0A CN202110268672A CN112883097B CN 112883097 B CN112883097 B CN 112883097B CN 202110268672 A CN202110268672 A CN 202110268672A CN 112883097 B CN112883097 B CN 112883097B
Authority
CN
China
Prior art keywords
server
service
service request
cluster
preset
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
CN202110268672.0A
Other languages
Chinese (zh)
Other versions
CN112883097A (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.)
Beijing Grela Technology Co ltd
Original Assignee
Beijing Grela Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Grela Technology Co ltd filed Critical Beijing Grela Technology Co ltd
Priority to CN202110268672.0A priority Critical patent/CN112883097B/en
Publication of CN112883097A publication Critical patent/CN112883097A/en
Application granted granted Critical
Publication of CN112883097B publication Critical patent/CN112883097B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • 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/5061Partitioning or combining of resources
    • 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/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/541Client-server
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/549Remote execution
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a data processing method based on a server, a server cluster and a service system, wherein the method is applied to the server cluster and comprises the following steps: acquiring at least one service request distributed by a proxy server, wherein the service request is a request of at least one client for calling corresponding service data from the server cluster; according to the service request, corresponding configuration data are acquired from a first preset server different from the server cluster so as to perform first configuration operation, wherein the configuration data are used for determining response content corresponding to the service request; and calling service data corresponding to the service request from a preset database cluster based on the response content. The method can enable the server cluster to quickly and accurately feed corresponding service data back to the client even if facing a large number of service requests, and ensures the stability and continuity of self operation while realizing the function of service to the client.

Description

Data processing method based on server, server cluster and service system
Technical Field
The present invention relates to the field of data processing of servers, and in particular, to a data processing method based on a server, a server cluster and a service system.
Background
In the field of data processing of server clusters, it is often required that the server cluster responds to service requests sent by a large number of clients (clients) and provides efficient data services. But currently, a long-term stable service cannot be provided when a large number of service requests are made. For example, servers of a server cluster do not communicate data with each other, and it is difficult to coordinate service requests of a large number of users. In addition, some processing methods disperse a large number of service requests into a plurality of servers, but the design is complicated, the maintenance cost is high, and long-term stable service cannot be provided.
Disclosure of Invention
An object of the embodiments of the present application is to provide a server-based data processing method, a server cluster, and a service system, where the method can effectively cope with service requests sent by a large number of clients, and provide a long-term stable data service.
To achieve the object, an embodiment of the present application provides a server-based data processing method, which is applied to a server cluster, and the method includes:
acquiring at least one service request distributed by a proxy server, wherein the service request is a request of at least one client for calling corresponding service data from the server cluster;
according to the service request, corresponding configuration data are acquired from a first preset server different from the server cluster so as to perform first configuration operation, wherein the configuration data are used for determining response content corresponding to the service request;
and calling service data corresponding to the service request from a preset database cluster based on the response content.
Optionally, the obtaining at least one service request allocated by the proxy server includes:
and under the condition that the health state of the server cluster meets the preset health requirement, acquiring the service request distributed by the proxy server according to the weight of the service request, wherein the service request corresponds to at least one server in the server cluster.
Optionally, the method further comprises initiating a second configuration operation, including:
starting at least two groups of services in a server in the server cluster, wherein each group of services comprises a plurality of processes, and the processes comprise a plurality of processes and a single process;
the data port of the server is monitored by the multiple processes while the service request is processed by multiple threads in the single process.
Optionally, the method further comprises:
and when the content of the service data needs to be adjusted, alternately adjusting each group of service in the at least two groups of service to keep the server to provide uninterrupted service for the client.
Optionally, the obtaining corresponding configuration data from a first preset server different from the server cluster to perform a first configuration operation includes:
transmitting an acquisition request to the first preset server based on a first communication protocol so as to enable the first preset server to respond;
and receiving configuration data sent by the first preset server, and loading the configuration data into a memory, so that an application program associated with the service request can determine the response content by reading the configuration data from the memory.
Optionally, the preset database cluster includes a plurality of databases, the types of the databases are one or more, and the preset database cluster is constructed based on the types of the databases.
Optionally, the calling, based on the response content, the service data corresponding to the service request from a preset database cluster includes:
the database is connected through a database connection pool;
and executing access operation for accessing the database based on the type of the database so as to call the service data.
Optionally, the service request is specifically a service request distributed to the proxy server meeting the health condition through a second preset server and distributed by the proxy server.
The embodiment of the application also provides a server cluster, which comprises a memory and a processor, wherein the memory stores executable programs, and the processor executes the executable programs to realize the following steps:
acquiring at least one service request distributed by a proxy server, wherein the service request is a request of at least one client for calling corresponding service data from the server cluster;
according to the service request, corresponding configuration data are acquired from a first preset server different from the server cluster so as to perform first configuration operation, wherein the configuration data are used for determining response content corresponding to the service request;
and calling service data corresponding to the service request from a preset database cluster based on the response content.
The embodiment of the application also provides a service system, which comprises the server cluster, the proxy server, the preset database cluster, the first preset server and the second preset server.
The processing method in the implementation can closely match the server cluster with other related devices, so that corresponding service data can be quickly and accurately fed back to the client even if a large number of service requests are faced, the function of serving the client is realized, and meanwhile, the running stability and continuity of the client are ensured.
Drawings
FIG. 1 is a flow chart of a server-based data processing method according to an embodiment of the present application;
FIG. 2 is a flow chart of one embodiment of step S2 of FIG. 1 according to an embodiment of the present application;
FIG. 3 is a flow chart of one embodiment of step S3 of FIG. 1 according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a server cluster according to an embodiment of the present application;
fig. 5 is a schematic diagram of a connection relationship of a service system according to an embodiment of the present application.
Detailed Description
Various aspects and features of the present application are described herein with reference to the accompanying drawings.
It should be understood that various modifications may be made to the embodiments of the application herein. Therefore, the above description should not be taken as limiting, but merely as exemplification of the embodiments. Other modifications within the scope and spirit of this application will occur to those skilled in the art.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment, given as a non-limiting example, with reference to the accompanying drawings.
It is also to be understood that, although the present application has been described with reference to some specific examples, those skilled in the art can certainly realize many other equivalent forms of the present application.
The foregoing and other aspects, features, and advantages of the present application will become more apparent in light of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application will be described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application with unnecessary or excessive detail. Therefore, specific structural and functional details disclosed herein are not intended to be limiting, but merely serve as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the word "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments as per the application.
The data processing method based on the server is applied to a server cluster, the server cluster comprises one or more servers, the servers can provide data services for one or more clients (clients), for example, the clients log in the server cluster through application programs to request the server cluster to give services, the server cluster gives specific services according to service requests of the clients, and in the embodiment, the server cluster can finish the services to users under the cooperation of a proxy server, a first preset server and a preset database cluster and ensure the stability of data.
As shown in fig. 1 in combination with fig. 5, the method comprises the steps of:
s1, at least one service request distributed by a proxy server is obtained, wherein the service request is a request of at least one client for calling corresponding service data from the server cluster.
The client sends a service request to the server cluster, the service request can be sent to the proxy server before being sent to the server cluster, and the proxy server can not provide main service data, so that the client can realize simple installation and concise configuration files, and the Bug quantity in the client can be effectively controlled. For example, the proxy server may employ an nmginx cluster, thereby implementing an nmginx cluster in conjunction with a server cluster. Nginx is a lightweight Web server/reverse proxy server and email (IMAP/POP 3) proxy server that issues under the BSD-like protocol. The method is characterized by less occupied memory and strong concurrency capability. So that a good fit with the server cluster can be achieved.
In addition, in one embodiment, the service request may be sent to other devices before being sent to the proxy server, and then be distributed to the proxy server by the other devices, where the running state of the proxy server may be judged during the distribution, so as to determine whether the service request can be immediately distributed or determine the time of the distribution.
The server cluster obtains one or more service requests from the proxy server, and then the service requests need to be analyzed to determine specific content needing to be responded, and the service requests are responded, so that the service to the client is realized.
S2, according to the service request, corresponding configuration data are obtained from a first preset server different from the server cluster so as to perform first configuration operation, wherein the configuration data are used for determining response content corresponding to the service request.
Specifically, the server cluster may establish data interaction with a first preset server according to a service request of the client, and obtain stored configuration data from the first preset server, where the first preset server may be a server connected with the server cluster and may have a storage function, for example, the first preset server may be an AWS S3 storage bucket, where the configuration data stores configuration data, and the configuration data includes an association relationship between the service request and corresponding response content that needs to be responded. After the server cluster obtains the configuration data, a first configuration operation can be performed based on the configuration data, for example, the configuration data is loaded, so that response content of a response is definitely needed to prepare the data.
S3, calling service data corresponding to the service request from a preset database cluster based on the response content.
The preset database cluster may include a plurality of databases and a coordinator device associated with the databases, and the coordinator device may also be a database, for example, the coordinator device may be a dis device, and the dis device is a high-performance key-value database. The method can compensate the storage deficiency of other databases, such as the deficiency of key/value storage of memcached, and can play a good role in supplementing the relational database in partial occasions.
The server cluster sends an instruction to a preset database cluster, wherein the database and the coordination equipment are mutually matched, so that corresponding service data can be quickly and accurately called out and sent to the server cluster, the server cluster can feed back to the client after the service data are acquired, data interaction with the client is realized, and the data service function of the client is met.
The processing method in the implementation can closely match the server cluster with other related devices, so that corresponding service data can be quickly and accurately fed back to the client even if a large number of service requests are faced, the function of serving the client is realized, and meanwhile, the running stability and continuity of the client are ensured.
In one embodiment of the present application, the obtaining at least one service request allocated by the proxy server includes:
and under the condition that the health state of the server cluster meets the preset health requirement, acquiring the service request distributed by the proxy server according to the weight of the service request, wherein the service request corresponds to at least one server in the server cluster.
During the working process of the server cluster, due to the problems of hardware or software, the server and/or other internal devices therein may have operation errors, shutdown setting and other phenomena. If the service request is directly distributed to the server cluster without focusing on the situation, the service request is not responded to, or the response is delayed. In this embodiment, the phenomenon is considered, so that the proxy server needs to determine the health status of the server cluster when assigning tasks to the server cluster, and if the health status meets the preset health requirement, the proxy server may assign a service request to the server cluster if it is determined that there is no server shutdown phenomenon in the server cluster, although the delay is somewhat delayed, the delay is also within a tolerable range, so that the health status of the server cluster can be considered to meet the preset health requirement.
In addition, when the proxy server distributes the service request to the server cluster, the proxy server also needs to distribute according to the weight of the service request. The method comprises the steps of preferentially distributing the service requests with high weights to the server clusters, and distributing the service requests with low weights to the server clusters according to the received time sequence. Thereby meeting the different requirements of the client.
In one embodiment of the present application, the service request is specifically a service request distributed to the proxy server meeting the health condition through a second preset server, and is distributed by the proxy server.
Specifically, in connection with fig. 5, the second preset server may be an AWS, the AWS may use its ALS function to implement data distribution to the proxy server, and before sending to the proxy server, the second preset server may detect the health status of the proxy server, and if the proxy server meets the health condition, the second preset server may send a service request to the proxy server. Meanwhile, the second preset server can also control the number of service requests in unit time to prevent malicious attacks, for example, the AWS can use the WAF function to control the number of service requests sent by the client in unit time, so that the service requests with extremely large number are prevented from arriving simultaneously, and the malicious attack phenomenon is prevented.
In one embodiment of the present application, the method further comprises initiating a second configuration operation, comprising:
starting at least two groups of services in a server in the server cluster, wherein each group of services comprises a plurality of processes, and the processes comprise a plurality of processes and a single process;
and monitoring the data ports of the server cluster through the multiple processes, and simultaneously processing the service request through multiple threads in the single process.
In particular, a cluster of servers includes one or more servers with multiple sets of services in the servers, each set of services including multiple processes, including multiple processes and a single process. The servers can implement responses to and processing of service requests based on threads. For example, each group of services has 4 processes, wherein multiple processes are used for monitoring the data ports of the server, so that the interactive data can be monitored in real time, and a single thread can be specifically used for processing the service request, so that accurate and complete response and processing are realized.
In one embodiment of the present application, the method further comprises the steps of: and when the content of the service data needs to be adjusted, alternately adjusting each group of service in the at least two groups of service to keep the server to provide uninterrupted service for the client.
Specifically, when maintaining the server cluster, sometimes, adjustment, such as upgrading an application program, replacing a program, or patching a program, needs to be performed on service data in the server, and at this time, the service in the server can be controlled, including alternately adjusting each of at least two groups of services, such as upgrading a first group of services in advance, and upgrading a second group of services after the first group of services are upgraded, so that continuity of running the program of the client is ensured, and uninterrupted service is provided for the client. Of course, the specific rule of alternate adjustment for each group of services may also be pre-constructed according to the actual hardware and/or software configuration of the server cluster, so as to meet different requirements.
In one embodiment of the present application, the obtaining corresponding configuration data from a first preset server different from the server cluster to perform a first configuration operation, as shown in fig. 2, includes the following steps:
s21, sending an acquisition request to the first preset server based on a first communication protocol so as to enable the first preset server to respond.
In particular, the server cluster may establish a data interaction with a first preset server based on a first communication protocol, which may be an http protocol or other communication protocol. The server cluster sends an acquisition request to a first preset server based on a cluster http protocol, and the first preset server responds and invokes configuration data stored by the first preset server. The first preset server may be an AWS S3 bucket having a storage function capable of storing configuration data.
S22, receiving configuration data sent by the first preset server, and loading the configuration data into a memory, so that an application program associated with the service request can determine the response content by reading the configuration data from the memory.
Specifically, after the server cluster receives the configuration data sent by the first preset server, the configuration data is loaded into a memory of the server cluster, and the application program is related to a service request, for example, the service request can be a part of requests in the application program or a request related to the application program, for example, a client runs a network game, the network game also needs to run in the server cluster to provide corresponding game services for the client, and the network game can read the configuration data from the memory of the server cluster, so that response content required by the service request is determined.
In one embodiment of the present application, the preset database cluster includes a plurality of databases, the types of the databases are one or more, and the preset database cluster is constructed based on the types of the databases.
Specifically, the preset database cluster may be a single database, or may be a plurality of databases of the same type or different types, for example, a relational database, a Key-Value database, a column storage database, and the like. In one embodiment, the preset database cluster includes a database cluster and may further include a coordinating device, which may coordinate the database cluster, which may itself be another type of database or database cluster, such as a dis cluster, to provide stable support for storage and invocation of data.
In one embodiment of the present application, the calling, based on the response content, the service data corresponding to the service request from a preset database cluster, as shown in fig. 3, includes the following steps:
s31, connecting the databases through a database connection pool;
the database connection pool can allocate, manage, and release database connections that allow an application to reuse an existing database connection rather than re-establishing one, improving connection efficiency. In addition, the database connection pool releases the database connection with the idle time exceeding the maximum idle time to avoid the database connection omission caused by the fact that the database connection is not released. Thereby enabling improved performance in database operations.
S32, based on the type of the database, executing access operation for accessing the database to call the service data.
The types of databases may be single or multiple, and the characteristics of the different types of databases may be different, with their respective advantages. In this embodiment, a large amount of service data may be stored in different databases according to the characteristics of the service data, and the server cluster may perform access operation according to the type of the database when accessing the database cluster, so as to implement quick and accurate service data call, and meanwhile, maintain the overall stability of the preset database cluster.
The embodiment of the application also provides a server cluster, as shown in fig. 4 and combined with fig. 5, which comprises a memory and a processor, wherein the memory stores an executable program, and the processor executes the executable program to realize the following steps:
acquiring at least one service request distributed by a proxy server, wherein the service request is a request of at least one client for calling corresponding service data from the server cluster;
according to the service request, corresponding configuration data are acquired from a first preset server different from the server cluster so as to perform first configuration operation, wherein the configuration data are used for determining response content corresponding to the service request;
and calling service data corresponding to the service request from a preset database cluster based on the response content.
Specifically, in conjunction with fig. 5, the client sends a service request to the server cluster, where the service request may be sent to the proxy server before being sent to the server cluster, and the proxy server may not provide main service data, so that the installation is simple, the configuration file is concise, and the Bug number in the proxy server may be effectively controlled. For example, the proxy server may employ an nmginx cluster, thereby implementing an nmginx cluster in conjunction with a server cluster. Nginx is a lightweight Web server/reverse proxy server and email (IMAP/POP 3) proxy server that issues under the BSD-like protocol. The method is characterized by less occupied memory and strong concurrency capability. So that a good fit with the server cluster can be achieved.
In addition, in one embodiment, the service request may be sent to other devices before being sent to the proxy server, and then be distributed to the proxy server by the other devices, where the running state of the proxy server may be judged during the distribution, so as to determine whether the service request can be immediately distributed or determine the time of the distribution.
The server cluster obtains one or more service requests from the proxy server, and then the service requests need to be analyzed to determine specific content needing to be responded, and the service requests are responded, so that the service to the client is realized.
The server cluster can establish data interaction with a first preset server according to a service request of a client, and obtain stored configuration data from the first preset server, wherein the first preset server can be a server connected with the server cluster and can have a storage function, for example, the first preset server can be an AWS 3 storage barrel, the configuration data is stored, and the configuration data comprises an association relation between the service request and corresponding response content needing to be responded. After the server cluster obtains the configuration data, a first configuration operation can be performed based on the configuration data, for example, the configuration data is loaded, so that response content of a response is definitely needed to prepare the data.
The preset database cluster may include a plurality of databases and a coordinator device associated with the databases, and the coordinator device may also be a database, for example, the coordinator device may be a dis device, and the dis device is a high-performance key-value database. The method can compensate the storage deficiency of other databases, such as the deficiency of key/value storage of memcached, and can play a good role in supplementing the relational database in partial occasions.
The server cluster sends an instruction to a preset database cluster, wherein the database and the coordination equipment are mutually matched, so that corresponding service data can be quickly and accurately called out and sent to the server cluster, the server cluster can feed back to the client after the service data are acquired, data interaction with the client is realized, and the data service function of the client is met.
In one embodiment of the present application, execution of the executable program by the processor is further capable of performing the steps of:
and under the condition that the health state of the server cluster meets the preset health requirement, acquiring the service request distributed by the proxy server according to the weight of the service request, wherein the service request corresponds to at least one server in the server cluster.
Starting at least two groups of services in a server in the server cluster, wherein each group of services comprises a plurality of processes, and the processes comprise a plurality of processes and a single process;
the data port of the server is monitored by the multiple processes while the service request is processed by multiple threads in the single process.
And when the content of the service data needs to be adjusted, alternately adjusting each group of service in the at least two groups of service to keep the server to provide uninterrupted service for the client.
Transmitting an acquisition request to the first preset server based on a first communication protocol so as to enable the first preset server to respond;
and receiving configuration data sent by the first preset server, and loading the configuration data into a memory, so that an application program associated with the service request can determine the response content by reading the configuration data from the memory.
In addition, the preset database cluster comprises a plurality of databases, the types of the databases are one or more, and the preset database cluster is constructed based on the types of the databases.
In one embodiment of the present application, execution of the executable program by the processor is further capable of performing the steps of:
the database is connected through a database connection pool;
and executing access operation for accessing the database based on the type of the database so as to call the service data.
The service request is specifically a service request distributed to the proxy server meeting the health condition through a second preset server and distributed by the proxy server.
The embodiment of the application also provides a service system, which comprises the server cluster, the proxy server, the preset database cluster, the first preset server and the second preset server. The service system is connected with one or more clients, so that stable service can be provided for the clients, and the requirements of users are met.
The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application, the scope of which is defined by the claims. Various modifications and equivalent arrangements may be made to the present application by those skilled in the art, which modifications and equivalents are also considered to be within the scope of the present application.

Claims (9)

1. A server-based data processing method, applied to a server cluster, the method comprising:
acquiring at least one service request distributed by a proxy server, wherein the service request is a request of at least one client for calling corresponding service data from the server cluster;
according to the service request, corresponding configuration data are acquired from a first preset server different from the server cluster so as to perform first configuration operation, wherein the configuration data are used for determining response content corresponding to the service request;
based on the response content, calling service data corresponding to the service request from a preset database cluster; wherein,
the obtaining corresponding configuration data from a first preset server different from the server cluster to perform a first configuration operation includes:
transmitting an acquisition request to the first preset server based on a first communication protocol so as to enable the first preset server to respond;
and receiving configuration data sent by the first preset server, and loading the configuration data into a memory, so that an application program associated with the service request can determine the response content by reading the configuration data from the memory.
2. The method of claim 1, wherein said obtaining at least one service request assigned by the proxy server comprises:
and under the condition that the health state of the server cluster meets the preset health requirement, acquiring the service request distributed by the proxy server according to the weight of the service request, wherein the service request corresponds to at least one server in the server cluster.
3. The method of claim 1, further comprising initiating a second configuration operation comprising:
starting at least two groups of services in a server in the server cluster, wherein each group of services comprises a plurality of processes, and the processes comprise a plurality of processes and a single process;
the data port of the server is monitored by the multiple processes while the service request is processed by multiple threads in the single process.
4. A method according to claim 3, characterized in that the method further comprises:
and when the content of the service data needs to be adjusted, alternately adjusting each group of service in the at least two groups of service to keep the server to provide uninterrupted service for the client.
5. The method of claim 1, wherein the pre-set database cluster comprises a plurality of databases, the type of database being one or more, the pre-set database cluster being constructed based on the type of database.
6. The method of claim 5, wherein the calling the service data corresponding to the service request from the preset database cluster based on the response content comprises:
the database is connected through a database connection pool;
and executing access operation for accessing the database based on the type of the database so as to call the service data.
7. The method according to claim 1, wherein the service request is in particular a service request distributed via a second preset server to and by the proxy server meeting the health condition.
8. A server cluster comprising a memory and a processor, the memory having stored therein an executable program, the processor executing the executable program to perform the steps of:
acquiring at least one service request distributed by a proxy server, wherein the service request is a request of at least one client for calling corresponding service data from the server cluster;
according to the service request, corresponding configuration data are acquired from a first preset server different from the server cluster so as to perform first configuration operation, wherein the configuration data are used for determining response content corresponding to the service request;
based on the response content, calling service data corresponding to the service request from a preset database cluster; wherein,
the obtaining corresponding configuration data from a first preset server different from the server cluster to perform a first configuration operation includes:
transmitting an acquisition request to the first preset server based on a first communication protocol so as to enable the first preset server to respond;
and receiving configuration data sent by the first preset server, and loading the configuration data into a memory, so that an application program associated with the service request can determine the response content by reading the configuration data from the memory.
9. A service system comprising a server cluster according to any one of claims 1 to 7, and further comprising a proxy server according to any one of claims 1 to 7, a preset database cluster, a first preset server and a second preset server.
CN202110268672.0A 2021-03-12 2021-03-12 Data processing method based on server, server cluster and service system Active CN112883097B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110268672.0A CN112883097B (en) 2021-03-12 2021-03-12 Data processing method based on server, server cluster and service system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110268672.0A CN112883097B (en) 2021-03-12 2021-03-12 Data processing method based on server, server cluster and service system

Publications (2)

Publication Number Publication Date
CN112883097A CN112883097A (en) 2021-06-01
CN112883097B true CN112883097B (en) 2024-02-20

Family

ID=76041170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110268672.0A Active CN112883097B (en) 2021-03-12 2021-03-12 Data processing method based on server, server cluster and service system

Country Status (1)

Country Link
CN (1) CN112883097B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107645508A (en) * 2017-10-16 2018-01-30 深圳市买买提乐购金融服务有限公司 A kind of data handling system, method, client and server
CN111198762A (en) * 2019-12-16 2020-05-26 北京淇瑀信息科技有限公司 Server cluster system supporting high concurrency, control method and control device
CN112019597A (en) * 2020-07-27 2020-12-01 华迪计算机集团有限公司 Distributed data receiving system and data receiving method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107645508A (en) * 2017-10-16 2018-01-30 深圳市买买提乐购金融服务有限公司 A kind of data handling system, method, client and server
CN111198762A (en) * 2019-12-16 2020-05-26 北京淇瑀信息科技有限公司 Server cluster system supporting high concurrency, control method and control device
CN112019597A (en) * 2020-07-27 2020-12-01 华迪计算机集团有限公司 Distributed data receiving system and data receiving method

Also Published As

Publication number Publication date
CN112883097A (en) 2021-06-01

Similar Documents

Publication Publication Date Title
CN108206852B (en) Session-based service instance management method and device under micro-service framework
US11363097B2 (en) Method and system for dynamically rebalancing client sessions within a cluster of servers connected to a network
US10069943B2 (en) Query dispatch and execution architecture
CN110825394B (en) Automatic initialization method, system and storage medium for application program of cloud mobile phone
US7996525B2 (en) Systems and methods for dynamically provisioning cloud computing resources
CN108737467B (en) Server log viewing method, device and system
US10791166B2 (en) Method and device for processing persistent connection establishment request
WO2022062650A1 (en) Computing device sharing method and apparatus based on kubernetes, and device and storage medium
WO2019210580A1 (en) Access request processing method, apparatus, computer device, and storage medium
CN109933431B (en) Intelligent client load balancing method and system
CN106533961B (en) Flow control method and device
CN111045813B (en) Task distribution system and method
US20120233313A1 (en) Shared scaling server system
WO2006029771A1 (en) Computer arrangement and method for providing services for clients over a network
CN112346980B (en) Software performance testing method, system and readable storage medium
KR20150007698A (en) Load distribution system for virtual desktop service
CN111163140A (en) Method, apparatus and computer readable storage medium for resource acquisition and allocation
US8266258B1 (en) Enhanced throttle management system
CN112883097B (en) Data processing method based on server, server cluster and service system
US20110246815A1 (en) Recovering from lost resources in a distributed server environment
CN115952003A (en) Method, device, equipment and storage medium for cluster server load balancing
US8938480B2 (en) Techniques for fast loading of data from an external distributed file system to a database management system
CN114168312A (en) Distributed cluster load balancing method and device and storage medium
CN114070820A (en) Domain name redirection method, device, medium and electronic equipment
CN111309467B (en) Task distribution method and device, electronic equipment and storage medium

Legal Events

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