CN110493891B - Resource allocation method, device and system - Google Patents

Resource allocation method, device and system Download PDF

Info

Publication number
CN110493891B
CN110493891B CN201810454913.9A CN201810454913A CN110493891B CN 110493891 B CN110493891 B CN 110493891B CN 201810454913 A CN201810454913 A CN 201810454913A CN 110493891 B CN110493891 B CN 110493891B
Authority
CN
China
Prior art keywords
service
data
resource allocation
request
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810454913.9A
Other languages
Chinese (zh)
Other versions
CN110493891A (en
Inventor
林泉宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision System Technology Co Ltd
Original Assignee
Hangzhou Hikvision System Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision System Technology Co Ltd filed Critical Hangzhou Hikvision System Technology Co Ltd
Priority to CN201810454913.9A priority Critical patent/CN110493891B/en
Publication of CN110493891A publication Critical patent/CN110493891A/en
Application granted granted Critical
Publication of CN110493891B publication Critical patent/CN110493891B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to a resource allocation method, a device and a system, and belongs to the technical field of computers. The method comprises the following steps: receiving a service indication message sent by target equipment, wherein the service indication message carries a first service request, and the first service request is used for indicating a first service to be processed; in the process of processing the first service by adopting a plurality of services, the resources occupied by at least one service which has executed the operation corresponding to the first service are released. The method and the device solve the problem of low resource utilization rate in the related technology, achieve the effect of improving the resource utilization rate, and are used for resource allocation.

Description

Resource allocation method, device and system
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, and a system for resource allocation.
Background
With the rapid development of the internet, the variety of internet services, such as an online shopping service, a data downloading service, and a data uploading service, is increasing. Generally, a resource allocation System that processes internet traffic includes a terminal, a Domain Name System (DNS) server, a proxy server, and an application server. The proxy server is used for receiving a service request sent by the terminal through the DNS server, the service request is used for indicating to-be-processed Internet service, and the application server is used for processing the Internet service by adopting a plurality of services (namely application programs). Each of the plurality of services is for performing an operation.
In the related art, after the application server completes processing of internet services by using a plurality of services, resources occupied by the plurality of services are released, so that the resource utilization rate is low.
Disclosure of Invention
The embodiment of the application provides a resource allocation method, a device and a system, which can solve the problem of low resource utilization rate in the related technology, and the technical scheme is as follows:
according to a first aspect of embodiments of the present application, there is provided a resource allocation method for an application server of a resource allocation system, the resource allocation system further including a target device, the method including:
receiving a service indication message sent by the target device, wherein the service indication message carries a first service request, and the first service request is used for indicating a first service to be processed;
and releasing the resources occupied by at least one service which has executed the operation corresponding to the first service in the process of adopting a plurality of services to process the first service.
Optionally, in the process of processing the first service by using multiple services, releasing the resource occupied by at least one service that has executed the operation corresponding to the first service, includes:
in the process of processing the first service by adopting the plurality of services, when a second service request is obtained, releasing resources occupied by all services which have executed the operation in the plurality of services;
or, in the process of processing the first service by using the plurality of services, after each operation corresponding to the first service is completed, releasing the resources occupied by the service executing the operation.
Optionally, the processing the first service by using multiple services includes:
after one operation is executed by adopting one service, the one service is instructed to call another service through a Java management extension JMX interface so as to execute another operation.
Optionally, before the processing the first service with the plurality of services, the method further includes:
acquiring a configuration file;
and starting the plurality of services through configuration information in the configuration file, wherein the configuration information comprises starting information for starting any service in the plurality of services.
According to a second aspect of the embodiments of the present application, there is provided a resource allocation method for a target device of a resource allocation system, the resource allocation system further including an application server, the method including:
receiving a first service request, wherein the first service request is used for indicating a first service to be processed;
and sending a service indication message to the application server, wherein the service indication message carries the first service request, and the service indication message is used for indicating the application server to release resources occupied by at least one service which has executed the operation corresponding to the first service in the process of processing the first service by adopting a plurality of services.
Optionally, the service indication message includes first indication information, configured to indicate, when a second service request is obtained in a process of processing the first service by using the multiple services, the application server to release resources occupied by all services that have performed operations in the multiple services;
or, the service indication message includes second indication information for indicating that the application server releases the resource occupied by the service executing the operation after each operation corresponding to the first service is completed in the process of processing the first service by using the plurality of services.
Optionally, the service indication message includes third indication information, which is used to indicate that the application server uses one service to execute one operation, and then indicate the one service to call another service through a Java management extension JMX interface to execute another operation.
Optionally, the resource allocation system further includes a database server, and the method further includes:
when a data writing request is received, sending the data writing request to the database server, wherein the data writing request is used for indicating the database server to store target data, and the data writing request carries the target data.
Optionally, the resource allocation system further includes a cache server, and the method further includes:
when a data query request is received, sending the data query request to the cache server, wherein the data query request is used for indicating the cache server to query specified data;
when a data query response sent by the cache server is received, sending the data query request to the database server so that the database server queries the specified data based on the data query request, and sending the specified data to the target device and the cache server, wherein the data query response is used for indicating that the query operation of the specified data fails to be executed.
According to a third aspect of the embodiments of the present application, there is provided a resource allocation apparatus, for an application server of a resource allocation system, the resource allocation system further including a target device, the apparatus including:
a receiving module, configured to receive a service indication message sent by the target device, where the service indication message carries a first service request, and the first service request is used to indicate a first service to be processed;
and the processing module is used for releasing the resources occupied by at least one service which has executed the operation corresponding to the first service in the process of adopting a plurality of services to process the first service.
Optionally, the processing module is configured to:
in the process of processing the first service by adopting the plurality of services, when a second service request is obtained, releasing resources occupied by all services which have executed the operation in the plurality of services;
or, in the process of processing the first service by using the plurality of services, after each operation corresponding to the first service is completed, releasing the resources occupied by the service executing the operation.
Optionally, the processing module is configured to:
after one operation is executed by adopting one service, the one service is instructed to call another service through a Java management extension JMX interface so as to execute another operation.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring the configuration file;
and the starting module is used for starting the plurality of services through the configuration information in the configuration file, wherein the configuration information comprises starting information used for starting any service in the plurality of services.
According to a fourth aspect of the embodiments of the present application, there is provided a resource allocation apparatus, configured to be used in a target device of a resource allocation system, where the resource allocation system further includes an application server, the apparatus including:
a receiving module, configured to receive a first service request, where the first service request is used to indicate a first service to be processed;
the first sending module is configured to send a service indication message to the application server, where the service indication message carries the first service request, and the service indication message is used to indicate that the application server releases resources occupied by at least one service that has executed an operation corresponding to the first service in a process of processing the first service by using multiple services.
Optionally, the service indication message includes first indication information, configured to indicate, when a second service request is obtained in a process of processing the first service by using the multiple services, the application server to release resources occupied by all services that have performed operations in the multiple services;
or, the service indication message includes second indication information for indicating that the application server releases the resource occupied by the service executing the operation after each operation corresponding to the first service is completed in the process of processing the first service by using the plurality of services.
Optionally, the service indication message includes third indication information, which is used to indicate that the application server uses one service to execute one operation, and then indicate the one service to call another service through a Java management extension JMX interface to execute another operation.
Optionally, the resource allocation system further includes a database server, and the apparatus further includes:
the second sending module is configured to send the data write request to the database server when receiving the data write request, where the data write request is used to instruct the database server to store target data, and the data write request carries the target data.
Optionally, the resource allocation system further includes a cache server, and the apparatus further includes:
the third sending module is used for sending the data query request to the cache server when receiving the data query request, wherein the data query request is used for indicating the cache server to query specified data;
and the fourth sending module is used for sending the data query request to the database server when receiving a data query response sent by the cache server, so that the database server queries the specified data based on the data query request, and sends the specified data to the target device and the cache server, wherein the data query response is used for indicating that the query operation of the specified data fails to be executed.
Optionally, the target device includes a proxy server or a load balancer.
According to a fifth aspect of embodiments of the present application, there is provided a resource allocation system, including: an application server and a target device,
the application server comprises the resource allocation device of the third aspect;
the target device comprises the resource allocation apparatus of the fourth aspect.
Optionally, the resource allocation system further includes a cache server, where the cache server is configured to:
receiving a data query request sent by the target device, wherein the data query request is used for indicating the cache server to query specified data;
querying the specified data based on the data query request;
when the query operation aiming at the specified data fails to be executed, sending a data query response to the target device so that the target device sends the data query request to a database server, wherein the data query response is used for indicating that the query operation aiming at the specified data fails to be executed;
and receiving the specified data sent by the database server, and storing the specified data to a disk.
Optionally, the cache server is further configured to:
determining the locally stored preset data after a preset time as hot data, wherein the cache server is provided with an automatic expiration mechanism aiming at the preset data;
and when a query instruction aiming at the hot data is received, acquiring the hot data.
According to a sixth aspect of the embodiments of the present application, there is provided a resource allocation apparatus, comprising a processor, a communication interface, a memory and a communication bus,
the processor, the communication interface and the memory complete mutual communication through the communication bus;
the memory is used for storing a computer program;
the processor is configured to execute the computer program stored in the memory, and implement the resource allocation method according to the first aspect.
According to a seventh aspect of the embodiments of the present application, there is provided a resource allocation apparatus, comprising a processor, a communication interface, a memory and a communication bus,
the processor, the communication interface and the memory complete mutual communication through the communication bus;
the memory is used for storing a computer program;
the processor is configured to execute the computer program stored in the memory to implement the resource allocation method according to the second aspect.
According to an eighth aspect of embodiments of the present application, there is provided a computer-readable storage medium having stored therein a computer program which, when executed by a processor, implements the resource allocation method of the first aspect; alternatively, the computer program, when executed by a processor, implements the resource allocation method of the second aspect.
According to a ninth aspect of the embodiments of the present application, there is provided a resource allocation system, including: an application server and a target device,
the application server comprises the resource allocation device of the sixth aspect;
the target device comprises the resource allocation apparatus of the seventh aspect.
According to a tenth aspect of embodiments of the present application, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the resource allocation method of the first aspect described above.
According to an eleventh aspect of embodiments of the present application, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the resource allocation method of the second aspect described above.
According to a twelfth aspect of embodiments of the present application, there is provided a chip, which includes programmable logic circuits and/or program instructions, and is configured to perform the resource allocation method according to the first aspect when the chip is running.
According to a thirteenth aspect of embodiments of the present application, there is provided a chip comprising programmable logic circuits and/or program instructions, which when run, is configured to perform the resource allocation method according to the second aspect described above.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
in the method, the apparatus, and the system for resource allocation provided in the embodiment of the present application, the application server receives the service indication message sent by the target device, and in the process of processing the first service by using multiple services, the resource occupied by at least one service that has executed the operation corresponding to the first service may be released, and the resource may be reused. The application server releases the resources occupied by at least one service which has executed the operation corresponding to the first service in the process of processing the first service, so that the resources do not need to be released after all the operations are executed, the available resources are released in advance, and the resource utilization rate is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to illustrate the embodiments of the present application more clearly, the drawings that are needed in the description of the embodiments will be briefly described below, it being apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be derived from those drawings by a person skilled in the art without inventive effort.
Fig. 1 is a schematic diagram of a resource allocation system according to a resource allocation method provided in some embodiments of the present application;
FIG. 2 is a flow diagram illustrating a method of resource allocation in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating another method of resource allocation in accordance with an exemplary embodiment;
FIG. 4 is a flow diagram illustrating a method of resource allocation in accordance with an exemplary embodiment;
FIG. 5 is a block diagram illustrating a resource allocation apparatus in accordance with an example embodiment;
FIG. 6 is a block diagram illustrating another resource allocation apparatus in accordance with an example embodiment;
FIG. 7 is a block diagram illustrating a resource allocation apparatus in accordance with an example embodiment;
FIG. 8 is a block diagram illustrating a resource allocation apparatus in accordance with an example embodiment;
fig. 9 is a block diagram illustrating a resource allocation apparatus according to an example embodiment.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Please refer to fig. 1, which shows a schematic diagram of a resource allocation system according to a resource allocation method provided in some embodiments of the present application. The resource allocation system may include: at least one terminal 110, a DNS server 120, at least one proxy server 130, at least one application server 140, at least one cache server 150, and at least one database server 160. Each proxy server establishes a connection relationship with at least one of the cache server, the database server, and the application server.
The DNS server 120, the proxy server 130, the application server 140, the cache server 150, and the database server 160 may be a single server, or a server cluster composed of several servers, or a cloud computing service center. The terminal 110 may be a smartphone, a computer, a multimedia player, an e-reader, a wearable device, etc.
The connection between the terminal 110 and the DNS server 120 may be established through a wired network or a wireless network, the connection between the DNS server 120 and the proxy server 130 may be established through a wired network or a wireless network, and the connection between the proxy server 130 and at least one of the application server 140, the cache server 150, and the database server 160 may be established through a wired network or a wireless network.
In another implementation environment, the DNS server 120 and the proxy server 130 may be replaced by load balancers, that is, the load balancers may implement the functions of the DNS server 120 and the proxy server 130. Each load balancer is connected with at least one of the application server, the cache server and the database server.
In the related art, the proxy server is configured to receive a service request sent by the terminal through the DNS server, where the service request may indicate an internet service to be processed, and the application server is configured to process the internet service by using a plurality of services. Each of the plurality of services is for performing an operation. After the application server completes the processing of the internet service by adopting a plurality of services, the resources occupied by the services are released, so that the total time for the resources occupied by the services is longer, and the resource utilization rate is lower.
For example, the internet service is an online shopping service, when the online shopping service is processed, a user needs to log in to a corresponding shopping website through a terminal, in the process, a service request received by the terminal is a login request, the login request is used for indicating the online shopping service to be processed, a proxy server receives the login request sent by the terminal through a DNS server, and an application server processes the online shopping service by adopting a login service, a verification service and an authority service, wherein the login service, the verification service and the authority service are all application programs. In the process, a user needs to input a user name, a password and a check code on a login page of a terminal and click a login button, the terminal sends a login request to a DNS (domain name server) after receiving a login instruction triggered by the user, the DNS sends the login request to a proxy server, the proxy server sends the login request to a corresponding application server, the login request carries the user name, the password and the check code, and the application server verifies the user name, the password and the check code after receiving the login request sent by the proxy server. The application server adopts the login service to execute the verification operation on the user name and the password, adopts the verification service to execute the verification operation on the verification code, and adopts the authority service to execute the authority acquisition operation.
However, after the application server completes the processing of the online shopping service by using the login service, the verification service and the permission service, the resources occupied by the login service, the verification service and the permission service are released, so that the total time for the login service, the verification service and the permission service to occupy the resources is longer, and the resource utilization rate is low.
The embodiment of the application provides a resource allocation method, which can be used for an application server of a resource allocation system. The resource allocation system further includes a target device, which may include a proxy server or may include a load balancer, as shown in fig. 2, and the method includes:
step 101, receiving a service indication message sent by a target device, where the service indication message carries a first service request, and the first service request is used to indicate a first service to be processed.
Step 102, in the process of processing the first service by adopting a plurality of services, releasing the resources occupied by at least one service which has executed the operation corresponding to the first service.
To sum up, in the resource allocation method provided in this embodiment of the present application, the application server receives the service indication message sent by the target device, and in the process of processing the first service by using multiple services, the resource occupied by at least one service that has executed the operation corresponding to the first service may be released, and the resource may be reused. The application server releases the resources occupied by at least one service which has executed the operation corresponding to the first service in the process of processing the first service, so that the resources do not need to be released after all the operations are executed, the available resources are released in advance, and the resource utilization rate is improved.
For example, when processing online shopping service, the application server receives a service indication message sent by the proxy server, where the service indication message carries a login request, and the login request is used to indicate the online shopping service to be processed. The application server can release the resources occupied by the login service which has executed the verification operation of the user name and the password in the process of processing the online shopping service by adopting the login service, the verification service and the authority service, the resources can be utilized again, and the application server does not need to release the resources after the verification operation of the user name and the password, the verification operation of the verification code and the authority acquisition operation are executed, so that the early release of the available resources is realized, and the resource utilization rate is improved.
The embodiment of the application provides a resource allocation method, which is used for a target device of a resource allocation system, wherein the target device may include a proxy server or a load balancer. As shown in fig. 3, the method includes:
step 201, receiving a first service request, where the first service request is used to indicate a first service to be processed.
Step 202, sending a service indication message to the application server, where the service indication message carries the first service request, and the service indication message is used to indicate the application server to release resources occupied by at least one service that has executed the operation corresponding to the first service in the process of processing the first service by using multiple services.
To sum up, in the resource allocation method provided in this embodiment of the present application, after receiving the first service request, the proxy server sends a service indication message to the application server, where the service indication message is used to indicate that, in a process of processing the first service by using multiple services, the application server can release a resource occupied by at least one service that has performed the operation corresponding to the first service, and the resource can be reused.
The target device in the resource allocation system related to the resource allocation method provided by the embodiment of the present application may include a proxy server, or may include a load balancer. In the following embodiments, the target device includes a proxy server as an example to describe the resource allocation method, and when the target device includes a load balancer, the resource allocation method performed by the load balancer is the same as the resource allocation method performed by the proxy server, and therefore, this is not described again in this embodiment. As shown in fig. 4, the resource allocation method may include:
step 301, the proxy server receives a first service request.
The first service request is used for indicating a first service to be processed.
In the embodiment of the application, after receiving a first service request, a terminal sends the first service request to a DNS server, where the first service request carries domain name information of the terminal, and the DNS server is configured to obtain an Internet Protocol (IP) address of a corresponding proxy server from a preset corresponding relationship according to the domain name information of the terminal, and send the first service request to the proxy server indicated by the IP address, where the preset corresponding relationship stores a corresponding relationship between the domain name information of the terminal and the IP address of the proxy server.
Table 1 exemplarily shows the correspondence between the domain name information of 2 terminals and the IP addresses of 2 proxy servers, referring to table 1, when the domain name information of a terminal is aa.com, the IP address of the corresponding proxy server is 10.15.36.18; cn, when the domain name information of the terminal is abc, the IP address of the corresponding proxy server is 10.15.36.19.
TABLE 1
Domain name information of terminal IP address of proxy server
aa.com 10.15.36.18
abc.cn 10.15.36.19
Step 302, the proxy server sends a service indication message to the application server.
The service indication message carries a first service request.
Correspondingly, the application server receives a service indication message sent by the proxy server, wherein the service indication message carries a first service request, and the first service request is used for indicating a first service to be processed. For example, the first service request may be a login request, and the first service to be processed is an online shopping service.
In an implementation manner, the proxy server may store a corresponding relationship between the service request identifier and the application server identifier, when the proxy server receives the first service request, the first service request carries the identifier of the first service request, the proxy server queries the corresponding relationship, obtains the application server identifier corresponding to the identifier of the first service request from the corresponding relationship, and then, when step 302 is executed, the proxy server may send the service indication message to the corresponding application server according to the obtained application server identifier.
Step 303, the application server obtains the configuration file.
In this embodiment of the present application, the configuration file may be stored in a designated location of the application server in advance, and the configuration file may be acquired from the designated location before the application server starts the service.
The configuration file obtained may be multiple. Each profile is used to initiate a service. Each configuration file includes configuration information that may be generated from a tomcat application used to launch services in the related art.
Step 304, the application server starts a plurality of services through the configuration information in the configuration file.
The configuration information includes initiation information for initiating any of a plurality of services.
In the related art, a tomcat application is used to start a service. Each service corresponds to a tomcat application, which includes, in addition to the start information for starting the service, other information, such as control information and management information. Typically, the size of a tomcat application is about 200 megabits. Since the configuration information of the configuration file in the embodiment of the present application only includes the start information for starting the service, the configuration information of the configuration file is less and the storage space of the application server occupied is smaller compared with the tomcat application.
In the related art, before starting a plurality of services, a corresponding tomcat application program needs to be configured for each service. In the process of starting the service, a plurality of services need to be started by starting a plurality of tomcat applications, and since the size of each tomcat application is about more than 200 megabytes, the plurality of tomcat applications occupy a large amount of storage space of the application server, and in the process of starting the plurality of services, the plurality of tomcat applications occupy a large running memory of the application server.
The configuration file provided by the embodiment of the application only comprises the starting information for starting the service, and the configuration file is about tens of megabytes, so that the storage space occupied by the plurality of configuration files by the application server is small, and meanwhile, in the process of starting the plurality of services, the running memory occupied by the plurality of configuration files by the application server is small, so that the application server can process more services.
Step 305, the application server releases the resource occupied by at least one service that has executed the operation corresponding to the first service in the process of processing the first service by adopting a plurality of services.
In the embodiment of the application, the application server executes corresponding operation according to the indication information in the service indication message sent by the proxy server.
Optionally, the service indication message includes first indication information, which is used to indicate that, when the application server obtains the second service request in a process of processing the first service by using multiple services, the application server releases resources occupied by all services that have executed operations in the multiple services. Accordingly, step 305 may include: and the application server releases resources occupied by all services which have executed the operation in the plurality of services when acquiring the second service request in the process of processing the first service by adopting the plurality of services.
The second service request is used for indicating a second service to be processed. The second service request is sent to the application server by the proxy server through the service indication message.
For example, the first service request may be a login request, and the first service to be processed is an online shopping service. The second service request may be a query request, and the second service to be processed is a data download service.
Assuming that at least one service which has executed the operation corresponding to the first service includes the first service, the second service and the third service, in the process that the application server adopts a plurality of services to process the first service, when the application server acquires the second service request, the application server releases the resources occupied by the first service, the second service and the third service.
Optionally, the service indication message includes second indication information, which is used to indicate that, in a process of processing the first service by using multiple services, the application server releases resources occupied by the service executing the operation after each operation corresponding to one first service is completed. Accordingly, step 305 may include: in the process of processing the first service by adopting a plurality of services, the application server releases the resources occupied by the service executing the operation after finishing the corresponding operation of each first service.
Assume that the application server processes the first service with a first service, a second service, and a third service, the first service being used to perform operation a, the second service being used to perform operation B, and the third service being used to perform operation C. The application server releases the resources occupied by the first service executing the operation A after completing the operation A in the process of processing the first service by adopting the three services; after the operation B is finished, releasing resources occupied by a second service for executing the operation B; and after the operation C is finished, releasing the resources occupied by the third service for executing the operation C.
Optionally, the service indication message includes third indication information, which is used to indicate that the application server, after executing an operation using one service, indicates that the one service calls another service through the JMX interface of the Java management extension to execute another operation. Accordingly, the application server in step 305 processes the first service by using a plurality of services, including: after one operation is executed by one service, the application server indicates one service to call another service through the JMX interface for Java management extension so as to execute another operation.
For example, in the related art, after the application server performs the verification operation of the user name and the password by using the login service, the application server instructs the login service to call the permission service through a HyperText Transfer Protocol (http) to perform the permission acquisition operation, and then completes the login process based on the user name, the password, and the check code. The application server indicates that three handshakes are needed when the login service calls the http interface, so that the time for executing the authority obtaining operation is long.
In the embodiment of the application, after the login service is adopted to execute the verification operation of the user name and the password, the application server indicates the login service to call the authority service through the JMX interface to execute the authority acquisition operation, and three-way handshake is not needed in the process, so that the processing time of the online shopping service is shortened.
Optionally, the JMX interface may be configured by using an eXtensible Markup Language (xml) file. After one service is adopted to execute one operation, when one service has no authority to call another service through the Java management extension JMX interface, the application server can modify the xml file corresponding to the JMX interface so that the service has the authority to call another service through the Java management extension JMX interface.
In the related art, when the service does not have a right to call another service through the http interface, the application server needs to modify the code for implementing the service and the code for the another service at the same time, and the codes are implemented based on the http protocol, so that the codes are complex and the code modification time is long. In addition, it takes a long time to test the modified code.
In the embodiment of the application, the application server modifies the xml file corresponding to the JMX interface, so that the modification time is short, and the test time for the modified xml file is short.
Step 306, when receiving the data writing request, the proxy server sends the data writing request to the database server.
The data writing request is used for indicating the database server to store the target data, and the data writing request carries the target data.
The proxy server may establish a connection relationship with a plurality of database servers.
In this step, the proxy server may instruct the database server to store the target data through the data write request according to the storage space of each database server. In order to reduce the pressure of the database servers, after receiving the data writing request, the proxy server firstly determines the database server of which the current storage space is larger than the preset value, and sends the received data writing request to the database server of which the current storage space is larger than the preset value, so that the storage data amount of the plurality of database servers is equivalent, and the effect of load balancing is achieved.
When there are m database servers (m is an integer greater than or equal to 2) whose storage space determined by the proxy server is greater than the preset value, the proxy server may send the target data carried in the data write request to the m database servers in the following 2 ways.
In a first implementation manner, the proxy server may send the target data carried in the data write request to m database servers according to the receiving time of the data write request, so that each database server stores the corresponding target data. For example, the proxy server may send the target data carried in the data write request received on day 1 to the first database server, and send the target data carried in the data write request received on day 2 to the second database server, and so on.
In a second implementation manner, the proxy server may send the target data carried in the data write request to the m database servers according to the data type of the target data, so that each database server stores the corresponding target data.
Assuming that m is 2, the proxy server may send the target data of the entertainment class carried in the data write request to the first database server, and send the target data of the sports class carried in the data write request to the other database server.
Step 307, when receiving the data query request, the proxy server sends the data query request to the cache server.
The data query request is used for instructing the cache server to query the specified data.
Correspondingly, the cache server receives the data query request sent by the proxy server.
Because the calculation speed stored by the cache server is high, in order to quickly acquire the designated data, the proxy server sends the data query request to the cache server, and then acquires the designated data from the cache server.
Step 308, the cache server queries the specified data based on the data query request.
Step 309, when the query operation for the specified data fails to be executed, the cache server sends a data query response to the proxy server.
When the cache server does not inquire the specified data, namely the execution of the inquiry operation aiming at the specified data fails, the cache server can send a data inquiry response to the proxy server so that the proxy server sends the data inquiry request to the database server. The data query response indicates that the query operation for the specified data failed to execute.
And step 310, when receiving the data query response sent by the cache server, the proxy server sends the data query request to the database server.
Since the database server stores all the data, when the proxy server receives the data query response sent by the cache server, the data query request can be sent to the database server, so that the database server queries the specified data based on the data query request, and sends the specified data to the proxy server and the cache server, so that the specified data can be sent to the terminal by the proxy server for display. Meanwhile, the cache server stores the specified data, and the proxy server can acquire the specified data from the cache server when the specified data is queried next time.
Step 311, the cache server receives the specified data sent by the database server, and stores the received specified data to the disk.
In the related art, the cache server stores the designated data sent by the database server into the memory, when the cache server is restarted or upgraded, the data of the cache server is emptied, and the cache server needs to acquire the data from the database server again. When the amount of acquired data is large, the calculation pressure of the cache server is increased, and the cache server cannot determine which data is acquired from the database server.
In the embodiment of the present application, the cache server stores the designated data sent by the database server to the disk, so that the data in the cache server cannot be emptied even if the cache server is restarted or upgraded. Therefore, after the cache server is restarted or upgraded, the cache server does not need to acquire data from the database server, and the computing pressure of the cache server is reduced.
Step 312, the cache server determines the locally stored preset data after a preset time period as hot data, and the cache server sets an automatic expiration mechanism for the preset data.
The preset data generally does not include data with a degree of change smaller than a specified degree threshold value within a preset time period, and the hit data refers to data with a high query frequency.
For example, the preset data may be service data, and the service data may be a name of a commodity when shopping online. For example, the data that changes to a degree less than the specified degree threshold within the preset time period may be data such as a user name.
In order to ensure that the current hot data is stored in the cache server, the cache server is provided with an automatic expiration mechanism aiming at the preset data, wherein the automatic expiration mechanism means that the preset data is automatically deleted after a specified time length. For example, the specified duration may be three minutes. The preset data is deleted through the automatic expiration mechanism, the preset data is stored in the cache server next time if the preset data is hot data, and then the preset data is deleted again through the automatic expiration mechanism, so that after the preset time, if the preset data is still stored in the cache server, the preset data is necessarily the hot data. The cache server may determine data still existing after a preset time period as hot data. The preset time period may be half an hour, or 1 hour, etc.
Step 313, when the cache server receives the query instruction for the hot data, the cache server obtains the hot data.
As shown in step 312, since the cache server is provided with the automatic expiration mechanism for the preset data, after the preset duration, only the hot data is stored in the cache server, and when the cache server receives the query instruction for the hot data, only the hot data needs to be acquired from the currently stored hot data, so that the time for acquiring the hot data is reduced.
It should be noted that the order of the steps of the resource allocation method provided in the embodiment of the present application may be appropriately adjusted, and the steps may also be increased or decreased according to the situation, for example, step 303, step 304, and step 306 are optional steps. Any method that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application is covered by the protection scope of the present application, and thus the detailed description thereof is omitted.
To sum up, in the resource allocation method provided in this embodiment of the present application, the application server receives the service indication message sent by the target device, and in the process of processing the first service by using multiple services, the resource occupied by at least one service that has executed the operation corresponding to the first service may be released, and the resource may be reused. The application server releases the resources occupied by at least one service which has executed the operation corresponding to the first service in the process of processing the first service, so that the resources do not need to be released after all the operations are executed, the available resources are released in advance, and the resource utilization rate is improved.
An embodiment of the present application provides a resource allocation apparatus 50, as shown in fig. 5, for an application server of a resource allocation system, where the resource allocation system further includes a target device, the apparatus includes: a receiving module 501 and a processing module 502.
A receiving module 501, configured to receive a service indication message sent by a target device, where the service indication message carries a first service request, and the first service request is used to indicate a first service to be processed.
The processing module 502 is configured to, in a process of processing a first service by using multiple services, release resources occupied by at least one service that has performed operations corresponding to the first service.
To sum up, in the resource allocation apparatus provided in this embodiment of the present application, after the receiving module receives the service indication message sent by the target device, the processing module may release the resource occupied by the at least one service that has executed the operation corresponding to the first service in the process of processing the first service by using the plurality of services, and the resource may be reused. The application server releases the resources occupied by at least one service which has executed the operation corresponding to the first service in the process of processing the first service, so that the resources do not need to be released after all the operations are executed, the available resources are released in advance, and the resource utilization rate is improved.
Optionally, the processing module 502 is configured to:
in the process of processing the first service by adopting a plurality of services, when a second service request is obtained, releasing resources occupied by all services which have executed the operation in the plurality of services;
or, in the process of processing the first service by using a plurality of services, after each operation corresponding to one first service is completed, the resource occupied by the service executing the operation is released.
Optionally, the processing module 502 is configured to:
after one operation is executed by one service, the service is instructed to call another service through a JMX interface of Java management extension to execute another operation.
Fig. 6 is another resource allocation apparatus 50 provided on the basis of fig. 5 according to an embodiment of the present application, and as shown in fig. 6, the apparatus is used for an application server of a resource allocation system, where the resource allocation system further includes a target device, and the apparatus includes: a receiving module 501, a processing module 502, an obtaining module 503 and an initiating module 504.
A receiving module 501, configured to receive a service indication message sent by a target device, where the service indication message carries a first service request, and the first service request is used to indicate a first service to be processed.
The processing module 502 is configured to, in a process of processing a first service by using multiple services, release resources occupied by at least one service that has performed operations corresponding to the first service.
An obtaining module 503, configured to obtain the configuration file.
The starting module 504 is configured to start the plurality of services through configuration information in the configuration file, where the configuration information includes starting information for starting any service in the plurality of services.
To sum up, in the resource allocation apparatus provided in this embodiment of the present application, after the receiving module receives the service indication message sent by the target device, the processing module may release the resource occupied by the at least one service that has executed the operation corresponding to the first service in the process of processing the first service by using the plurality of services, and the resource may be reused. The application server releases the resources occupied by at least one service which has executed the operation corresponding to the first service in the process of processing the first service, so that the resources do not need to be released after all the operations are executed, the available resources are released in advance, and the resource utilization rate is improved.
Another resource allocation apparatus 60 is provided in the embodiment of the present application, as shown in fig. 7, a target device for a resource allocation system, where the resource allocation system further includes an application server, and the apparatus includes: a receiving module 601 and a first transmitting module 602.
The receiving module 601 is configured to receive a first service request, where the first service request is used to indicate a first service to be processed.
A first sending module 602, configured to send a service indication message to an application server, where the service indication message carries a first service request, and the service indication message is used to indicate that, in a process of processing a first service by using multiple services, the application server releases a resource occupied by at least one service that has executed an operation corresponding to the first service.
To sum up, in the resource allocation apparatus provided in this embodiment of the present application, after the receiving module receives the first service request, the first sending module sends a service indication message to the application server, where the service indication message is used to indicate that the application server can release the resource occupied by the at least one service that has executed the corresponding operation of the first service in the process of processing the first service by using multiple services, and the resource can be utilized again.
Optionally, the service indication message includes first indication information, which is used to indicate that, when the application server obtains the second service request in a process of processing the first service by using multiple services, the application server releases resources occupied by all services that have executed operations in the multiple services;
or, the service indication message includes second indication information for indicating that the application server releases the resource occupied by the service executing the operation after each operation corresponding to one first service is completed in the process of processing the first service by using the plurality of services.
Optionally, the service indication message includes third indication information, which is used to indicate that the application server, after executing an operation using one service, indicates that the one service calls another service through the JMX interface of the Java management extension to execute another operation.
Fig. 8 is another resource allocation apparatus 60 provided on the basis of fig. 7 according to an embodiment of the present application, and as shown in fig. 8, the apparatus is used for a target device of a resource allocation system, where the resource allocation system further includes an application server, and the apparatus includes: a receiving module 601, a first transmitting module 602 and a second transmitting module 603.
The receiving module 601 is configured to receive a first service request, where the first service request is used to indicate a first service to be processed.
A first sending module 602, configured to send a service indication message to an application server, where the service indication message carries a first service request, and the service indication message is used to indicate that, in a process of processing a first service by using multiple services, the application server releases a resource occupied by at least one service that has executed an operation corresponding to the first service.
Further, the resource allocation system further includes a database server, and referring to fig. 8, the apparatus 60 may further include:
a second sending module 603, configured to send a data write request to the database server when the data write request is received, where the data write request is used to instruct the database server to store target data, and the data write request carries the target data.
Further, the resource allocation system further includes a cache server, and referring to fig. 8, the apparatus 60 may further include:
a third sending module 604, configured to send a data query request to the cache server when the data query request is received, where the data query request is used to instruct the cache server to query specified data;
a fourth sending module 605, configured to, when receiving a data query response sent by the cache server, send the data query request to the database server, so that the database server queries the specified data based on the data query request, and sends the specified data to the target device and the cache server, where the data query response is used to indicate that the query operation on the specified data fails to be executed.
Optionally, the target device comprises a proxy server or a load balancer.
To sum up, in the resource allocation apparatus provided in this embodiment of the present application, after the receiving module receives the first service request, the first sending module sends a service indication message to the application server, where the service indication message is used to indicate that the application server can release the resource occupied by the at least one service that has executed the corresponding operation of the first service in the process of processing the first service by using multiple services, and the resource can be utilized again.
An embodiment of the present application provides a resource allocation system, including: an application server and a target device,
the application server comprises the resource allocation device shown in fig. 5 or fig. 6;
the target device includes the resource allocation apparatus shown in fig. 7 or fig. 8.
Optionally, the resource allocation system further includes a cache server, and the cache server is configured to:
receiving a data query request sent by target equipment, wherein the data query request is used for indicating a cache server to query specified data;
querying the specified data based on the data query request;
when the execution of the query operation aiming at the specified data fails, sending a data query response to the target equipment so that the target equipment sends a data query request to the database server, wherein the data query response is used for indicating the execution failure of the query operation aiming at the specified data;
and receiving the specified data sent by the database server, and storing the specified data to a disk.
Optionally, the cache server is further configured to:
determining the locally stored preset data after the preset time is passed as hot data, and setting an automatic expiration mechanism for the preset data by the cache server;
and when a query instruction for the hot data is received, acquiring the hot data.
In the embodiment of the application, the cache server stores the designated data sent by the database server on the disk, so that the data in the cache server cannot be emptied even if the cache server is restarted or upgraded. Therefore, after the cache server is restarted or upgraded, the cache server does not need to acquire data from the database server, and the computing pressure of the cache server is reduced. And because the cache server is provided with an automatic expiration mechanism aiming at the preset data, the data quantity of the data stored by the cache server is less, and when the data quantity is less, the cache server receives the data query request sent by the proxy server to query the data, the time for querying the data can be reduced.
Fig. 9 is a resource allocation apparatus provided in this embodiment of the present application, including a processor 701, a communication interface 702, a memory 703 and a communication bus 704, where the processor 701, the communication interface 702 and the memory 703 complete mutual communication through the communication bus 704; a memory 703 for storing a computer program 7031; the processor 701 is configured to execute the computer program 7031 stored in the memory to implement the resource allocation method of fig. 2 or fig. 4.
Another resource allocation apparatus provided in the embodiment of the present application, referring to fig. 9, includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus; a memory for storing a computer program; a processor for executing the computer program stored in the memory to implement the resource allocation method shown in fig. 3 or fig. 4.
An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the resource allocation method shown in fig. 2 or fig. 4 is implemented; alternatively, the computer program, when executed by a processor, implements the resource allocation method shown in fig. 3 or fig. 4.
An embodiment of the present application provides a resource allocation system, including: an application server and a target device,
the application server comprises a resource allocation device shown in fig. 9;
the target device includes a resource allocation apparatus as shown in fig. 9.
Embodiments of the present application provide a computer program product containing instructions which, when run on a computer, cause the computer to perform the resource allocation method shown in fig. 2 or fig. 4.
Embodiments of the present application provide a computer program product containing instructions which, when run on a computer, cause the computer to perform the resource allocation method shown in fig. 3 or fig. 4.
Embodiments of the present application provide a chip including programmable logic circuits and/or program instructions, which when executed, is configured to perform the resource allocation method shown in fig. 2 or fig. 4.
Embodiments of the present application provide a chip, which includes programmable logic circuits and/or program instructions, and is configured to perform the resource allocation method shown in fig. 3 or fig. 4 when the chip is running.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each module may be physically included alone, or two or more modules may be integrated into one module. The integrated module can be realized in a hardware form, and can also be realized in a form of hardware and a software functional module.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements 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 application is limited only by the appended claims.

Claims (26)

1. A resource allocation method for an application server of a resource allocation system, the resource allocation system further comprising a target device, the method comprising:
receiving a service indication message sent by the target device, wherein the service indication message carries a first service request, and the first service request is used for indicating a first service to be processed;
and releasing the resources occupied by at least one service which has executed the operation corresponding to the first service in the process of adopting a plurality of services to process the first service.
2. The method according to claim 1, wherein said releasing, in the process of processing the first service by using a plurality of services, the resource occupied by at least one service that has performed the operation corresponding to the first service, comprises:
in the process of processing the first service by adopting the plurality of services, when a second service request is obtained, releasing resources occupied by all services which have executed the operation in the plurality of services;
or, in the process of processing the first service by using the plurality of services, after each operation corresponding to the first service is completed, releasing the resources occupied by the service executing the operation.
3. The method according to any of claims 1 or 2, wherein said processing said first traffic with a plurality of services comprises:
after one operation is executed by adopting one service, the one service is instructed to call another service through a Java management extension JMX interface so as to execute another operation.
4. The method of claim 1, wherein prior to said processing the first traffic with the plurality of services, the method further comprises:
acquiring a configuration file;
and starting the plurality of services through configuration information in the configuration file, wherein the configuration information comprises starting information for starting any service in the plurality of services.
5. A resource allocation method for a target device of a resource allocation system, the resource allocation system further comprising an application server, the method comprising:
receiving a first service request, wherein the first service request is used for indicating a first service to be processed;
and sending a service indication message to the application server, wherein the service indication message carries the first service request, and the service indication message is used for indicating the application server to release resources occupied by at least one service which has executed the operation corresponding to the first service in the process of processing the first service by adopting a plurality of services.
6. The method according to claim 5, wherein the service indication message includes first indication information, which is used to indicate that the application server, in the process of processing the first service by using the multiple services, when acquiring a second service request, releases resources occupied by all services that have performed operations in the multiple services;
or, the service indication message includes second indication information for indicating that the application server releases the resource occupied by the service executing the operation after each operation corresponding to the first service is completed in the process of processing the first service by using the plurality of services.
7. The method according to claim 5, wherein said service indication message includes third indication information for indicating said application server to instruct one service to call another service through a Java management extension JMX interface to execute another operation after said one operation is executed by said one service.
8. The method of claim 5, wherein the resource allocation system further comprises a database server, the method further comprising:
when a data writing request is received, sending the data writing request to the database server, wherein the data writing request is used for indicating the database server to store target data, and the data writing request carries the target data.
9. The method of claim 8, wherein the resource allocation system further comprises a cache server, the method further comprising:
when a data query request is received, sending the data query request to the cache server, wherein the data query request is used for indicating the cache server to query specified data;
when a data query response sent by the cache server is received, sending the data query request to the database server so that the database server queries the specified data based on the data query request, and sending the specified data to the target device and the cache server, wherein the data query response is used for indicating that the query operation of the specified data fails to be executed.
10. A resource allocation apparatus, for an application server of a resource allocation system, the resource allocation system further comprising a target device, the apparatus comprising:
a receiving module, configured to receive a service indication message sent by the target device, where the service indication message carries a first service request, and the first service request is used to indicate a first service to be processed;
and the processing module is used for releasing the resources occupied by at least one service which has executed the operation corresponding to the first service in the process of adopting a plurality of services to process the first service.
11. The apparatus of claim 10, wherein the processing module is configured to:
in the process of processing the first service by adopting the plurality of services, when a second service request is obtained, releasing resources occupied by all services which have executed the operation in the plurality of services;
or, in the process of processing the first service by using the plurality of services, after each operation corresponding to the first service is completed, releasing the resources occupied by the service executing the operation.
12. The apparatus according to any one of claims 10 or 11, wherein the processing module is configured to:
after one operation is executed by adopting one service, the one service is instructed to call another service through a Java management extension JMX interface so as to execute another operation.
13. The apparatus of claim 10, further comprising:
the acquisition module is used for acquiring the configuration file;
and the starting module is used for starting the plurality of services through the configuration information in the configuration file, wherein the configuration information comprises starting information used for starting any service in the plurality of services.
14. A resource allocation apparatus, for a target device of a resource allocation system, the resource allocation system further comprising an application server, the apparatus comprising:
a receiving module, configured to receive a first service request, where the first service request is used to indicate a first service to be processed;
the first sending module is configured to send a service indication message to the application server, where the service indication message carries the first service request, and the service indication message is used to indicate that the application server releases resources occupied by at least one service that has executed an operation corresponding to the first service in a process of processing the first service by using multiple services.
15. The apparatus according to claim 14, wherein the service indication message includes first indication information, which is used to indicate that, when a second service request is obtained in a process of processing the first service by using the multiple services, the application server releases resources occupied by all services that have performed operations in the multiple services;
or, the service indication message includes second indication information for indicating that the application server releases the resource occupied by the service executing the operation after each operation corresponding to the first service is completed in the process of processing the first service by using the plurality of services.
16. The apparatus of claim 14, wherein the service indication message comprises third indication information, which is used to indicate the application server to instruct one service to call another service through JMX interface for performing another operation after the application server performs the operation with the one service.
17. The apparatus of claim 14, wherein the resource allocation system further comprises a database server, the apparatus further comprising:
the second sending module is configured to send the data write request to the database server when receiving the data write request, where the data write request is used to instruct the database server to store target data, and the data write request carries the target data.
18. The apparatus of claim 17, wherein the resource allocation system further comprises a cache server, and wherein the apparatus further comprises:
the third sending module is used for sending the data query request to the cache server when receiving the data query request, wherein the data query request is used for indicating the cache server to query specified data;
and the fourth sending module is used for sending the data query request to the database server when receiving a data query response sent by the cache server, so that the database server queries the specified data based on the data query request, and sends the specified data to the target device and the cache server, wherein the data query response is used for indicating that the query operation of the specified data fails to be executed.
19. The apparatus of any of claims 14 to 18, wherein the target device comprises a proxy server or a load balancer.
20. A resource allocation system, comprising: an application server and a target device,
the application server comprising the resource allocation arrangement of any one of claims 10 to 13;
the target device comprises the resource allocation apparatus of any one of claims 14 to 19.
21. The resource allocation system of claim 20, further comprising a cache server configured to:
receiving a data query request sent by the target device, wherein the data query request is used for indicating the cache server to query specified data;
querying the specified data based on the data query request;
when the query operation aiming at the specified data fails to be executed, sending a data query response to the target device so that the target device sends the data query request to a database server, wherein the data query response is used for indicating that the query operation aiming at the specified data fails to be executed;
and receiving the specified data sent by the database server, and storing the specified data to a disk.
22. The resource allocation system of claim 21, wherein the cache server is further configured to:
determining the locally stored preset data after a preset time as hot data, wherein the cache server is provided with an automatic expiration mechanism aiming at the preset data;
and when a query instruction aiming at the hot data is received, acquiring the hot data.
23. A resource allocation device, comprising a processor, a communication interface, a memory and a communication bus,
the processor, the communication interface and the memory complete mutual communication through the communication bus;
the memory is used for storing a computer program;
the processor, configured to execute the computer program stored in the memory, and implement the resource allocation method according to any one of claims 1 to 4.
24. A resource allocation device, comprising a processor, a communication interface, a memory and a communication bus,
the processor, the communication interface and the memory complete mutual communication through the communication bus;
the memory is used for storing a computer program;
the processor, configured to execute the computer program stored in the memory, and implement the resource allocation method according to any one of claims 5 to 9.
25. A computer-readable storage medium, in which a computer program is stored, which, when executed by a processor, implements the resource allocation method of any one of claims 1 to 4; alternatively, the computer program when executed by a processor implements the resource allocation method of any of claims 5 to 9.
26. A resource allocation system, comprising: an application server and a target device,
the application server comprising the resource allocation apparatus of claim 23;
the target device comprises the resource allocation apparatus of claim 24.
CN201810454913.9A 2018-05-14 2018-05-14 Resource allocation method, device and system Active CN110493891B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810454913.9A CN110493891B (en) 2018-05-14 2018-05-14 Resource allocation method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810454913.9A CN110493891B (en) 2018-05-14 2018-05-14 Resource allocation method, device and system

Publications (2)

Publication Number Publication Date
CN110493891A CN110493891A (en) 2019-11-22
CN110493891B true CN110493891B (en) 2021-05-11

Family

ID=68543688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810454913.9A Active CN110493891B (en) 2018-05-14 2018-05-14 Resource allocation method, device and system

Country Status (1)

Country Link
CN (1) CN110493891B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683113A (en) * 2020-04-21 2020-09-18 视联动力信息技术股份有限公司 Method and device for clearing service
CN113268344A (en) * 2021-05-18 2021-08-17 中国联合网络通信集团有限公司 Resource balancing method and system, first Pod node and resource proxy server

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101554014A (en) * 2006-09-14 2009-10-07 阿弗列斯有限公司 System and method for facilitating distribution of limited resources
CN102177697A (en) * 2011-04-29 2011-09-07 华为技术有限公司 Method for controlling internet services, and relevant device and system
CN102271077A (en) * 2010-06-01 2011-12-07 中兴通讯股份有限公司 Streaming media server and resource control method thereof
CN102742214A (en) * 2011-07-13 2012-10-17 青岛海信传媒网络技术有限公司 Method and apparatus for improving reliability of high availability system
CN104298565A (en) * 2014-10-30 2015-01-21 北京星网锐捷网络技术有限公司 Method and device for initializing ports
CN106897299A (en) * 2015-12-17 2017-06-27 阿里巴巴集团控股有限公司 A kind of data bank access method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547610B (en) * 2010-12-31 2016-03-30 华为技术有限公司 Message treatment method, equipment and system
US9400683B2 (en) * 2014-10-16 2016-07-26 Sap Se Optimizing execution of processes
CN107729205B (en) * 2017-08-22 2021-01-05 国家电网公司 Fault processing method and device for business system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101554014A (en) * 2006-09-14 2009-10-07 阿弗列斯有限公司 System and method for facilitating distribution of limited resources
CN102271077A (en) * 2010-06-01 2011-12-07 中兴通讯股份有限公司 Streaming media server and resource control method thereof
CN102177697A (en) * 2011-04-29 2011-09-07 华为技术有限公司 Method for controlling internet services, and relevant device and system
CN102742214A (en) * 2011-07-13 2012-10-17 青岛海信传媒网络技术有限公司 Method and apparatus for improving reliability of high availability system
CN104298565A (en) * 2014-10-30 2015-01-21 北京星网锐捷网络技术有限公司 Method and device for initializing ports
CN106897299A (en) * 2015-12-17 2017-06-27 阿里巴巴集团控股有限公司 A kind of data bank access method and device

Also Published As

Publication number Publication date
CN110493891A (en) 2019-11-22

Similar Documents

Publication Publication Date Title
CN107135218B (en) Login state obtaining and sending method, credential configuration method, client and server
US10225145B2 (en) Method and device for updating client
KR102166589B1 (en) Method and apparatus for realizing communication between web page and native application, and electronic device
WO2017114206A1 (en) Method and device for processing short link, and short link server
CN108540433B (en) User identity verification method and device
CN110602254A (en) Method, device and system for realizing load balance
CN108768957B (en) Method, equipment and system for managing user information of application
CN108379845B (en) Information processing method, device and storage medium
CN108667639B (en) Resource management method and management server in private cloud environment
US20140019957A1 (en) Method, apparatus, and system for sharing software among terminals
CN110493891B (en) Resource allocation method, device and system
CN104618388B (en) Fast registration login method and corresponding resetting server, information server
CN114257551A (en) Distributed current limiting method and system and storage medium
WO2014153649A1 (en) Systems and methods for providing an emulator
CN111770176B (en) Traffic scheduling method and device
CN109948332A (en) A kind of physical machine login password remapping method and device
CN111611017B (en) Display card selection method and related device
CN111698097A (en) Certificate authentication method and device
CN114912097A (en) Certificate verification method and device, electronic equipment and storage medium
US20150288727A1 (en) Softphone over desktop-as-a-service (daas)
CN114356456A (en) Service processing method, device, storage medium and electronic equipment
CN110941805B (en) Identity authentication method and device
CN111506846B (en) Web page generation method and device, electronic equipment and storage medium
CN109088913B (en) Method for requesting data and load balancing server
CN113645259A (en) Micro-service elastic expansion method, system and related equipment

Legal Events

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