Remote procedure call service startup method and device, server, and storage medium
By establishing and registering multiple remote procedure call service instances on the target server, the problem of low remote procedure call service startup efficiency in the existing technology is solved, and efficient service startup and user experience improvement are achieved.
Patent Information
- Application Number
- CN202011349677.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-26
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-11-26
AI Technical Summary
The existing remote procedure call framework can only start one process at startup, which cannot meet the growing demand for remote procedure call services, resulting in longer user request times and poor user experience.
By obtaining the identification and startup configuration parameters of the remote procedure call service, establish an instance of the remote procedure call service on the target server based on these information, and register the service information in the service registration center to realize the simultaneous startup of multiple remote procedure call services.
The startup efficiency of the remote procedure call service is significantly improved, and multiple remote procedure call services can be started simultaneously to meet the growing demand and improve the user experience.
Smart Images

Figure CN112463408B
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of microservice management, and in particular to a method and device for starting a remote procedure call service, a server, and a storage medium. Background Art
[0002] Distributed systems can execute applications (or tasks) on independent servers or computers, making more reasonable use of computing resources and improving network efficiency. However, in actual applications, different applications (or tasks) may call each other. For example, an application deployed on server A needs to call functions / data in an application deployed on server B.
[0003] Currently, server A uses remote procedure call (RPC) service, so that server A can call the application in server B just like calling a local application. However, the existing remote procedure call framework for providing remote procedure call service can only start one remote procedure call service when starting a process, which cannot meet the growing demand for remote procedure call service, making it take a long time for users to request remote procedure call service and poor user experience. Summary of the invention
[0004] The present disclosure relates to a method and device for starting a remote procedure call service, a server, and a storage medium, which can improve the startup efficiency of a remote procedure call server.
[0005] To achieve the above objectives, the embodiments of the present disclosure adopt the following technical solutions:
[0006] In a first aspect, a method for starting a remote procedure call service is provided, including: obtaining an identifier of at least one remote procedure call service and startup configuration parameters of the remote procedure call service; the startup configuration parameters are used to support the operation of the remote procedure call service; starting the remote procedure call service according to the identifier of the remote procedure call service and the startup configuration parameters; and establishing an instance of the remote procedure call service on at least one target server. Optionally, before obtaining the identifier of at least one remote procedure call service and the startup configuration parameters of the remote procedure call service, the method also includes: obtaining environment parameters corresponding to the remote procedure call service; the environment parameters include at least the following sub-parameters: log path, tracking point parameters, and reporting parameters; the tracking point parameters are used to indicate whether the tracking point agent capability is enabled; the reporting parameters are used to indicate whether the status information of the remote procedure call service is reported; and the environment parameters of the remote procedure call service are run to make the environment parameters of the remote procedure call service effective.
[0007] Optionally, obtaining environment parameters of a remote procedure call service includes: receiving an environment configuration instruction; the environment configuration instruction carries any one or more of the sub-parameters in the environment parameters corresponding to the remote procedure call service; and setting the sub-parameters in the environment parameters corresponding to the remote procedure call service that do not exist in the environment configuration instruction to default values.
[0008] Optionally, obtaining the startup configuration parameters includes: receiving a command line prompt; including in the command line prompt any one or more of the sub-parameters in the startup configuration parameters; and setting the sub-parameters in the startup configuration parameters that do not exist in the command line prompt to default values.
[0009] Optionally, obtaining the startup configuration parameters includes: receiving a programming instruction through a preset application program interface; including in the programming instruction any one or more of the sub-parameters in the startup configuration parameters; and setting the sub-parameters in the startup configuration parameters that do not exist in the programming instruction to default values.
[0010] Optionally, establishing an instance of a remote procedure call service on at least one target server includes: receiving an instantiation instruction; the instantiation instruction is used to instruct to establish an instance of a remote procedure call service on at least one target server; the instantiation instruction carries at least: a target weight for each target server and a preset time length corresponding to each target server; the weight is used to indicate the target server's ability to carry remote procedure call service requests; establishing an instance of the remote procedure call service on the target server, and setting the weight of the target server to an initial weight; using a preset weight climbing mechanism within the preset time length corresponding to the target server to increase the initial weight to the target weight corresponding to the target server.
[0011] Optionally, after establishing an instance of the remote procedure call service on at least one target server, it also includes: registering service registration information corresponding to the remote procedure call service in a service registration center; the service registration information includes: the identifier of the remote procedure call service, and the network interconnection protocol address of the target server where the instance of the remote procedure call service is located, and the port number occupied by the remote procedure call service.
[0012] Optionally, after registering the service registration information corresponding to the remote procedure call service in the service registration center, it also includes: receiving a grouping instruction; dividing all remote procedure call services into a preset number of groups according to the grouping instruction, and storing the grouping results in the service registration center.
[0013] Optionally, before establishing an instance of a remote procedure call service on at least one target server, it also includes: receiving a shutdown customization instruction carrying customized parameters; the shutdown customization instruction is used to instruct the start of a preset hook program; the preset hook program is used to enable the application in which it is located to stop receiving access requests after receiving the stop instruction, and stop the application after processing the received access requests; loading the preset hook program in the remote procedure call service according to the customized parameters.
[0014] In a second aspect, a remote procedure call service startup device is provided, comprising: an acquisition module, a startup module and an instance module. The acquisition module is configured to acquire at least one remote procedure call service identifier and startup configuration parameters of the remote procedure call service; the startup configuration parameters are used to support the operation of the remote procedure call service; the startup module is configured to start the remote procedure call service according to the remote procedure call service identifier and startup configuration parameters acquired by the acquisition module; and the instance module is configured to establish an instance of the remote procedure call service started by the startup module on at least one target server.
[0015] Optionally, it also includes an environment module; the acquisition module is also configured to obtain the environment parameters corresponding to the remote procedure call service before obtaining at least one remote procedure call service identifier and the startup configuration parameters of the remote procedure call service; the environment parameters include at least the following sub-parameters: log path, tracking point parameters, and reporting parameters; the tracking point parameters are used to indicate whether the tracking point agent capability is enabled; the reporting parameters are used to indicate whether the status information of the remote procedure call service is reported; the environment module is configured to run the environment parameters of the remote procedure call service obtained by the acquisition module to make the environment parameters of the remote procedure call service effective.
[0016] Optionally, the acquisition module is specifically configured to: receive an environment configuration instruction; the environment configuration instruction carries any one or more of the sub-parameters in the environment parameters corresponding to the remote procedure call service; and set the sub-parameters in the environment parameters corresponding to the remote procedure call service that do not exist in the environment configuration instruction to default values.
[0017] Optionally, the acquisition module is specifically configured to: receive a command line prompt; the command line prompt includes any one or more of the sub-parameters in the startup configuration parameters; and set the sub-parameters in the startup configuration parameters that do not exist in the command line prompt to default values.
[0018] Optionally, the acquisition module is specifically configured to: receive programming instructions through a preset application program interface; the programming instructions include any one or more of the sub-parameters in the startup configuration parameters; and set the sub-parameters in the startup configuration parameters that do not exist in the programming instructions to default values.
[0019] Optionally, the instance module is specifically configured to: receive an instantiation instruction; the instantiation instruction is used to instruct the establishment of an instance of the remote procedure call service started by the startup module on at least one target server; the instantiation instruction carries at least: a target weight for each target server and a preset time length corresponding to each target server; the weight is used to indicate the target server's ability to carry remote procedure call service requests; establish an instance of the remote procedure call service on the target server, and set the weight of the target server to an initial weight; and use a preset weight climbing mechanism within the preset time length corresponding to the target server to increase the initial weight to the target weight corresponding to the target server.
[0020] Optionally, it also includes a registration module; the registration module is configured to register the service registration information corresponding to the remote procedure call service started by the startup module in the service registration center; the service registration information includes: the identifier of the remote procedure call service, and the network interconnection protocol address of the target server where the instance of the remote procedure call service is located and the port number occupied by the remote procedure call service.
[0021] Optionally, the registration module is further configured to: receive a grouping instruction; divide all remote procedure call services started by the start module into a preset number of groups according to the grouping instruction, and store the grouping results in the service registration center.
[0022] Optionally, before the instance module establishes an instance of the remote procedure call service started by the startup module on at least one target server, the startup module is also configured to: receive a shutdown customization instruction carrying customized parameters; the shutdown customization instruction is used to instruct the start of a preset hook program; the preset hook program is used to enable the application in which it is located to stop receiving access requests after receiving the stop instruction, and stop the application after processing the received access requests; load the preset hook program in the remote procedure call service according to the customized parameters.
[0023] In a third aspect, the present disclosure provides a server comprising a processor and a memory for storing processor executable instructions; wherein the processor is configured to execute instructions to implement a method for starting a remote procedure call service as provided in the first aspect and any possible implementation manner thereof.
[0024] In a fourth aspect, the present disclosure provides a computer-readable storage medium having instructions stored thereon. When the instructions in the computer-readable storage medium are executed by a processor of a server, the server executes a method for starting a remote procedure call service as provided in the first aspect and any possible implementation manner thereof.
[0025] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, comprising one or more instructions, which can be executed on a computer so that the computer executes a method for starting a remote procedure call service as in the first aspect and any possible implementation manner thereof.
[0026] In the sixth aspect, the embodiment of the present disclosure also provides a remote procedure call service startup system, including: an environment preparation module, a service startup module, a service registration module and a shutdown module. Among them, the environment preparation module is configured to execute the acquisition of the environment parameters corresponding to the remote procedure call service, and run the environment parameters to make the environment parameters of the remote procedure call service effective; the service startup module is configured to execute the acquisition of at least one remote procedure call service identifier and the startup configuration parameters of the remote procedure call service, and start the remote procedure call service according to the identifier and startup configuration parameters of the remote procedure call service; the startup configuration parameters are used to support the operation of the remote procedure call service; the service registration module is configured to execute the establishment of an instance of the remote procedure call service started by the service startup module on at least one target server, and register the service registration information corresponding to the remote procedure call service started by the service startup module in the service registration center; the shutdown module is configured to execute the reception of the shutdown customization instruction carrying the customized parameters, and load the preset hook program in the remote procedure call service started by the service startup module according to the customized parameters.
[0027] Optionally, the environment parameters include at least the following sub-parameters: log path, tracking parameters, and reporting parameters; the tracking parameters are used to indicate whether the tracking agent capability is enabled; the reporting parameters are used to indicate whether the status information of the remote procedure call service is reported.
[0028] Optionally, the service registration information includes an identifier of the remote procedure call service, and a network interconnection protocol address of a target server where an instance of the remote procedure call service is located and a port number occupied by the remote procedure call service.
[0029] Optionally, the shutdown custom instruction is used to instruct to start a preset hook program; the preset hook program is used to make the application program in which it is located stop receiving access requests after receiving the stop instruction, and stop the application program after processing the received access requests.
[0030] It can be understood that in the technical solution provided by the present disclosure, the identifier of the remote procedure call service that needs to be started and the corresponding startup configuration parameters are first obtained, and then the remote procedure call service corresponding to the identifier can be started according to the identifier of the remote procedure call service and the corresponding startup configuration parameters, and finally the started remote procedure call service is instantiated on at least one target server, waiting for subsequent user calls. Because the technical solution provided by the embodiment of the present disclosure, when starting the remote procedure call service, the number of remote procedure call services started is the number of remote procedure call server identifiers received, so that the effect of starting multiple remote procedure call services at the same time by a startup process can be achieved. Compared with the situation in the prior art where a process only starts one remote procedure call service, the technical solution provided by the embodiment of the present disclosure can significantly improve the startup efficiency of the remote procedure call service.
[0031] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A schematic diagram of an implementation environment provided for an embodiment of the present disclosure;
[0033] Figure 2 A schematic diagram of a method for starting a remote procedure call service provided in an embodiment of the present disclosure Figure 1 ;
[0034] Figure 3 A schematic diagram of a method for starting a remote procedure call service provided in an embodiment of the present disclosure Figure 2 ;
[0035] Figure 4 A schematic diagram of a method for starting a remote procedure call service provided in an embodiment of the present disclosure Figure 3 ;
[0036] Figure 5 A schematic diagram of a method for starting a remote procedure call service provided in an embodiment of the present disclosure Figure 4 ;
[0037] Figure 6 A schematic diagram of a method for starting a remote procedure call service provided in an embodiment of the present disclosure Figure 5 ;
[0038] Figure 7 A schematic diagram of a method for starting a remote procedure call service provided in an embodiment of the present disclosure Figure 6 ;
[0039] Figure 8 A schematic diagram of a method for starting a remote procedure call service provided in an embodiment of the present disclosure Figure 7 ;
[0040] Fig. 9 A schematic diagram of a method for starting a remote procedure call service provided in an embodiment of the present disclosure Figure 8 ;
[0041] Fig.10 A schematic diagram of a method for starting a remote procedure call service provided in an embodiment of the present disclosure Figure 9 ;
[0042] Fig.11 A schematic diagram of the structure of a remote procedure call service startup device provided by an embodiment of the present disclosure;
[0043] Fig.12 A schematic diagram of the structure of a remote procedure call service startup system provided by an embodiment of the present disclosure;
[0044] Fig.13 A schematic diagram of the structure of a server provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0045] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0046] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0047] In addition, in the description of the embodiments of the present disclosure, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present disclosure, "multiple" means two or more than two.
[0048] First, the technical terms involved in this disclosure are introduced:
[0049] Remote procedure call (RPC) service: Simply put, it means that one node requests a service provided by another node.
[0050] gRPC: One of the commonly used remote procedure calls, it is open source software released by Google, based on the Hypertext Transfer Protocol (HTTP) 2.0 protocol, and supports many common programming languages.
[0051] Instantiation: In object-oriented programming, the process of creating an object using a class is called instantiation. It is the process of making an abstract concept class concrete to the physical object of that class.
[0052] Command line (command line prompt): A working prompt that prompts for command input. The command prompt varies in different operating system environments. In the Windows (Microsoft Windows operating system) environment, the command line program is cmd.exe, which is a 32-bit command line program. Microsoft Windows system is based on the command interpreter on Windows, similar to Microsoft's Disk Operating System (DOS) operating system.
[0053] Thread: It is the smallest unit that the operating system can schedule operations on. It is included in the process and is the actual operation unit in the process.
[0054] Keep-alive mechanism: In network communication programs that require long connections, after a communication connection is established, if no data is transmitted within a certain period of time, it is necessary to determine whether the other party is online or whether the communication connection exists to prevent the connection from being interrupted for no reason.
[0055] Graceful shutdown: After sending a stop command to the application process, it can ensure that the business operations being executed are not affected. After receiving the stop command, the application should stop receiving access requests and wait for the received requests to be processed and returned successfully. Only then can the application be truly stopped.
[0056] Hook program: It is a platform of Windows message processing mechanism. Applications can set subroutines on it to monitor certain messages of specified windows, and the monitored windows can be created by other processes. When the message arrives, it is processed before the target window processing function. The hook mechanism allows applications to intercept and process Windows messages or specific events.
[0057] Direct mode: The mode used when sending messages to only one node.
[0058] Reflection capability: refers to the ability of a program to access, detect, and modify its own state or behavior, and to adjust or modify the state and related semantics of the behavior described by the application based on the state and results of its own behavior.
[0059] refer to Figure 1 As shown, it is a schematic diagram of an implementation environment that may be involved in the technical solution provided by the embodiment of the present disclosure. The implementation environment may include a development client 01, a server 02 and a service registration center 03. The development client 01 communicates with the server 02 through a wired communication method or a wireless communication method, and the server 02 communicates with the service registration center 03 through a wired communication method or a wireless communication method.
[0060] Exemplarily, the development client 01 in the disclosed embodiment can be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, as well as a cellular phone, a personal digital assistant (PDA), an augmented reality (AR)\virtual reality (VR) device, etc., which can be used for project development. The disclosed embodiment does not impose any special restrictions on the specific form of the development client.
[0061] Exemplarily, the server 02 in the present disclosure may be a single server, a server cluster consisting of multiple servers, or a cloud computing service center, which is not limited in the present disclosure. The server 02 is mainly used to receive some customized commands (including some related parameters for starting the remote procedure call service) sent by the development client 01 to start the corresponding remote procedure call service, and at the same time instantiate and register the started remote procedure call server for the user (user terminal) to call it.
[0062] Exemplarily, the service registration center in the present disclosure can be a cloud computing service center or a server cluster composed of multiple servers. The service registration center in the present disclosure is mainly used to store relevant information of the remote procedure call service sent by server 02, complete the registration of the remote procedure call service, and can be viewed by users in need.
[0063] The current remote procedure call framework can only start one remote procedure call server each time a process is started for the remote procedure call service. When multiple remote procedure call services need to be started, this method results in low startup efficiency of the remote procedure call service and cannot meet the growing demand for remote procedure call services.
[0064] In response to the above problems, the present disclosure provides a method for starting a remote procedure call service, which can improve the startup efficiency of the remote procedure call service. The specific execution of this method can be the above-mentioned server or development client, depending on actual needs. When the execution subject is the development client, the development client itself should have the performance of a server or be a server itself. In the subsequent description of the embodiments of the present disclosure, "development client" refers to the terminal used by the developer, and "server" can be a terminal used by the developer, or a server that communicates and interacts with the developer through the terminal used by itself, depending on the situation.
[0065] Reference Figure 2 The figure is a flow chart of a method for starting a remote procedure call service provided by an embodiment of the present disclosure. The method is executed by a device for starting a remote procedure call service, and the device for starting a remote procedure call service can be Figure 1 The server or a part thereof shown in . The method may include 201-203.
[0066] 201. Obtain at least one remote procedure call service identifier and startup configuration parameters of the remote procedure call service.
[0067] Among them, the startup configuration parameters are used to support the operation of the remote procedure call service; exemplary, the startup configuration parameters may include any one or more of the following sub-parameters: number of threads, queue size, port number, warm-up parameters, service registration information, encryption parameters, reflection parameters, mode parameters and keep-alive time of the keep-alive mechanism; encryption parameters are used to indicate whether to enable data encryption transmission mode; reflection parameters are used to indicate whether the remote procedure call reflection capability is enabled; mode parameters are used to indicate whether to enable direct mode. The service registration information may include the name of the remote procedure call service. The queue is used to limit the number of remote procedure call service requests corresponding to the remote procedure call service and queue them for processing.
[0068] It should be noted that, because the process of establishing a communication connection between the user and the server where the remote procedure call service is located through his own user terminal is relatively time-consuming, and after the connection is established, there will definitely be a period of time when no remote procedure call service request (for requesting the use of the remote procedure call service) is sent, and after this period of time, a remote procedure call service request may be sent again. Therefore, in order to save the time of repeatedly establishing a communication connection and ensure that the connection is valid, in the present disclosure, the keep-alive mechanism can be turned on by default, and the validity of the connection needs to be checked at regular intervals; in practice, if the benefits brought by the keep-alive mechanism are not needed, the user can also turn off the keep-alive mechanism. The present disclosure does not make specific restrictions on this.
[0069] 202. Start the remote procedure call service according to the identifier and startup configuration parameters of the remote procedure call service.
[0070] The identifier of the remote procedure call service is an identifier uniquely corresponding to the remote procedure call service.
[0071] 203. Establish an instance of the remote procedure call service on at least one target server.
[0072] The at least one target server here may include the server that executes steps 201-203, or may not include the server. The purpose of instantiating the remote procedure call service on at least one target server is to prevent the remote procedure call service from being unable to be used normally when the remote procedure call service is instantiated on only one server and the server fails.
[0073] Based on the above scheme, it can be seen that because of the technical scheme provided by the embodiment of the present disclosure, when starting the remote procedure call service, as many remote procedure call services are started as the identifications of the remote procedure call servers are received, thereby achieving the effect of starting multiple remote procedure call services at the same time by one startup process. Compared with the situation in the prior art where a process only starts one remote procedure call service, the technical scheme provided by the embodiment of the present disclosure can significantly improve the startup efficiency of the remote procedure call service.
[0074] Optional, combined Figure 2 , refer to Figure 3 As shown, when the remote procedure call service is started, the relevant environment of the server where it is located needs to be initialized and configured to ensure the smooth start of the remote procedure call service. Therefore, the embodiment of the present disclosure further includes S1 and S2 before step 201:
[0075] S1. Obtain the environment parameters corresponding to the remote procedure call service.
[0076] Exemplarily, the environment parameters include at least the following sub-parameters: log path, tracking parameters, and reporting parameters; the tracking parameters are used to indicate whether the tracking agent capability is enabled; the reporting parameters are used to indicate whether the status information of the remote procedure call service is reported; the environment parameters of the remote procedure call service are run to make the environment parameters of the remote procedure call service effective.
[0077] Among them, after the tracking agent capability is enabled, tracking can be performed in the remote procedure call service, so that the tracking data can be obtained later for tracking analysis, which can analyze the relevant status and operation status of the remote procedure call service.
[0078] S2. Run the environment parameters of the remote procedure call service to make the environment parameters of the remote procedure call service effective.
[0079] In a possible implementation, the present disclosure can receive the user's customized requirements when acquiring the environment parameters corresponding to the remote procedure call service to meet the user's customized requirements. Figure 3 , refer to Figure 4 As shown, S1 may include S11 and S12:
[0080] S11. Receive environment configuration instructions.
[0081] The environment configuration instruction carries any one or more of the sub-parameters in the environment parameters corresponding to the remote procedure call service.
[0082] S12. Set the sub-parameters in the environment parameters corresponding to the remote procedure call service that do not exist in the environment configuration instruction to default values.
[0083] In addition, in the embodiment of the present disclosure, the environment parameters corresponding to the remote procedure call service can be all user instructions, that is, the environment configuration instruction carries all sub-parameters of the environment parameters corresponding to the remote procedure call service; the environment parameters corresponding to the remote procedure call service can also be all default values, that is, the environment configuration instruction does not carry any sub-parameter of the environment parameters corresponding to the remote procedure call service, and only exists as an instruction to instruct the server that starts the remote procedure call service to execute step S2. This disclosure does not make specific restrictions on this.
[0084] In a possible implementation, the server obtains the startup configuration parameters of the remote procedure call service by sending the command line (command line prompt) to the server that starts the remote procedure call service. Figure 2 , refer to Figure 5 As shown, step 201 includes steps 2011A-2013A:
[0085] 2011A. Obtain an identifier of at least one remote procedure call service.
[0086] 2012A. Receive the command line prompt.
[0087] The command line prompt includes any one or more of the sub-parameters in the startup configuration parameters.
[0088] 2013A. Set the sub-parameters in the startup configuration parameters that do not exist in the command line prompt to default values.
[0089] In addition, in the embodiment of the present disclosure, the startup configuration parameters of the remote procedure call service can be all determined by user instructions, that is, the command line prompt includes all sub-parameters in the startup configuration parameters of the remote procedure call service; the startup configuration parameters of the remote procedure call service can also be all default values, that is, there is no step 2012A. This disclosure does not make specific restrictions on this.
[0090] In another possible implementation, the server obtains the startup configuration parameters of the remote procedure call service by sending them to the server that starts the remote procedure call service in a programmatic manner by the user. Figure 2 , refer to Figure 6 As shown, step 201 includes 2011B-2013B:
[0091] 2011B. Obtain an identifier of at least one remote procedure call service.
[0092] 2012B. Receive programming instructions through a preset application programming interface (API).
[0093] The programming instruction includes any one or more of the sub-parameters in the startup configuration parameters.
[0094] 2013B. Set the sub-parameters in the startup configuration parameters that do not exist in the programming instructions to default values.
[0095] In addition, in the embodiment of the present disclosure, the startup configuration parameters of the remote procedure call service can be all determined by user instructions, that is, the programming instructions include all sub-parameters in the startup configuration parameters of the remote procedure call service; the startup configuration parameters of the remote procedure call service can also be all default values, that is, there is no step 2012B. This disclosure does not make specific restrictions on this.
[0096] It should be noted that Figure 5 and Figure 6 The difference between the two methods of obtaining startup configuration parameters is that: Figure 5 The command line method shown in the figure has a relatively fixed way of configuring parameters, and the final assignment of parameters is also subject to certain restrictions, but it can obtain the startup configuration parameters more quickly. Figure 6 The programming method shown in requires the user to write code, and the overall process is slow, but the startup configuration parameters of the remote procedure call service can be set more flexibly and freely.
[0097] In one possible way, combining Figure 2 , refer to Figure 7 As shown, step 203 may include 2031-2033:
[0098] 2031. Receive an instantiation instruction.
[0099] Among them, the instantiation instruction is used to instruct the establishment of an instance of the remote procedure call service on at least one target server; the instantiation instruction carries at least: the target weight of each target server and the preset time length corresponding to each target server; the weight is used to indicate the ability of the target server to carry the remote procedure call service request.
[0100] 2032. Establish an instance of the remote procedure call service on the target server, and set the weight of the target server to the initial weight.
[0101] 2033. Use a preset weight climbing mechanism within a preset time length corresponding to the target server to increase the initial weight to the target weight corresponding to the target server.
[0102] In one achievable method, taking the preset time length corresponding to the target server as 20 minutes, the target weight corresponding to the target server as 100, and the initial weight as 10 as an example, the preset weight climbing mechanism can be to increase the weight of the target server by 22.5% of its target weight every five minutes; the preset weight climbing mechanism can also be to first increase the weight of the target server by 30% of its target weight every five minutes, then increase the weight of the target server by 40% of its target weight every 10 minutes, and finally increase the weight of the target server by 20% of its target weight every five minutes. How many sections the preset time length is divided into and how much weight value is increased in each period are determined by actual needs, as long as the weight value of the second server reaches the target weight after the preset time length.
[0103] Based on the above scheme, after the remote procedure call service is started, it will be instantiated in multiple target servers, and users can choose any target server to access, ensuring the reliability of users' use of the remote procedure call service. Furthermore, because of the differences in computing resources of different target servers or the differences in network conditions in different server regions, different target weights are set for different target servers, so that all remote procedure call service requests can be reasonably allocated to different target servers, improving the resource utilization of the target servers. Moreover, because the remote procedure call service requests are dispersed, each target server will not carry many remote procedure call service requests, which can also increase the probability of remote procedure call service requests being responded to, so that most users can use the remote procedure call service.
[0104] Optionally, for ease of management, all users should send requests through the same device or platform when requesting remote procedure call services, so Figure 2 , refer to Figure 8 As shown, in the embodiment provided by the present disclosure, after step 203, step 204 is also included:
[0105] 204. Register the service registration information corresponding to the remote procedure call service in the service registration center.
[0106] The service registration information includes the identifier of the remote procedure call service, the Internet protocol (IP) address of the target server where the instance of the remote procedure call service is located, and the port number occupied by the remote procedure call service.
[0107] Based on the above scheme, when a user needs to use a remote procedure call service, he can send a remote procedure call service request to the service registration center through his own user terminal. The service registration center can forward the remote procedure call service request sent by the user to the appropriate target server based on the target server where the instance of the remote procedure call service required by the user is located and the area where the user is located, combined with the network interconnection protocol address of each target server and the port number occupied by the remote procedure call service of each target server. Because the remote procedure call service request needs to pass through the service registration center, the management personnel only need to rely on the data of the service registration center to know the specific situation of different target servers and different remote procedure call services, so as to implement corresponding management measures.
[0108] In order to provide users with a more flexible combination experience, optional, combined Figure 8 , refer to Fig. 9 As shown, in the embodiment provided by the present disclosure, step 204 further includes steps 205 and 206:
[0109] 205. Receive grouping instructions.
[0110] 206. Divide all remote procedure call services into a preset number of groups according to the grouping instruction, and store the grouping results in a service registration center.
[0111] Based on the above scheme, after different remote procedure call services are divided into different groups, the permissions of different users to access different remote procedure call services can be controlled based on parameters such as user permissions. This allows the providers of remote procedure call services to more reasonably and freely allocate and decide on the users who can use the remote procedure call services, and also allows the users of remote procedure call services to more freely determine the remote procedure call services they need to use.
[0112] To ensure that users have a better experience using the remote procedure call service, optionally, combine Figure 2 , refer to Fig.10 As shown, in the embodiment provided by the present disclosure, before step 203, X1 and X2 are also included:
[0113] X1. Receive a shutdown customized instruction with customized parameters.
[0114] The shutdown custom instruction is used to instruct to start a preset hook program; the preset hook program is used to make the application program where it is located stop receiving access requests after receiving the stop instruction, and stop the application program after processing the received access requests.
[0115] X2. Load the preset hook program in the remote procedure call service according to the customized parameters.
[0116] Based on the above solution, after loading the graceful shutdown hook program in the remote procedure call service, if a remote procedure call service needs to be updated or stopped, the user who is using the remote procedure call service can be informed that the remote procedure call service needs to be updated or stopped, but the current use will be guaranteed to end. In this way, the shutdown of the remote procedure call service is more graceful, improving the user experience.
[0117] In the technical solution provided by the embodiment of the present disclosure, the identifier of the remote procedure call service to be started and the corresponding startup configuration parameters are first obtained, and then the remote procedure call service corresponding to the identifier can be started according to the identifier of the remote procedure call service and the corresponding startup configuration parameters, and finally the started remote procedure call service is instantiated on at least one target server, waiting for subsequent user calls. Because of the technical solution provided by the embodiment of the present disclosure, when starting the remote procedure call service, the number of remote procedure call services started is the same as the number of remote procedure call server identifiers received, so that the effect of starting multiple remote procedure call services at the same time by a startup process can be achieved. Compared with the situation in the prior art where a process only starts one remote procedure call service, the technical solution provided by the embodiment of the present disclosure can significantly improve the startup efficiency of the remote procedure call service.
[0118] The above mainly introduces the solution provided by the embodiment of the present disclosure from the perspective of the server. It is understandable that the server can implement the above functions respectively through the startup device of the remote procedure call service configured therein. In order to achieve the above functions, the startup device of the remote procedure call service includes a hardware structure and / or software module corresponding to the execution of each function, and these hardware structures and / or software modules corresponding to the execution of each function can constitute a terminal. It should be easy for those skilled in the art to realize that, in combination with the algorithm steps of each example described in the embodiment disclosed in this article, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.
[0119] The embodiments of the present disclosure may divide the functional modules of the server according to the above method examples. For example, the server may include a startup device for a remote procedure call service. The startup device for the remote procedure call service may divide each functional module corresponding to each function, or may integrate two or more functions into one processing module. The above integrated modules may be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiments of the present disclosure is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0120] In the case of dividing each functional module into corresponding functional modules, Fig.11 Shows the application Figure 1 A possible structural diagram of a remote procedure call service startup device 03 of a server 02 is shown in FIG. , and the remote procedure call service startup device 03 includes: an acquisition module 31 , a startup module 32 and an instance module 33 .
[0121] The acquisition module 31 is configured to obtain the identifier of at least one remote procedure call service and the startup configuration parameters of the remote procedure call service; the startup configuration parameters are used to support the operation of the remote procedure call service; the startup module 32 is configured to start the remote procedure call service according to the identifier and startup configuration parameters of the remote procedure call service obtained by the acquisition module 31; the instance module 33 is configured to establish an instance of the remote procedure call service started by the startup module 32 on at least one target server.
[0122] Optionally, the starting device 03 also includes an environment module 34; the acquisition module 31 is also configured to obtain the environment parameters corresponding to the remote procedure call service before obtaining the identifier of at least one remote procedure call service and the startup configuration parameters of the remote procedure call service; the environment parameters include at least the following sub-parameters: log path, tracking point parameters, and reporting parameters; the tracking point parameters are used to indicate whether the tracking point agent capability is enabled; the reporting parameters are used to indicate whether the status information of the remote procedure call service is reported; the environment module 34 is configured to run the environment parameters of the remote procedure call service obtained by the acquisition module 31 to make the environment parameters of the remote procedure call service effective.
[0123] Optionally, the acquisition module 31 is specifically configured to: receive an environment configuration instruction; the environment configuration instruction carries any one or more of the sub-parameters in the environment parameters corresponding to the remote procedure call service; and set the sub-parameters in the environment parameters corresponding to the remote procedure call service that do not exist in the environment configuration instruction to default values.
[0124] Optionally, the acquisition module 31 is specifically configured to: receive a command line prompt; the command line prompt includes any one or more of the sub-parameters in the startup configuration parameters; and set the sub-parameters in the startup configuration parameters that do not exist in the command line prompt to default values.
[0125] Optionally, the acquisition module 31 is specifically configured to: receive programming instructions through a preset application program interface API; the programming instructions include any one or more of the sub-parameters in the startup configuration parameters; and set the sub-parameters in the startup configuration parameters that do not exist in the programming instructions to default values.
[0126] Optionally, the instance module 33 is specifically configured to: receive an instantiation instruction; the instantiation instruction is used to instruct to establish an instance of the remote procedure call service started by the startup module 32 on at least one target server; the instantiation instruction carries at least: a target weight for each target server and a preset time length corresponding to each target server; the weight is used to indicate the ability of the target server to carry remote procedure call service requests; establish an instance of the remote procedure call service on the target server, and set the weight of the target server to an initial weight; use a preset weight climbing mechanism within the preset time length corresponding to the target server to increase the initial weight to the target weight corresponding to the target server.
[0127] Optionally, the startup device 03 also includes a registration module 35; the registration module 35 is configured to register service registration information corresponding to the remote procedure call service started by the startup module 32 in the service registration center 03; the service registration information includes the identifier of the remote procedure call service, and the IP address of the target server where the instance of the remote procedure call service is located by the instance module 33 and the port number occupied by the remote procedure call service.
[0128] Further optionally, the registration module 34 is further configured to: receive a grouping instruction; group all remote procedure call services started by the start module 32 into a preset number of groups according to the grouping instruction, and store the grouping results in the service registration center 03.
[0129] Optionally, before the instance module 33 establishes an instance of the remote procedure call service started by the startup module 32 on at least one target server, the startup module 32 is also configured to: receive a shutdown customization instruction carrying customized parameters; the shutdown customization instruction is used to instruct the start of a preset hook program; the preset hook program is used to enable the application in which it is located to stop receiving access requests after receiving the stop instruction, and stop the application after processing the received access requests; and load the preset hook program in the remote procedure call service according to the customized parameters.
[0130] Regarding the remote procedure call service startup device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the remote procedure call service startup method in the above embodiment, and will not be elaborated here. The relevant beneficial effects can also refer to the relevant beneficial effects of the remote procedure call service startup method in the above embodiment, and will not be repeated here.
[0131] Reference Fig.12 As shown, the embodiment of the present disclosure also provides a remote procedure call service startup system 04, which includes: an environment preparation module 41, a service startup module 42, a service registration module 43 and a shutdown module 44. Among them, the environment preparation module 41 is configured to execute the acquisition of the environment parameters corresponding to the remote procedure call service, and run the environment parameters to make the environment parameters of the remote procedure call service effective; the service startup module 42 is configured to execute the acquisition of at least one remote procedure call service identifier and the startup configuration parameters of the remote procedure call service, and start the remote procedure call service according to the identifier and the startup configuration parameters of the remote procedure call service; the startup configuration parameters are used to support the operation of the remote procedure call service; the service registration module 43 is configured to execute the establishment of an instance of the remote procedure call service started by the service startup module 42 on at least one target server, and register the service registration information corresponding to the remote procedure call service started by the service startup module 42 in the service registration center 03; the shutdown module 44 is configured to execute the reception of the shutdown customization instruction carrying the customized parameters, and load the preset hook program in the remote procedure call service started by the service startup module 42 according to the customized parameters.
[0132] In the disclosed embodiment, the remote procedure call service startup system may be a server, in which case the above modules are specific devices in the server; the system may also be multiple servers, in which case the above modules may be separate servers.
[0133] Optionally, the environment parameters include at least the following sub-parameters: log path, tracking parameters, and reporting parameters; the tracking parameters are used to indicate whether the tracking agent capability is enabled; the reporting parameters are used to indicate whether the status information of the remote procedure call service is reported.
[0134] Optionally, the service registration information includes an identifier of the remote procedure call service, and a network interconnection protocol address of a target server where an instance of the remote procedure call service is located and a port number occupied by the remote procedure call service.
[0135] Optionally, the shutdown custom instruction is used to instruct to start a preset hook program; the preset hook program is used to make the application program in which it is located stop receiving access requests after receiving the stop instruction, and stop the application program after processing the received access requests.
[0136] Regarding the remote procedure call service startup system in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the remote procedure call service startup method in the above embodiment, and will not be elaborated in detail here. The relevant beneficial effects thereof can also refer to the relevant beneficial effects of the remote procedure call service startup method in the above embodiment, and will not be repeated here.
[0137] In the case of an integrated unit, Fig.13 According to an exemplary embodiment, Figure 1 A possible structural diagram of a server 02 is shown in FIG. 1 , and the server 02 may be the startup device 03 of the remote procedure call service. Fig.13 As shown, the server 02 includes a processor 71 and a memory 72. The memory 72 is used to store instructions executable by the processor 71, and the processor 71 can implement the functions of each module in the remote procedure call service startup device 03 in the above embodiment.
[0138] In a specific implementation, as an embodiment, the processor 71 (71-1 and 71-2) may include one or more CPUs, such as Fig.13 As an embodiment, the air conditioner control device may include a plurality of processors 71, such as Fig.13 The processor 71-1 and the processor 71-2 shown in . Each CPU in these processors 71 can be a single-core processor (Single-CPU) or a multi-core processor (Multi-CPU). The processor 71 here can refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions). The processor 501 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image s ignal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural-network processing unit (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors.
[0139] The memory 72 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a disk-readable storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 72 may exist independently and be connected to the processor 71 via a bus 73. The memory 72 may also be integrated with the processor 71.
[0140] The bus 73 may be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, or an extended industry standard architecture (EISA) bus. The bus 73 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.13 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0141] In addition, in order to facilitate information exchange between the server 02 and other devices (such as development clients), the server 02 includes a communication interface 74. The communication interface 74 uses any transceiver-like device for communicating with other devices or communication networks, such as control systems, radio access networks (RAN), wireless local area networks (WLAN), etc. The communication interface 74 may include a receiving unit to implement a receiving function, and a sending unit to implement a sending function.
[0142] Those skilled in the art will understand that Fig.13 The structure shown in the figure does not constitute a limitation on the server, and may include more or less components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0143] An embodiment of the present disclosure also provides a computer-readable storage medium having instructions stored thereon. When the instructions on the computer-readable storage medium are executed by a processor of a server, the server is enabled to execute the method for starting a remote procedure call service of an application on the server provided in the aforementioned embodiment.
[0144] The embodiment of the present disclosure also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the method for starting the remote procedure call service provided by the aforementioned embodiment.
[0145] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0146] In the several embodiments provided in the present application, 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 modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, 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.
[0147] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0148] In addition, each functional unit in each embodiment of the present application 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 software functional units.
[0149] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present disclosure is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks or optical disks.
[0150] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0151] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for starting a remote procedure call service, characterized in that: include: Obtaining at least one remote procedure call service identifier and startup configuration parameters of the remote procedure call service; The startup configuration parameters are used to support the operation of the remote procedure call service; Starting the remote procedure call service according to the identifier of the remote procedure call service and the startup configuration parameters; receiving an instantiation instruction; The instantiation instruction is used to instruct to establish an instance of the remote procedure call service on at least one target server; the instantiation instruction carries at least: a target weight of each of the target servers and a preset time length corresponding to each of the target servers; The weight is used to indicate the target server's ability to bear the remote procedure call service request; Establishing an instance of the remote procedure call service on the target server, and setting the weight of the target server to an initial weight; The initial weight is increased to the target weight corresponding to the target server using a preset weight climbing mechanism within a preset time length corresponding to the target server.
2. The startup method according to claim 1, characterized in that: Before obtaining at least one remote procedure call service identifier and the startup configuration parameters of the remote procedure call service, the following step is further included: Obtaining the environment parameters corresponding to the remote procedure call service; the environment parameters include at least the following sub-parameters: log path, tracking point parameters, and reporting parameters; the tracking point parameters are used to indicate whether the tracking point proxy capability is enabled; the reporting parameters are used to indicate whether the status information of the remote procedure call service is reported; The environment parameters of the remote procedure call service are run to make the environment parameters of the remote procedure call service effective.
3. The startup method according to claim 2, characterized in that: The obtaining of the environment parameters corresponding to the remote procedure call service includes: Receive an environment configuration instruction; the environment configuration instruction carries any one or more sub-parameters in the environment parameters corresponding to the remote procedure call service; The sub-parameters in the environment parameters corresponding to the remote procedure call service that do not exist in the environment configuration instruction are set as default values.
4. The startup method according to claim 1, characterized in that: Obtaining the startup configuration parameters includes: Receiving a command line prompt; the command line prompt includes any one or more of the sub-parameters in the startup configuration parameters; The sub-parameters in the startup configuration parameters that do not exist in the command line prompt are set as default values.
5. The startup method according to claim 1, characterized in that: Acquiring the startup configuration parameters includes: Receiving programming instructions through a preset application program interface; the programming instructions include any one or more of the sub-parameters in the startup configuration parameters; The sub-parameters in the startup configuration parameters that do not exist in the programming instructions are set to default values.
6. The startup method according to claim 1, characterized in that: After establishing an instance of the remote procedure call service on at least one target server, the method further includes: Register the service registration information corresponding to the remote procedure call service in the service registration center; the service registration information includes: the identifier of the remote procedure call service, and the network interconnection protocol address of the target server where the instance of the remote procedure call service is located and the port number occupied by the remote procedure call service.
7. The startup method according to claim 6, characterized in that: After registering the service registration information corresponding to the remote procedure call service in the service registration center, the method further includes: Receive a grouping instruction; divide all the remote procedure call services into a preset number of groups according to the grouping instruction, and store the grouping results in the service registration center.
8. The startup method according to claim 1, characterized in that: Before establishing an instance of the remote procedure call service on at least one target server, the method further includes: Receiving a shutdown customization instruction carrying customized parameters; the shutdown customization instruction is used to instruct to start a preset hook program; the preset hook program is used to make the application program in which it is located stop receiving access requests after receiving the stop instruction, and stop the application program after processing the received access requests; The preset hook program is loaded in the remote procedure call service according to the customized parameters.
9. A remote procedure call service startup device, characterized in that: include: An acquisition module, configured to acquire an identifier of at least one remote procedure call service and a startup configuration parameter of the remote procedure call service; The startup configuration parameters are used to support the operation of the remote procedure call service; a startup module, configured to start the remote procedure call service according to the identifier of the remote procedure call service and the startup configuration parameters acquired by the acquisition module; The instance module is specifically configured to: receive an instantiation instruction; the instantiation instruction is used to instruct to establish an instance of the remote procedure call service started by the startup module on at least one target server; the instantiation instruction carries at least: a target weight of each of the target servers and a preset time length corresponding to each of the target servers; The weight is used to indicate the target server's ability to bear the remote procedure call service request; Establishing an instance of the remote procedure call service on the target server, and setting the weight of the target server to an initial weight; The initial weight is increased to the target weight corresponding to the target server using a preset weight climbing mechanism within a preset time length corresponding to the target server.
10. The starting device according to claim 9, characterized in that: Also includes environment modules; The acquisition module is further configured to acquire the environment parameters corresponding to the remote procedure call service before acquiring the identifier of at least one remote procedure call service and the startup configuration parameters of the remote procedure call service; the environment parameters include at least the following sub-parameters: log path, tracking point parameters, and reporting parameters; the tracking point parameters are used to indicate whether the tracking point proxy capability is enabled; the reporting parameters are used to indicate whether the status information of the remote procedure call service is reported; The environment module is configured to run the environment parameters of the remote procedure call service acquired by the acquisition module to make the environment parameters of the remote procedure call service effective.
11. The starting device according to claim 10, characterized in that: The acquisition module is specifically configured as follows: Receive an environment configuration instruction; the environment configuration instruction carries any one or more sub-parameters in the environment parameters corresponding to the remote procedure call service; The sub-parameters in the environment parameters corresponding to the remote procedure call service that do not exist in the environment configuration instruction are set as default values.
12. The starting device according to claim 9, characterized in that: The acquisition module is specifically configured as follows: Receiving a command line prompt; the command line prompt includes any one or more of the sub-parameters in the startup configuration parameters; The sub-parameters in the startup configuration parameters that do not exist in the command line prompt are set as default values.
13. The starting device according to claim 9, characterized in that: The acquisition module is specifically configured as follows: Receiving programming instructions through a preset application program interface; the programming instructions include any one or more of the sub-parameters in the startup configuration parameters; The sub-parameters in the startup configuration parameters that do not exist in the programming instructions are set to default values.
14. The starting device according to claim 9, characterized in that: Also includes a registration module; The registration module is configured to register service registration information corresponding to the remote procedure call service started by the starting module in a service registration center; The service registration information includes: the identifier of the remote procedure call service, and the network interconnection protocol address of the target server where the instance of the remote procedure call service is located and the port number occupied by the remote procedure call service.
15. The starting device according to claim 14, characterized in that: The registration module is further configured to: Receive grouping instructions; All the remote procedure call services started by the start module are divided into a preset number of groups according to the grouping instruction, and the grouping results are stored in the service registration center.
16. The starting device according to claim 9, characterized in that: Before the instance module establishes an instance of the remote procedure call service started by the start module on at least one target server, the start module is further configured to: Receiving a shutdown customization instruction carrying customized parameters; the shutdown customization instruction is used to instruct to start a preset hook program; the preset hook program is used to make the application program in which it is located stop receiving access requests after receiving the stop instruction, and stop the application program after processing the received access requests; The preset hook program is loaded in the remote procedure call service according to the customized parameters.
17. A server, characterized in that: The server comprises: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the remote procedure call service startup method according to any one of claims 1 to 8.
18. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of a terminal, the terminal is enabled to execute the method for starting a remote procedure call service according to any one of claims 1 to 8.
19. A remote procedure call service startup system, characterized in that: include: An environment preparation module is configured to execute acquisition of environment parameters corresponding to the remote procedure call service and to run the environment parameters so as to make the environment parameters of the remote procedure call service effective; A service startup module, configured to execute acquisition of at least one remote procedure call service identifier and startup configuration parameters of the remote procedure call service, and to start the remote procedure call service according to the remote procedure call service identifier and the startup configuration parameters; the startup configuration parameters are used to support the operation of the remote procedure call service; The service registration module is configured to execute and receive an instantiation instruction; the instantiation instruction is used to instruct to establish an instance of the remote procedure call service on at least one target server; the instantiation instruction carries at least: a target weight of each of the target servers and a preset time length corresponding to each of the target servers; The weight is used to indicate the target server's ability to bear the remote procedure call service request; The service registration module is further configured to execute establishing an instance of the remote procedure call service on the target server and setting the weight of the target server as an initial weight; The service registration module is further configured to execute, within a preset time length corresponding to the target server, using a preset weight climbing mechanism to increase the initial weight to a target weight corresponding to the target server, and register the service registration information corresponding to the remote procedure call service started by the service start module in a service registration center; The shutdown module is configured to execute and receive a shutdown customization instruction carrying customization parameters, and load a preset hook program in the remote procedure call service started by the service startup module according to the customization parameters.
20. The remote procedure call service startup system according to claim 19, characterized in that: The environmental parameters include at least the following sub-parameters: log path, tracking point parameters, and reporting parameters; the tracking point parameters are used to indicate whether the tracking point agent capability is enabled; the reporting parameters are used to indicate whether the status information of the remote procedure call service is reported.
21. The remote procedure call service startup system according to claim 19, characterized in that: The service registration information includes the identifier of the remote procedure call service, and the network interconnection protocol address of the target server where the instance of the remote procedure call service is located and the port number occupied by the remote procedure call service.
22. The remote procedure call service startup system according to claim 19, characterized in that: The shutdown customized instruction is used to instruct to start a preset hook program; the preset hook program is used to make the application program in which it is located stop receiving access requests after receiving the stop instruction, and stop the application program after processing the received access requests.
