Business processing method, system, device, management server and storage medium
The management server receives and processes business requests, establishes communication connections for multiple search clusters, and realizes unified access and processing of multiple search clusters. It solves the problem of low efficiency of single server connection to a single cluster in the existing technology, and improves ease of use. sex and experience.
Patent Information
- Application Number
- CN202211153780.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-21
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-09-21
AI Technical Summary
The existing management server can only connect to one search cluster. If you need to manage multiple search clusters, you need to deploy multiple servers, resulting in low efficiency and poor ease of switching.
Receive business processing requests through the management server, establish communication connections with multiple search clusters, send business processing requests and receive results, and display them on the front-end interface to achieve unified access and processing of multiple search clusters.
It reduces the maintenance cost of the management server, improves the ease of use and experience of search cluster access, and avoids the complexity of multi-server deployment and repeated authentication processes.
Smart Images

Figure CN115604358B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a business processing method, system, device, management server and storage medium. Background Art
[0002] The management server is a common tool that can access and analyze data in the search cluster. Through the management server, you can manage and operate the search cluster, view the usage of the search cluster, monitor the status of cluster nodes, and manage indexes.
[0003] Currently, a management server can only connect to one search cluster for access. If there are multiple search clusters, multiple management servers need to be deployed to connect to the corresponding search clusters for management, which is inefficient and has poor switching usability. Summary of the invention
[0004] The purpose of the present invention is to provide a business processing method, system, device, management server and storage medium to improve the usability and experience of search cluster access in view of the deficiencies in the above-mentioned prior art.
[0005] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0006] In a first aspect, an embodiment of the present application provides a service processing method, the method comprising:
[0007] Receiving a business processing request input through a front-end interface, the business processing request comprising: searching for a cluster identifier;
[0008] In response to the service processing request, establishing a communication connection with a target search cluster corresponding to the search cluster identifier;
[0009] Sending the service processing request to the target search cluster, so that the target search cluster performs a service processing operation based on the service processing request to obtain a service processing result;
[0010] Receiving the business processing result returned by the target search cluster;
[0011] The business processing results are displayed through the front-end interface.
[0012] In a second aspect, an embodiment of the present application further provides a business processing system, comprising: a management server, and multiple search clusters, wherein the management server is communicatively connected to the multiple search clusters, wherein the management server is used to execute the steps of the business processing method as described in any one of the first aspects.
[0013] In a third aspect, an embodiment of the present application further provides a business processing device, the business processing device comprising: a receiving module, a responding module, a sending module, a result receiving module, and a display module;
[0014] The receiving module is used to receive a business processing request input through the front-end interface, and the business processing request includes: searching for a cluster identifier;
[0015] The response module is used to respond to the business processing request and establish a communication connection with the target search cluster corresponding to the search cluster identifier;
[0016] The sending module is used to send the business processing request to the target search cluster, so that the target search cluster performs a business processing operation based on the business processing request to obtain a business processing result;
[0017] The result receiving module is used to receive the business processing result returned by the target search cluster;
[0018] The display module is used to display the business processing results through the front-end interface.
[0019] In a fourth aspect, an embodiment of the present application further provides a management server, comprising: a processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the management server is running, the processor communicates with the storage medium through the bus, and the processor executes the program instructions to perform the steps of the business processing method as described in any one of the first aspects.
[0020] In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the business processing method as described in any one of the first aspects are executed.
[0021] The beneficial effects of the present application are as follows: an embodiment of the present application provides a business processing method, which first receives a business processing request input through a front-end interface, and establishes a communication connection with a target search cluster corresponding to a search cluster identifier by responding to the business processing request. Secondly, a business processing request is sent to the target search cluster so that the target search cluster performs a business processing operation based on the business processing request to obtain a business processing result. Finally, the business processing result returned by the target search cluster is received and displayed through the front-end interface. As a result, the present application implements business access and business processing for multiple search clusters through a management server, reduces the maintenance cost of the management server, and improves the ease of use and experience of search cluster access. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 A schematic diagram of the architecture of a business processing system provided in one embodiment of the present application;
[0024] Figure 2 A flowchart of a business processing method provided in one embodiment of the present application;
[0025] Figure 3 A flowchart of a business processing method provided in another embodiment of the present application;
[0026] Figure 4 A flowchart of a business processing method provided by another embodiment of the present application;
[0027] Figure 5 A flowchart of a business processing method provided in yet another embodiment of the present application;
[0028] Figure 6 A flowchart of a business processing method provided in yet another embodiment of the present application;
[0029] Figure 7 A schematic diagram of a service processing device provided in one embodiment of the present application;
[0030] Figure 8 A schematic diagram of a management server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.
[0032] In this application, unless otherwise expressly specified and limited, the term "includes", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0033] Data analysis services are currently a common tool for accessing and analyzing data in the full-text search engine of a search cluster. For example, the common data analysis service, Kibana service, is a common tool for accessing and analyzing data in the full-text search engine of an elastic search cluster (Elasticsearch). It has a visual data query browsing interface and can perform statistical analysis and report generation on Elasticsearch cluster data. In addition, Kibana can also be used to manage and operate the Elasticsearch cluster, view the usage of the Elasticsearch cluster disk, CPU, memory, etc., monitor cluster node status, and manage indexes.
[0034] However, when using data analysis services (such as Kibana services), one data analysis service can only connect to one search cluster (such as Elasticsearch cluster) for access. If you need to use multiple search clusters, you need to deploy multiple data analysis services to connect to the corresponding search clusters for management, and you also need to maintain multiple sets of data analysis services.
[0035] In addition, for data access security, data analysis services are usually connected to the user authentication and permission system to implement user authentication. Since each data analysis service needs to be connected to the user authentication and permission system, different search clusters need to log in to access different data analysis services.
[0036] Taking the Kibana service and Elasticsearch cluster as an example, the process of users accessing Kibana is as follows:
[0037] First, users access the corresponding Kibana access address according to query business requirements;
[0038] If Kibana has secure access enabled, the first access to the Kibana service requires user authentication verification by the authentication and permission verification system. Subsequent access requires the corresponding authentication information and each access must also be subject to permission verification.
[0039] The Kibana service encapsulates the user's accessed interface address into an HTTP request and sends it to the connected Elasticsearch cluster;
[0040] The Elasticsearch cluster parses the http request to obtain the result and returns it to the Kibana service;
[0041] Kibana displays user access results.
[0042] In summary, the current data analysis service corresponds to the search cluster time one by one, and different search clusters require logging in to access different data analysis services. Users need to re-authenticate and verify the corresponding cluster permissions each time they access multiple data analysis services. Multiple data analysis services require more maintenance costs and more hardware resources. Users need to access different data analysis service addresses when accessing data in different search clusters, and the switching usability and experience are poor.
[0043] In view of the above existing technical problems, the embodiments of the present application provide multiple possible implementation methods to improve the usability and experience of search cluster access. The following is an explanation through multiple examples in conjunction with the accompanying drawings.
[0044] The business processing method of the present application can be applied to a management server. The following first describes the system architecture of a business processing system including a management server. Figure 1 A schematic diagram of the architecture of a business processing system provided in one embodiment of the present application is shown in FIG. Figure 1 As shown, the business processing system includes: a management server 100 and multiple search clusters 300 , and the management server 100 is communicatively connected to the multiple search clusters 300 .
[0045] Among them, the management server is a service platform for data analysis. In this application, the management server cooperates with one or more search clusters to realize business processing for one or more search clusters. Among them, the business that the management server can handle includes but is not limited to data search in the search cluster, data analysis in the search cluster, and search cluster management. It should be noted that the management server can be an electronic device running the management server, and the electronic device can be, for example, a terminal device or a server (it should be noted that this server has high-speed CPU computing power, long-term reliable operation, powerful I / O external data throughput capacity and better scalability. The management server is essentially a service platform).
[0046] A search cluster refers to a distributed search and analysis engine with the characteristics of high scalability, high reliability and easy management. For example, it can be a loosely coupled multi-processor system composed of a group of independent computer systems. In a possible implementation, the search cluster can be, for example, an Elasticsearch cluster (Elasticsearch cluster is a cluster built based on the full-text search engine library Apache Lucene, which can perform near real-time storage, search and analysis operations on large-capacity data), etc., and this application does not limit this. It should be noted that the search cluster can be an electronic device running the search cluster, and the electronic device can be, for example, a terminal device or a server. It should also be noted that the electronic device running the search cluster can be the same as the electronic device running the management server, or it can be different from the electronic device running the management server, and this application does not limit this. As long as the management server can achieve communication connection with the search cluster. In addition, the communication connection between the management server and the search cluster can be a wired communication connection (i.e., a communication connection realized by a wired connection between an electronic device running the management server and an electronic device running the search cluster), or it can be a wireless communication connection, and this application does not limit this.
[0047] The business processing method of the present application is explained below through multiple examples. Figure 2 A flowchart of a business processing method provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the method includes:
[0048] Step 201: receiving a business processing request input through a front-end interface, the business processing request including: searching for a cluster identifier.
[0049] It should be noted that the front-end interface is an interface that provides human-computer interaction functions for the management server. It can be a display device interface of the electronic device where the management server is located, or it can be an external display device interface connected to the electronic device where the management server is located. This application does not limit this. In a specific implementation, the front-end interface provides users with an interface for using the management server, provides business processing request input solutions, displays business processing results (for example, displaying data analysis results for search clusters, etc.), etc. This application does not limit the specific functions of the front-end interface.
[0050] After the user inputs a business processing request in the front-end interface, the management server receives the business processing request input through the front-end interface and determines the search cluster identifier in the business processing request. The search cluster identifier is a unique identifier of multiple search clusters in the business processing system, and each search cluster identifier can uniquely identify a search cluster in the business processing system.
[0051] Step 202: In response to the service processing request, a communication connection with the target search cluster corresponding to the search cluster identifier is established.
[0052] According to the search cluster identifier in the business processing request, a target search cluster corresponding to the search cluster identifier is determined, and a communication connection between the management server and the target search cluster is established.
[0053] Step 203: Send a business processing request to the target search cluster, so that the target search cluster performs a business processing operation based on the business processing request to obtain a business processing result.
[0054] After establishing a communication connection with the target search cluster, the management server sends a business processing request to the target search cluster, and obtains a business processing result obtained after the target search cluster performs a business processing operation based on the business processing request.
[0055] In a possible implementation, after sending a service processing request to the target search cluster, the management server maintains a heartbeat with the target search cluster to obtain the service processing result of the target search cluster.
[0056] The above is only an example. In actual implementation, there may be other implementation methods, which are not limited in this application.
[0057] Step 204: Receive the business processing result returned by the target search cluster.
[0058] Step 205: Display the business processing results through the front-end interface.
[0059] The management server receives the business processing results returned by the target search cluster and displays the business processing results through the front-end interface.
[0060] In summary, the embodiment of the present application provides a business processing method, which first receives a business processing request input through a front-end interface, and establishes a communication connection with a target search cluster corresponding to a search cluster identifier by responding to the business processing request. Secondly, a business processing request is sent to the target search cluster so that the target search cluster performs a business processing operation based on the business processing request to obtain a business processing result. Finally, the business processing result returned by the target search cluster is received and displayed through the front-end interface. As a result, the present application implements business access and business processing for multiple search clusters through a management server, reduces the maintenance cost of the management server, and improves the ease of use and experience of search cluster access.
[0061] Optional, in the above Figure 2 Based on this, the present application also provides a possible implementation of a business processing method. Figure 3 A flowchart of a business processing method provided in another embodiment of the present application; Figure 3As shown, the management server is pre-set with data analysis service and proxy service; Step 202: respond to the business processing request and establish a communication connection with the target search cluster corresponding to the search cluster identifier, including:
[0062] Step 301: Using data analysis services, obtain a request identifier, and add the request identifier to a business processing request to generate a new business processing request.
[0063] It should be noted that the management server is pre-set with data analysis service and proxy service. The data analysis service is a tool for accessing and analyzing data in the search cluster. The proxy service sends a new business processing request to the target search cluster and returns the business processing result to the data analysis service, thereby realizing the business processing of the data analysis service and multiple search clusters.
[0064] In one possible implementation, the data analysis service may be, for example, a Kibana service, and the proxy service may be, for example, an ESProxy service (the ESProxy service is a proxy service that integrates proxy and access control), etc. This application does not limit the specific service implementation methods of the data analysis service and the proxy service.
[0065] In another possible implementation, a data analysis service is used to obtain a request identifier, which is an identifier of a specific business request. The target search cluster can uniquely determine the specific business request to be executed based on the request identifier. The request identifier is added to the business processing request to generate a new business processing request.
[0066] In a specific implementation method, a business processing request input through a front-end interface is received, and the business processing request also includes: a request message, which is a specific business request for a target search cluster. The request message may be, for example, an HTTP request (HTTP Request), etc., which is not limited in this application; the request message is encapsulated using a data analysis service to obtain a unique request identifier requestid; the data analysis service generates a new business processing request based on the search cluster identifier and the unique request identifier.
[0067] Exemplarily, based on the above embodiments, the present application further provides a possible implementation of generating a new business processing request in a business processing method:
[0068] Using the data analysis service, encapsulating the business processing request and the request identification information, and sending the encapsulated business processing request to the proxy service; wherein the request identification information includes at least one of the following: number information of the business processing request, time information of the business processing request, and version information of the data analysis service;
[0069] Using a proxy service, responding to the encapsulated business processing request, generating a request identifier, and sending the request identifier to the data analysis service;
[0070] The data analysis service is used to receive the request identifier sent by the proxy service, and then the request identifier is added to the business processing request to generate a new business processing request.
[0071] In a possible implementation, after receiving the business processing request, the data analysis service parses the business processing request, and then encapsulates the business processing request and related parameters (request identification information) through the communication framework between the data analysis service and the proxy service. The request identification information is generated by at least one of the following information: the universally unique identifier of the data analysis service, the timestamp of the business processing request time, the version number of the data analysis service, etc., which is not limited in this application.
[0072] Optionally, based on the above embodiment, the present application further provides a possible implementation method for generating a new business processing request in a business processing method, wherein a data analysis service and a proxy service are pre-set on the management server; in response to the business processing request, a communication connection with a target search cluster corresponding to the search cluster identifier is established, including:
[0073] Using a data analysis service, encapsulating a business processing request and request identification information, and sending the encapsulated business processing request to a proxy service; wherein the request identification information includes: identification information of the business processing request, and version information of the data analysis service; wherein the identification information of the business processing request includes: number information of the business processing request, and / or time information of the business processing request;
[0074] Use proxy services to respond to business processing requests, generate and return request identifiers to data analysis services, and establish a communication connection with the target search cluster;
[0075] Receive the business processing results returned by the target search cluster, including:
[0076] Using the data analysis service, sending a result request message including a request identifier to the proxy service;
[0077] Using proxy services to respond to result request information;
[0078] Use proxy services to receive business processing results returned by the target search cluster;
[0079] The proxy service is used to return the business processing results to the data analysis service according to the request identifier.
[0080] In one possible implementation, for example, using the Kibana data analysis service and the ESProxy proxy service, the Kibana service is implemented based on nodejs, and an http server process based on the hapi js framework is started internally. The Kibana service receives the business processing request input through the front-end interface and parses it. Then the Kibana service connects to the proxy service (esproxy service). The esproxy service is also an http server (it can provide http services based on jetty and netty). After the kibana service receives the business processing request input through the front-end interface, it parses it and encapsulates the business processing request through the post / get and other methods of the http communication framework and sends the encapsulated request (for example, the request parameters can be set in the http header, body, etc.).
[0081] Afterwards, the data analysis service obtains a unique request identifier (requestid) based on the encapsulated business processing request:
[0082] After receiving the encapsulated business processing request sent by the data analysis service, the proxy service generates a unique request identifier and sends the generated unique request identifier to the data analysis service.
[0083] After receiving the unique request identifier, the data analysis service can send the request processing progress before requesting a query to the proxy service based on the unique request identifier.
[0084] Optionally, based on the above embodiment, the present application also provides a possible implementation method for generating a request identifier in a business processing method:
[0085] Using proxy services to parse the encapsulated business processing request, and obtaining the parsed business processing request and request identification information;
[0086] The proxy service is used to generate a request identifier based on the request identification information.
[0087] It is parsed and processed, and a unique request identifier is generated through technologies such as a Universally Unique Identifier, timestamp, and version number, and this unique request identifier is returned to the data analysis service.
[0088] For example, using the Kibana data analysis service and the ESProxy proxy service, after ESProxy receives the request sent by kibana, it parses and processes the request in ESProxy, and first returns a reply message (response) to kibana in an asynchronous manner. This reply message only indicates that ESProxy has received the business processing request (regardless of the processing result). Among them, ESProxy can, for example, generate a unique request identifier through technologies such as UUID, timestamp, and version number. Since kibana is an asynchronous request, this unique request identifier can be set in the reply message response. After kibana receives the response, it can send the request processing progress to ESProxy before requesting a query based on this unique request identifier.
[0089] The above is only an example. In actual implementation, there may be other ways to generate a query request, which is not limited in this application.
[0090] Step 302: Use proxy services to respond to new business processing requests and establish a communication connection with the target search cluster.
[0091] A proxy service is used to respond to a new business processing request, determine a target search cluster according to a search cluster identifier in the new business processing request, and establish a communication connection between the proxy service and the target search cluster.
[0092] In a specific implementation, before step 302, the method further includes:
[0093] Use data analysis service to wait asynchronously according to the request identifier to obtain the business processing results returned by the proxy service.
[0094] In another specific implementation, after receiving a new business processing request, the proxy service parses the new business processing request and determines a target search cluster.
[0095] Send a business processing request to the target search cluster, including:
[0096] Step 303: Use proxy service to send a new business processing request to the target search cluster.
[0097] In a possible implementation, a proxy service is used. After sending a new business process to a target search cluster, the proxy service maintains a heartbeat with the target search cluster to obtain the business process result of the target search cluster.
[0098] In one possible implementation, based on the access pressure of the proxy service (i.e., the number of query requests processed in the proxy service), the business processing system may include one or more proxy services, and multiple proxy services may receive or forward new business requests through polling; or, the data analysis service only communicates with one of the proxy services, and multiple proxy services obtain each other's status through communication, and then receive or forward new business requests between multiple proxy services based on the access pressure of each proxy service.
[0099] The above is only an example. In actual implementation, there may be other new ways of sending business processing requests, which are not limited in this application.
[0100] Receive the business processing results returned by the target search cluster, including:
[0101] Step 304: Use proxy service to receive the business processing results returned by the target search cluster.
[0102] Step 305: Using the proxy service, the business processing result is returned to the data analysis service according to the request identifier.
[0103] In a possible implementation, after the proxy service sends a new business processing request to the target search cluster, it obtains the business processing result returned by the target search cluster, and then returns the business processing result to the data analysis service according to the request identifier, so that the data analysis service can display it on the front-end interface.
[0104] Through the above method, this application implements access of a data analysis service to multiple search clusters through a proxy service, without the need to repeatedly switch the address of the data analysis service, thereby improving the ease of use and experience of users using the data analysis service to manage and query search clusters.
[0105] Optional, in the above Figure 3 Based on this, the present application also provides a possible implementation of a business processing method. Figure 4 A flowchart of a business processing method provided by another embodiment of the present application; Figure 4 As shown, a proxy service is used to respond to new business processing requests and establish a communication connection with the target search cluster, including:
[0106] Step 401: Use proxy service to cache new business processing requests into a request queue.
[0107] Step 402: Using a proxy service, the new business processing request in the request queue is parsed in a preset order to obtain a search cluster identifier and establish a communication connection with a target search cluster.
[0108] In order to improve the processing speed of business processing requests of the proxy service, new business processing requests can be cached in the request queue of the proxy service. During processing, the proxy service processes each new business processing request in the request queue in sequence according to a preset order (such as first-in-first-out, first-in-last-out, etc.): parse the first new business processing request, obtain the search cluster identifier, and establish a communication connection with the target search cluster; send a new business processing request to the target search cluster and receive the business processing result returned by the target search cluster; then continue to parse the next new business processing request.
[0109] In one possible implementation, the request queue can also cooperate with multiple proxy services to further improve the processing speed and processing concurrency of business processing requests of the proxy services:
[0110] First, deploy multiple proxy services (for example, you can deploy them by configuring a thread pool. Determine the number of threads based on the resource situation of the proxy service deployment node, and obtain the pre-configured maximum thread number and initial thread number);
[0111] If the data analysis service issues a new business processing request and multiple proxy services are in a busy state (that is, multiple threads currently running are in a busy state), the new business processing request issued by the data analysis service is added to the request queue;
[0112] When there is an idle proxy service (ie, an available thread), new business processing requests to be processed are taken out from the request queue in a preset order and processed.
[0113] The above is only an example. In actual implementation, there may be other request queue implementation methods, which are not limited in this application.
[0114] Optional, in the above Figure 3 Based on this, the present application also provides a possible implementation of a business processing method. Figure 5 A flowchart of a business processing method provided in yet another embodiment of the present application; Figure 5 As shown, receiving a business processing request input through the front-end interface includes:
[0115] Step 501: Using data analysis services to receive business processing requests input through a front-end interface.
[0116] In a possible implementation, after the user inputs a business processing request on the front-end interface, the data analysis service receives the business processing request on the front-end interface. For example, the user can select a search cluster that needs to be processed on the front-end interface, and the data analysis service obtains the search cluster identifier by receiving the search cluster selected by the user.
[0117] The above is only an example. In actual implementation, the data analysis service may receive business processing requests in other ways, and this application does not limit this.
[0118] The business processing results displayed through the front-end interface include:
[0119] Step 502: Use data analysis services to display business processing results on the front-end interface.
[0120] After receiving the business processing results, the data analysis service displays the business processing results on the front-end interface. The specific display content can be charts, data, processing results, etc. corresponding to the business processing request, which is not limited in this application. In addition, since the data analysis service may issue multiple business processing requests for different search clusters, when displayed on the front-end interface, the target search cluster or the request identifier for the business processing result can also be displayed, which is not limited in this application.
[0121] Optional, in the above Figure 3 Based on this, the present application also provides a possible implementation of a business processing method. Figure 6 A flowchart of a business processing method provided in another embodiment of the present application; Figure 6 As shown, before receiving the business processing request input through the front-end interface, the method also includes:
[0122] Step 601: receiving a login request for a data analysis service input through a front-end interface, the login request including: an identifier of the data analysis service and user information.
[0123] Step 602: Authentication is performed based on the data analysis service identifier and user information.
[0124] Receive business processing requests entered through the front-end interface, including:
[0125] Step 603: If the authentication is successful, the business processing request input through the front-end interface is received.
[0126] Before receiving a business processing request input through the front-end interface, the user can also be verified to determine his or her identity and authority.
[0127] In a possible implementation, after receiving a login request for a data analysis service input through a front-end interface, user authentication is performed based on: the identifier of the data analysis service and the user information in the request. The identifier of the data analysis service is the identifier of the data analysis service targeted by the user, and the user information is the user's authentication information (e.g., user name, user password, etc.).
[0128] If the authentication is successful, the user can use the data analysis service normally; if the authentication is successful, the failure result can be fed back to the user through the front-end display and other methods. This application does not limit this.
[0129] In a specific implementation method, user authentication and permission verification (i.e., the method of steps 601-603 above) can be implemented through an authentication and permission management system, which is communicated with the data analysis service. If the user passes the authentication in the authentication and permission management system, the data analysis service can be used; if the user fails to pass the authentication of the authentication and permission management system, the data analysis service cannot be used.
[0130] The above is only an example. In actual implementation, there may be other authentication methods, which are not limited in this application.
[0131] Optional, in the above Figure 2 On this basis, the present application also provides a possible implementation of a business processing method, where the business processing request is a cluster management request or a data query request.
[0132] The cluster management request is a request for cluster management of multiple search clusters in the business processing system, such as adding a new search cluster, deleting a search cluster, configuring search cluster parameters, etc. The data query request is a data request that needs to be processed by the search cluster, such as a data analysis request, a data query request, etc., which is not limited in this application.
[0133] The following is a description of the business processing device, management server, storage medium, etc. used to execute the business processing provided by this application. The specific implementation process and technical effects are described above and will not be repeated below.
[0134] The embodiments of the present application provide a possible implementation example of a business processing device, which can execute the business processing method provided in the above embodiments. Figure 7 Schematic diagram of a service processing device provided in one embodiment of the present application. Figure 7 As shown, the business processing device 500 includes: a receiving module 71, a responding module 73, a sending module 75, a result receiving module 77, and a display module 79;
[0135] The receiving module 71 is used to receive a business processing request input through the front-end interface, and the business processing request includes: searching for a cluster identifier;
[0136] A response module 73, used to respond to the service processing request and establish a communication connection with the target search cluster corresponding to the search cluster identifier;
[0137] A sending module 75 is used to send a business processing request to the target search cluster, so that the target search cluster performs a business processing operation based on the business processing request to obtain a business processing result;
[0138] A result receiving module 77, used to receive the business processing result returned by the target search cluster;
[0139] The display module 79 is used to display the business processing results through the front-end interface.
[0140] Optionally, the management server is pre-configured with a data analysis service and a proxy service; the response module 73 is used to use the data analysis service to obtain a request identifier, and add the request identifier to the business processing request to generate a new business processing request; use the proxy service to respond to the new business processing request and establish a communication connection with the target search cluster;
[0141] A sending module 75, used to send a new business processing request to a target search cluster using a proxy service;
[0142] The result receiving module 77 is used to adopt the proxy service to receive the business processing result returned by the target search cluster; adopt the proxy service to return the business processing result to the data analysis service according to the request identifier.
[0143] Optionally, the response module 73 is used to use a proxy service to cache new business processing requests in a request queue; use a proxy service to parse the new business processing requests in the request queue in a preset order, obtain a search cluster identifier, and establish a communication connection with a target search cluster.
[0144] Optionally, a receiving module 71 is used to receive a business processing request input through a front-end interface using a data analysis service;
[0145] The display module 79 is used to display the business processing results on the front-end interface using data analysis services.
[0146] Optionally, the business processing device 500 further includes: a login module and an authentication module;
[0147] A login module, used to receive a login request for a data analysis service input through a front-end interface, the login request including: an identifier of the data analysis service and user information;
[0148] The authentication module is used to perform authentication based on the identification of the data analysis service and user information; if the authentication is successful, the receiving module 71 is used to receive the business processing request input through the front-end interface.
[0149] Optionally, the response module 73 is used to adopt the data analysis service, encapsulate the business processing request and request identification information, and send the encapsulated business processing request to the proxy service; wherein the request identification information includes at least one of the following: the number information of the business processing request, the time information of the business processing request, and the version information of the data analysis service; adopt the proxy service to respond to the encapsulated business processing request, generate a request identifier, and send the request identifier to the data analysis service; adopt the data analysis service, after receiving the request identifier sent by the proxy service, add the request identifier to the business processing request to generate a new business processing request.
[0150] Optionally, the response module 73 is used to adopt a proxy service to parse the encapsulated business processing request to obtain the parsed business processing request and request identification information; and adopt the proxy service to generate a request identifier according to the request identification information.
[0151] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0152] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital singnal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0153] The embodiments of the present application provide a possible implementation example of a management server, which can execute the business processing method provided in the above embodiments. Figure 8 A schematic diagram of a management server provided in an embodiment of the present application, the management server can be integrated into a terminal device or a chip of a terminal device, and the terminal can be a computing device with data processing capabilities.
[0154] The management server includes: a processor 801, a storage medium 802 and a bus, the storage medium stores program instructions executable by the processor, when the management server is running, the processor and the storage medium communicate through the bus, the processor executes the program instructions, and executes the steps of the above-mentioned business processing method. The specific implementation method and technical effect are similar and will not be repeated here.
[0155] An embodiment of the present application provides a possible implementation example of a computer-readable storage medium, which can execute the business processing method provided in the above embodiment. A computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the above business processing method are executed.
[0156] A computer program stored in a storage medium may include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (English: Read-Only Memory, abbreviated: ROM), a random access memory (English: Random Access Memory, abbreviated: RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0157] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0158] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0159] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0160] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
[0161] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A business processing method, characterized in that: Applied to a management server, the management server is communicatively connected to a plurality of search clusters, the method comprising: Receiving a login request for a data analysis service input through a front-end interface, the login request including: an identifier of the data analysis service and user information; Authentication is performed based on the identifier of the data analysis service and the user information; If the authentication is successful, a business processing request input through the front-end interface is received, and the business processing request includes: searching for a cluster identifier; In response to the service processing request, establishing a communication connection with a target search cluster corresponding to the search cluster identifier, wherein the target search cluster is one or more of the multiple search clusters; Sending the service processing request to the target search cluster, so that the target search cluster performs a service processing operation based on the service processing request to obtain a service processing result; Receiving the business processing result returned by the target search cluster; The business processing results are displayed through the front-end interface.
2. The method according to claim 1, characterized in that The management server is pre-configured with a data analysis service and a proxy service; the responding to the service processing request and establishing a communication connection with a target search cluster corresponding to the search cluster identifier includes: Using the data analysis service, obtaining a request identifier, and adding the request identifier to the business processing request to generate a new business processing request; Using the proxy service, responding to the new business processing request, and establishing a communication connection with the target search cluster; The sending the service processing request to the target search cluster includes: Using the proxy service, sending the new business processing request to the target search cluster; The receiving the business processing result returned by the target search cluster includes: Using the proxy service, receiving the business processing result returned by the target search cluster; The proxy service is used to return the business processing result to the data analysis service according to the request identifier.
3. The method according to claim 2, characterized in that The adopting the proxy service, responding to the new business processing request, and establishing a communication connection with the target search cluster includes: Using the proxy service, caching the new business processing request into a request queue; The proxy service is used to parse new business processing requests in the request queue in a preset order to obtain the search cluster identifier and establish a communication connection with the target search cluster.
4. The method according to claim 2, characterized in that The receiving of the business processing request input through the front-end interface includes: Using the data analysis service to receive the business processing request input through the front-end interface; The displaying of the business processing result through the front-end interface includes: The data analysis service is used to display the business processing results on the front-end interface.
5. The method according to claim 1, characterized in that The service processing request is a cluster management request or a data query request.
6. The method according to claim 2, characterized in that The adopting the data analysis service, obtaining a request identifier, and adding the request identifier to the business processing request to generate a new business processing request includes: Using the data analysis service, encapsulating the business processing request and attribute information, and sending the encapsulated information to the proxy service; Using the proxy service, generating the request identifier according to the encapsulated information; The data analysis service is used to obtain the request identifier sent by the proxy service, and then the request identifier is added to the business processing request to generate a new business processing request.
7. The method according to claim 6, characterized in that The adopting of the proxy service to generate the request identifier according to the encapsulated information includes: The proxy service is used to parse the encapsulated information to obtain the attribute information; The proxy service is used to generate the request identifier according to the attribute information.
8. The method according to claim 6, characterized in that The attribute information includes: identification information of the business processing request, and version information of the data analysis service; The identification information of the business processing request includes: number information of the business processing request, and / or time information of the business processing request.
9. A business processing system, characterized in that: The business processing system includes: a management server and multiple search clusters, wherein the management server is communicatively connected to the multiple search clusters, wherein the management server is used to execute the steps of the business processing method according to any one of claims 1 to 8.
10. A service processing device, characterized in that: Applied to a management server, the management server is communicatively connected to a plurality of search clusters, the business processing device comprises: a login module, an authentication module, a receiving module, a response module, a sending module, a result receiving module, and a display module; The login module is used to receive a login request for a data analysis service input through a front-end interface, wherein the login request includes: an identifier of the data analysis service and user information; The authentication module is used to perform authentication according to the identifier of the data analysis service and the user information; The receiving module is used to receive a business processing request input through the front-end interface if the authentication is passed, and the business processing request includes: a search cluster identifier, and the target search cluster is one or more of the multiple search clusters; The response module is used to respond to the business processing request and establish a communication connection with the target search cluster corresponding to the search cluster identifier; The sending module is used to send the business processing request to the target search cluster, so that the target search cluster performs a business processing operation based on the business processing request to obtain a business processing result; The result receiving module is used to receive the business processing result returned by the target search cluster; The display module is used to display the business processing results through the front-end interface.
11. A management server, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the management server is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to perform the steps of the business processing method as described in any one of claims 1 to 8.
12. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the business processing method according to any one of claims 1 to 8 are executed.
