CN110493891A - Resource allocation methods, apparatus and system - Google Patents

Resource allocation methods, apparatus and system Download PDF

Info

Publication number
CN110493891A
CN110493891A CN201810454913.9A CN201810454913A CN110493891A CN 110493891 A CN110493891 A CN 110493891A CN 201810454913 A CN201810454913 A CN 201810454913A CN 110493891 A CN110493891 A CN 110493891A
Authority
CN
China
Prior art keywords
service
data
business
resource allocation
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.)
Granted
Application number
CN201810454913.9A
Other languages
Chinese (zh)
Other versions
CN110493891B (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 Digital Technology Co Ltd
Hangzhou Hikvision System Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital 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

Abstract

The application is to belong to field of computer technology about a kind of resource allocation methods, apparatus and system.The described method includes: receiving the service indication message that target device is sent, service indication message carries the first service request, and the first service request is used to indicate the first business to be processed;During using multiple the first business of service processing, at least one for having executed the first business respective operations is serviced into occupied resource and is discharged.Present application addresses the lower problem of resource utilization in the related technology, achieve the effect that improve resource utilization, the application is used for resource allocation.

Description

Resource allocation methods, apparatus and system
Technical field
This application involves field of computer technology, in particular to a kind of resource allocation methods, apparatus and system.
Background technique
With the high speed development of internet, the type of Internet service is more and more, for example, shopping online business, data Downloading service and uplink data business etc..In general, the resource allocation system of processing Internet service includes terminal, domain name system (Domain Name System, DNS) server, proxy server and application server.Proxy server is for receiving terminal The service request sent by dns server, the service request are used to indicate Internet service to be processed, and application server is used The Internet service is handled in the multiple services (i.e. application program) of use.Each service is for executing a behaviour in multiple services Make.
In the related technology, application server discharges multiple after completing the processing of Internet service using multiple services The resource occupied is serviced, causes resource utilization lower.
Summary of the invention
The embodiment of the present application provides a kind of resource allocation methods, apparatus and system, can solve resource in the related technology The lower problem of utilization rate, the technical solution is as follows:
According to the embodiment of the present application in a first aspect, a kind of resource allocation methods are provided, for answering for resource allocation system With server, the resource allocation system further includes target device, which comprises
The service indication message that the target device is sent is received, the service indication message carries the first business and asks It asks, first service request is used to indicate the first business to be processed;
During using the first business described in multiple service processings, the first business respective operations will have been executed At least one service the release of occupied resource.
Optionally, described during using the first business described in multiple service processings, described first will have been executed At least one of business respective operations services occupied resource release, comprising:
It, will when getting the second service request during using the first business described in the multiple service processing The occupied resource release of all services of operation has been executed in the multiple service;
Alternatively, completing one described first every during using the first business described in the multiple service processing After business respective operations, the occupied resource of the service for executing the operation is discharged.
It is optionally, described using the first business described in multiple service processings, comprising:
After an operation complete using a service execution, indicate that one service is connect by Java administration extensions JMX Mouth calls another service, to execute another operation.
Optionally, before described using the first business described in multiple service processings, the method also includes:
Obtain configuration file;
Start the multiple service by the configuration information in the configuration file, the configuration information includes for starting The starting information of any service in the multiple service.
According to the second aspect of the embodiment of the present application, a kind of resource allocation methods are provided, for resource allocation system Target device, the resource allocation system further include application server, which comprises
The first service request is received, first service request is used to indicate the first business to be processed;
Service indication message is sent to the application server, the service indication message carries first business and asks It asks, the service indication message is used to indicate the application server in the process using the first business described in multiple service processings In, at least one for having executed the first business respective operations is serviced into occupied resource and is discharged.
Optionally, the service indication message includes the first instruction information, is used to indicate the application server and is using It, will be in the multiple service when getting the second service request during first business described in the multiple service processing The occupied resource release of all services of operation is executed;
Alternatively, the service indication message includes second indication information, the application server is used to indicate using institute During stating the first business described in multiple service processings, after one the first business respective operations of every completion, it will execute The occupied resource release of the service of the operation.
Optionally, the service indication message includes third instruction information, is used to indicate the application server and is using After the complete operation of one service execution, indicate that one service calls another service by Java administration extensions JMX interface, To execute another operation.
Optionally, the resource allocation system further includes database server, the method also includes:
When receiving data write request, the data write request is sent to the database server, it is described Data write request is used to indicate the database server storage target data, and the data write request carries the mesh Mark data.
Optionally, the resource allocation system further includes cache server, the method also includes:
When receiving data inquiry request, the data inquiry request is sent to the cache server, the number The cache server, which is used to indicate, according to inquiry request inquires specified data;
When receiving the data query response that the cache server is sent, the data inquiry request is sent to institute Database server is stated, so that inquiry request inquires the specified data to the database server based on the data, and will The specified data are sent to the target device and the cache server, and the data query response is used to indicate the finger The inquiry operation of fixed number evidence executes failure.
According to the third aspect of the embodiment of the present application, a kind of resource allocation device is provided, for resource allocation system Application server, the resource allocation system further include target device, and described device includes:
Receiving module, the service indication message sent for receiving the target device, the service indication message carry There is the first service request, first service request is used to indicate the first business to be processed;
Processing module, for described the during using the first business described in multiple service processings, will to have been executed At least one of one business respective operations services occupied resource release.
Optionally, the processing module, is used for:
It, will when getting the second service request during using the first business described in the multiple service processing The occupied resource release of all services of operation has been executed in the multiple service;
Alternatively, completing one described first every during using the first business described in the multiple service processing After business respective operations, the occupied resource of the service for executing the operation is discharged.
Optionally, the processing module, is used for:
After an operation complete using a service execution, indicate that one service is connect by Java administration extensions JMX Mouth calls another service, to execute another operation.
Optionally, described device further include:
Module is obtained, for obtaining configuration file;
Starting module, it is described to match confidence for starting the multiple service by the configuration information in the configuration file Breath includes the starting information for starting any service in the multiple service.
According to the fourth aspect of the embodiment of the present application, a kind of resource allocation device is provided, for resource allocation system Target device, the resource allocation system further include application server, and described device includes:
Receiving module, for receiving the first service request, first service request is used to indicate the first industry to be processed Business;
First sending module, for sending service indication message to the application server, the service indication message is taken With first service request, the service indication message is used to indicate the application server and is using multiple service processings During first business, at least one for having executed the first business respective operations is serviced into occupied resource Release.
Optionally, the service indication message includes the first instruction information, is used to indicate the application server and is using It, will be in the multiple service when getting the second service request during first business described in the multiple service processing The occupied resource release of all services of operation is executed;
Alternatively, the service indication message includes second indication information, the application server is used to indicate using institute During stating the first business described in multiple service processings, after one the first business respective operations of every completion, it will execute The occupied resource release of the service of the operation.
Optionally, the service indication message includes third instruction information, is used to indicate the application server and is using After the complete operation of one service execution, indicate that one service calls another service by Java administration extensions JMX interface, To execute another operation.
Optionally, the resource allocation system further includes database server, described device further include:
Second sending module, for the data write request being sent to described when receiving data write request Database server, the data write request are used to indicate the database server storage target data, and the data are write Enter request and carries the target data.
Optionally, the resource allocation system further includes cache server, described device further include:
Third sending module, for the data inquiry request being sent to described when receiving data inquiry request Cache server, the data inquiry request are used to indicate the cache server and inquire specified data;
4th sending module, for when receiving the data query response that the cache server is sent, by the number It is sent to the database server according to inquiry request, so that the database server based on the data inquire by inquiry request The specified data, and the specified data are sent to the target device and the cache server, the data query The inquiry operation that response is used to indicate the specified data executes failure.
Optionally, the target device includes proxy server or load balancer.
According to the 5th of the embodiment of the present application the aspect, a kind of resource allocation system is provided, comprising: application server and mesh Marking device,
The application server includes resource allocation device described in the third aspect;
The target device includes resource allocation device described in fourth aspect.
Optionally, the resource allocation system further includes cache server, and the cache server is used for:
The data inquiry request that the target device is sent is received, the data inquiry request is used to indicate the caching clothes Business device inquires specified data;
Inquiry request inquires the specified data based on the data;
When the inquiry operation for the specified data executes failure, Xiang Suoshu target device sends data query and rings It answers, so that the data inquiry request is sent to database server by the target device, the data query response is used for Indicate that the inquiry operation of the specified data executes failure;
The specified data that the database server is sent are received, the specified data are saved to disk.
Optionally, the cache server is also used to:
The preset data locally saved after preset duration is determined as hot data, the cache server is for pre- If data are provided with automatic expiration mechanism;
When receiving the inquiry instruction for the hot data, the hot data is obtained.
According to the 6th of the embodiment of the present application the aspect, a kind of resource allocation device is provided, including processor, communication connect Mouth, memory and communication bus,
Wherein, the processor, the communication interface, the memory complete mutual lead to by the communication bus Letter;
The memory, for storing computer program;
The processor realizes money described in first aspect for executing the computer program stored on the memory Source distribution method.
According to the 7th of the embodiment of the present application the aspect, a kind of resource allocation device is provided, including processor, communication connect Mouth, memory and communication bus,
Wherein, the processor, the communication interface, the memory complete mutual lead to by the communication bus Letter;
The memory, for storing computer program;
The processor realizes money described in second aspect for executing the computer program stored on the memory Source distribution method.
According to the eighth aspect of the embodiment of the present application, a kind of computer readable storage medium, the storage medium are provided It is inside stored with computer program, resource allocation side described in first aspect is realized when the computer program is executed by processor Method;Alternatively, realizing resource allocation methods described in second aspect when the computer program is executed by processor.
According to the 9th of the embodiment of the present application the aspect, a kind of resource allocation system is provided, comprising: application server and mesh Marking device,
The application server includes resource allocation device described in the 6th aspect;
The target device includes resource allocation device described in the 7th aspect.
According to the tenth of the embodiment of the present application the aspect, a kind of computer program product comprising instruction is provided, when it is being counted When being run on calculation machine, so that computer executes resource allocation methods described in above-mentioned first aspect.
On the one hand according to the tenth of the embodiment of the present application, provide a kind of computer program product comprising instruction, when its When being run on computer, so that computer executes resource allocation methods described in above-mentioned second aspect.
According to the 12nd of the embodiment of the present application aspect, provide a kind of chip, the chip include programmable logic circuit and/ Or program instruction, when chip operation for executing resource allocation methods described in above-mentioned first aspect.
According to the 13rd of the embodiment of the present application aspect, provide a kind of chip, the chip include programmable logic circuit and/ Or program instruction, when chip operation for executing resource allocation methods described in above-mentioned second aspect.
The technical solution that embodiments herein provides can include the following benefits:
Resource allocation methods provided by the embodiments of the present application, apparatus and system, application server receive target device and send Service indication message it is corresponding can will to have executed the first business during using multiple the first business of service processing At least one of operation services occupied resource release, which can be utilized again.Since application server is first At least one for having carried out having executed the first business respective operations during business processing services releasing for occupied resource It puts, is not necessarily to after having executed all operations, then carry out resource release, realizes the release in advance of available resources, improve resource Utilization rate.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited Application.
Detailed description of the invention
In order to illustrate more clearly of embodiments herein, attached drawing needed in embodiment description will be made below Simply introduce, it should be apparent that, the drawings in the following description are only some examples of the present application, common for this field For technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the signal of resource allocation system involved in the resource allocation methods that provide in the application section Example Figure;
Fig. 2 is a kind of flow chart of resource allocation methods shown according to an exemplary embodiment;
Fig. 3 is the flow chart of another resource allocation methods shown according to an exemplary embodiment;
Fig. 4 is a kind of flow chart of resource allocation methods shown according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of resource allocation device shown according to an exemplary embodiment;
Fig. 6 is the block diagram of another resource allocation device shown according to an exemplary embodiment;
Fig. 7 is a kind of block diagram of resource allocation device shown according to an exemplary embodiment;
Fig. 8 is a kind of block diagram of resource allocation device shown according to an exemplary embodiment;
Fig. 9 is a kind of block diagram of resource allocation device shown according to an exemplary embodiment.
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the application Example, and together with specification it is used to explain the principle of the application.
Specific embodiment
In order to keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application make into It is described in detail to one step, it is clear that described embodiment is only the application some embodiments, rather than whole implementation Example.Based on the embodiment in the application, obtained by those of ordinary skill in the art without making creative efforts All other embodiment, shall fall in the protection scope of this application.
Referring to Figure 1, it illustrates resources involved in the resource allocation methods provided in the application section Example point The schematic diagram of match system.The resource allocation system may include: at least one terminal 110, dns server 120, at least one generation Manage server 130, at least one application server 140, at least one cache server 150 and at least one database server 160.The foundation of at least one of each proxy server and cache server, database server and application server has connection Relationship.
Dns server 120, proxy server 130, application server 140, cache server 150 and database server 160 may each be a server, or the server cluster consisted of several servers or a cloud computing service Center.Terminal 110 can be smart phone, computer, multimedia player, electronic reader, wearable device etc..
Connection, dns server can be established by cable network or wireless network between terminal 110 and dns server 120 Connection, proxy server 130 and application can be established between 120 and proxy server 130 by cable network or wireless network Cable network or nothing can be passed through between at least one of server 140, cache server 150 and database server 160 Gauze network establishes connection.
In another implementation environment, dns server 120 and proxy server can also be replaced with load balancer 130, it that is to say, the function of dns server 120 and proxy server 130 may be implemented in load balancer.Each load balancer There is connection relationship with the foundation of at least one of application server, cache server and database server.
In the related technology, for receiving the service request that terminal is sent by dns server, which asks proxy server Internet service to be processed can be indicated by asking, and application server is used to use multiple service processings Internet service.Multiple clothes Each service is for executing an operation in business.Application server using it is multiple service complete Internet services processing after, The resource that multiple service occupies is discharged, the total time for causing multiple services to occupy resource is longer, causes resource utilization lower.
For example Internet service is shopping online business, when handling shopping online business, user needs to first pass through terminal Corresponding shopping website is logged on to, in this process, the received service request of terminal is logging request, and logging request is used to indicate Shopping online business to be processed, proxy server receive the logging request that terminal is sent by dns server, application server Shopping online business is handled using login service, verification service and rights service, wherein login service, verification service and permission Service is application program.In this process, user needs to input user name, password and check code in the login page of terminal, And login button is clicked, terminal sends logging request, DNS after the log-in instruction for receiving user's triggering, to dns server Logging request is sent to proxy server by server, is sent to corresponding application server by proxy server, which asks User name, password and check code are carried in asking, application server is right after the logging request for receiving proxy server transmission User name, password and check code are verified.Application server executes verification operation to username and password using login service, Verification operation is executed to check code using verification service, authority acquiring operation is executed using rights service.
But application server is at the place for completing shopping online business using login service, verification service and rights service After reason, can just discharge login service, verification service and the occupied resource of rights service, cause login service, verification service and The total time that rights service occupies resource is longer, causes resource utilization low.
The embodiment of the present application provides a kind of resource allocation methods, and this method can be used for the application clothes of resource allocation system Business device.The resource allocation system further includes target device, which may include proxy server, alternatively, may include Load balancer, as shown in Fig. 2, this method comprises:
Step 101 receives the service indication message that target device is sent, which carries the first business and ask It asks, which is used to indicate the first business to be processed.
Step 102, during using multiple the first business of service processing, the first business respective operations will have been executed At least one service the release of occupied resource.
In conclusion resource allocation methods provided by the embodiments of the present application, application server receives what target device was sent Service indication message can will execute the corresponding behaviour of the first business during using multiple the first business of service processing At least one made services occupied resource release, which can be utilized again.Since application server is in the first industry Business executed the first business respective operations during handling at least one service the release of occupied resource, Without after having executed all operations, then resource release is carried out, realizes the release in advance of available resources, improve the utilization of resources Rate.
Such as when handling shopping online business, the service indication message that application server Receiving Agent server is sent, The service indication message carries logging request, which is used to indicate shopping online business to be processed.Application service Device can will execute use during using login service, verification service and rights service processing shopping online business The occupied resource release of the login service of the verification operation of name in an account book and password, the resource can be utilized again, application service Device is not necessarily to after the verification operation for having executed username and password, verification operation and the authority acquiring operation of check code, then into Row resource release, it is achieved that the release in advance of available resources, improves resource utilization.
The embodiment of the present application provides a kind of resource allocation methods, and for the target device of resource allocation system, target is set Standby may include proxy server, alternatively, may include load balancer.As shown in figure 3, this method comprises:
Step 201 receives the first service request, which is used to indicate the first business to be processed.
Step 202 sends service indication message to application server, which carries the first business and ask It asks, which is used to indicate application server during using multiple the first business of service processing, will hold At least one of the first business respective operations of having gone services the release of occupied resource.
In conclusion resource allocation methods provided by the embodiments of the present application, after proxy server receives the first service request, Service indication message is sent to application server, which is used to indicate application server and is using multiple service centers During managing the first business, at least one for having executed the first business respective operations can be serviced into occupied resource and released It puts, which can be utilized again, since application server has carried out having executed during the first business processing At least one of one business respective operations services the release of occupied resource, is not necessarily to after having executed all operations, then carry out Resource release, realizes the release in advance of available resources, improves resource utilization.
Target device in resource allocation system involved in resource allocation methods provided by the embodiments of the present application can wrap Proxy server is included, alternatively, may include load balancer.Following embodiment is right by taking target device includes proxy server as an example The resource allocation methods are illustrated, when target device includes load balancer, resource allocation performed by load balancer Method is identical as resource allocation methods performed by proxy server, and therefore, the embodiment of the present application repeats no more this.Such as Fig. 4 Shown, which may include:
Step 301, proxy server receive the first service request.
First service request is used to indicate the first business to be processed.
In the embodiment of the present application, the first service request is sent to DNS after receiving the first service request by terminal Server, the domain-name information of terminal is carried in first service request, and dns server is used for the domain-name information according to the terminal Address Internet protocol (Internet Protocol, IP) of corresponding proxy server is obtained from default corresponding relationship, and The proxy server indicated to the IP address sends the first service request, wherein the domain of terminal is stored in default corresponding relationship The corresponding relationship of name information and the IP address of proxy server.
Table 1 illustrates the corresponding relationship of the domain-name information of 2 terminals and the IP address of 2 proxy servers, ginseng It is shown in Table 1, when the domain-name information of terminal is aa.com, the IP address of corresponding proxy server is 10.15.36.18;Work as terminal Domain-name information when being abc.cn, the IP address of corresponding proxy server is 10.15.36.19.
Table 1
The domain-name information of terminal The IP address of proxy server
aa.com 10.15.36.18
abc.cn 10.15.36.19
Step 302, proxy server send service indication message to application server.
Wherein, service indication message carries the first service request.
Correspondingly, the service indication message that application server Receiving Agent server is sent, which is carried There is the first service request, the first service request is used to indicate the first business to be processed.Exemplary, the first service request can be Logging request, the first business to be processed are shopping online business.
In a kind of achievable mode, proxy server can store service request mark and application server identifier Corresponding relationship, when proxy server receives the first service request, which carries the first service request Mark, proxy server inquire the corresponding relationship, the corresponding application of mark of the first service request are obtained from the corresponding relationship Server identification, then when executing step 302, proxy server can refer to business according to the application server identifier of acquisition Show that message is sent to corresponding application server.
Step 303, application server obtain configuration file.
In the embodiment of the present application, configuration file can be stored into the designated position of application server in advance, is being answered Before server starting service, the configuration file is obtained from designated position.
Wherein, the configuration file of acquisition can be multiple.Each configuration file is for starting a service.Each configuration text Part includes configuration information, which can be according in the related technology for starting the tomcat application program generation of service.
Step 304, application server start multiple services by the configuration information in configuration file.
The configuration information includes the starting information for starting any service in multiple services.
In the related technology, a tomcat application program is for starting a service.The corresponding tomcat of each service Application program, a tomcat application program in addition to include for start service starting information other than, further include other information, than Such as, information and management information are controlled.In general, the size of a tomcat application program is about more than 200 million.Due to the application reality The configuration information for applying the configuration file in example only includes for starting the starting information serviced, so compared to tomcat application journey The configuration information of sequence, the configuration file is less, and the memory space of the application server of occupancy is smaller.
In the related technology, it before starting multiple services, needs for the corresponding tomcat application journey of each service configuration Sequence.During starting service, need to start multiple services by starting multiple tomcat application programs, due to each The size of tomcat application program is about more than 200 million, so to occupy application server a large amount of for multiple tomcat application programs Memory space, and during starting multiple services, it is biggish that multiple tomcat application programs can occupy application server Running memory.
And configuration file provided by the embodiments of the present application, due to only including the starting information for starting service, configuration text Part is about tens, thus the memory space of multiple configuration files occupancy application server is smaller, while starting multiple clothes During business, the running memory that multiple configuration files occupy application server is smaller, so application server can handle more More business.
Step 305, application server will execute the first industry during using multiple the first business of service processing At least one for respective operations of being engaged in services occupied resource release.
In the embodiment of the present application, application server is the instruction in the service indication message sent according to proxy server Information executes corresponding operation.
Optionally, service indication message includes the first instruction information, is used to indicate application server and is using multiple services During handling the first business, when getting the second service request, all clothes of operation will have been executed in multiple services The resource release that business occupies.Correspondingly, step 305 may include: that application server is using multiple the first business of service processing During, when getting the second service request, the resource of all services occupancy of operation will have been executed in multiple services Release.
Wherein, the second service request is used to indicate the second business to be processed.Second service request is that proxy server is logical It crosses service indication message and is sent to application server.
Exemplary, the first service request can be logging request, and the first business to be processed is shopping online business.Second Service request can be inquiry request, and the second business to be processed is data download business.
Assuming that at least one service for having executed the first business respective operations includes first service, second service and third Service, application server is during using multiple the first business of service processing, when getting the second service request, application First service, second service and third are serviced occupied resource and discharged by server.
Optionally, service indication message includes second indication information, is used to indicate application server and is using multiple services It is after one the first business respective operations of every completion, the service for executing operation is occupied during handling the first business Resource release.Correspondingly, step 305 may include: application server during using multiple the first business of service processing, After one the first business respective operations of every completion, the occupied resource of the service for executing the operation is discharged.
Assuming that application server uses the first business of first service, second service and third service processing, first service is used A is operated in executing, second service is for executing operation B, and third service is for executing operation C.Application server using this three The process of a the first business of service processing discharges the occupied resource of first service for executing operation A after completing to operate A; After completing to operate B, the occupied resource of second service for executing operation B is discharged;After completing to operate C, C is operated by executing Third service the release of occupied resource.
Optionally, service indication message includes third instruction information, is used to indicate application server using a service After having executed an operation, indicate that a service calls another service by Java administration extensions JMX interface, to execute another behaviour Make.Correspondingly, application server uses multiple the first business of service processing in step 305, comprising: application server is using one After a complete operation of service execution, indicate that a service calls another service by Java administration extensions JMX interface, to execute Another operation.
Such as in the related technology, after the verification operation that application server uses login service to execute username and password, Indicate that Sign-On services call rights service by hypertext transfer protocol (HyperText Transfer Protocol, http), To execute authority acquiring operation, it is then based on user name, password and check code and completes login process.Since application server indicates It is longer that Sign-On services call http interface to need to cause to have executed by three-way handshake the authority acquiring operation time used.
And in the embodiment of the present application, application server is in the verifying behaviour for having executed username and password using login service After work, instruction Sign-On services call rights service by JMX interface, and to execute authority acquiring operation, which needs not move through three It is secondary to shake hands, thus shorten the processing time of shopping online business.
Optionally, JMX interface can use extensible markup language (eXtensible Markup Language, xml) File is configured.After an operation complete using a service execution, when a service lack of competence passes through Java administration extensions JMX interface calls another service, and application server can modify to the corresponding xml document of JMX interface, so that the service has Permission calls another service by Java administration extensions JMX interface.
In the related technology, when the no permission of the service calls another service by http interface, application server needs It modifies simultaneously to the code of code and another service for realizing the service, and code is based on http protocol realization , code itself is more complex, and the time of code revision is longer.In addition, when testing modified code need spend compared with For a long time.
And in the embodiment of the present application, application server is the modification carried out to the corresponding xml document of JMX interface, so The time of modification is shorter, and the time tested modified xml document is shorter.
Step 306, when receiving data write request, proxy server write data into request be sent to database clothes Business device.
Wherein, data write request is used to indicate database server and stores target data, data write request Carry target data.
Proxy server can be established with multiple database servers connection relationship.
In this step, proxy server can be written according to the memory space of each database server by data Request referred database server stores target data.In order to mitigate the pressure of database server, proxy server After receiving data write request, first determine that current memory space is greater than the database server of preset value, and will receive Data write request be sent to current memory space be greater than preset value database server, to make multiple database services The storage data quantity of device is suitable, and then achievees the effect that load balancing.
When the database server that the memory space that proxy server determines is greater than preset value has m, (m is greater than or equal to 2 Integer) it is a when, proxy server can write data into the target data that carries in request using following 2 kinds of modes and be sent to this M data library server.
Can be in realization mode at the first, proxy server can write data according to the receiving time of data write request Enter the target data carried in request and be sent to m data library server, so that each database server stores corresponding mesh Mark data.For example, the target data that the 1st day carries in received data write request can be sent to first by proxy server The target data that 2nd day carries in received data write request is sent to second database clothes by platform database server Business device etc..
In second of achievable mode, proxy server can write data into according to the data type of target data and ask The target data of middle carrying is asked to be sent to m data library server, so that each database server stores corresponding number of targets According to.
Assuming that m is 2, proxy server can write data into the target data of amusement class carried in request and be sent to the One database server, the target data for writing data into the sport category carried in request are sent to another database service Device.
Step 307, when receiving data inquiry request, data inquiry request is sent to buffer service by proxy server Device.
Data inquiry request is used to indicate cache server and inquires specified data.
Correspondingly, the data inquiry request that cache server Receiving Agent server is sent.
Since the calculating speed of cache server storage is fast, in order to which quick obtaining specifies data, proxy server is by data Inquiry request is sent to cache server, and then specified data are obtained from cache server.
Step 308, cache server are based on data inquiry request and inquire specified data.
Step 309, when the inquiry operation for specified data executes failure, cache server is sent to proxy server Data query response.
When cache server does not inquire specified data, i.e., when the inquiry operation for specified data executes failure, caching Server can send data query response to proxy server, so that data inquiry request is sent to data by proxy server Library server.The inquiry operation that data query response is used to indicate specified data executes failure.
Step 310, when receive cache server transmission data query response when, proxy server asks data query It asks and is sent to database server.
Since database server can store all data, thus when proxy server receives cache server transmission Data query response when, data inquiry request can be sent to database server so that database server be based on number Specified data are inquired according to inquiry request, and specified data are sent to proxy server and cache server, in order to by acting on behalf of Specified data are sent to terminal and shown by server.Meanwhile cache server is set to store specified data, and this refers in inquiry next time Fixed number according to when, proxy server can obtain the specified data from cache server.
Step 311, cache server receive the specified data that database server is sent, and the specified data that will be received It saves to disk.
In the related technology, the specified data that cache server sends database server are stored in memory, when restarting Or when upgrading cache server, the data of cache server can be emptied, cache server needs again from database service Data are obtained in device.When the data volume of acquisition is larger, the calculating pressure of cache server is increased, and cache server can not It determines from database server and which data is obtained.
And in the embodiment of the present application, the specified data that cache server sends database server are stored to disk On, even if thus restart or upgrade cache server, the data in cache server will not be emptied.So, delay Server is deposited after restarting or upgrading, cache server is not necessarily to obtain data from database server, thus reduces caching The calculating pressure of server.
The preset data locally saved after preset duration is determined as hot data by step 312, cache server, is delayed It deposits server and preset data is provided with automatic expiration mechanism.
Wherein, preset data is typically not included in the number that the degree changed in preset time period is less than given extent threshold value According to hot data refers to the higher data of enquiry frequency.
For example preset data can be service class data, exemplary, service class data can be when carrying out shopping online Product name.Exemplary, the data that the degree changed within a preset period of time is less than given extent threshold value can be user name etc. Data.
In order to ensure what is stored in cache server is current popular data, cache server is arranged for preset data There is automatic expiration mechanism, which refers to that preset data is automatically left out after specified duration.For example, specified Duration can be three minutes.By automatic expiration mechanism, preset data is deleted, if preset data is hot data, this is pre- If data can be saved in cache server next time again, later, by automatic expiration mechanism, preset data can be deleted again It removes, so, after preset duration, if still preserving the preset data in cache server, the preset data It must be hot data.So the data still having after preset duration can be determined as popular number by cache server According to.Wherein, which can be half an hour or 1 hour etc..
Step 313, cache server obtain hot data when receiving the inquiry instruction for hot data.
By step 312 it is found that being provided with automatic expiration mechanism since cache server is directed to preset data, thus default After duration, the only hot data that cache server saves, thus cache server is receiving the inquiry for hot data When instruction, it is only necessary to obtain hot data from currently stored hot data, thus reduce and obtain hot data Time.
It should be noted that the sequencing of resource allocation methods step provided by the embodiments of the present application can carry out suitably Adjustment, step according to circumstances can also accordingly be increased and decreased, for example step 303, step 304, step 306 are optional step.Appoint What those familiar with the art within the technical scope of the present application, all answer by the method that can readily occur in variation Cover within the scope of protection of this application, therefore repeats no more.
In conclusion resource allocation methods provided by the embodiments of the present application, application server receives what target device was sent Service indication message can will execute the corresponding behaviour of the first business during using multiple the first business of service processing At least one made services occupied resource release, which can be utilized again.Since application server is in the first industry Business executed the first business respective operations during handling at least one service the release of occupied resource, Without after having executed all operations, then resource release is carried out, realizes the release in advance of available resources, improve the utilization of resources Rate.
The embodiment of the present application provides a kind of resource allocation device 50, as shown in figure 5, being used for the application of resource allocation system Server, the resource allocation system further include target device, which includes: receiving module 501 and processing module 502.
Receiving module 501, for receiving the service indication message of target device transmission, which carries the One service request, the first service request are used to indicate the first business to be processed.
Processing module 502, for the first business will to have been executed during using multiple the first business of service processing At least one of respective operations services occupied resource release.
In conclusion resource allocation device provided by the embodiments of the present application, receiving module is receiving what target device was sent After service indication message, processing module can will execute first during using multiple the first business of service processing At least one of business respective operations services occupied resource release, which can be utilized again.Due to application service At least one service that device has carried out having executed during the first business processing the first business respective operations is occupied The release of resource is not necessarily to after having executed all operations, then carries out resource release, realizes the release in advance of available resources, mentions High resource utilization.
Optionally, processing module 502 are used for:
During using multiple the first business of service processing, when getting the second service request, by multiple services In executed all services occupied resource release of operation;
Alternatively, during using multiple the first business of service processing, in one the first business respective operations of every completion Afterwards, the occupied resource of service for executing operation is discharged.
Optionally, processing module 502 are used for:
After an operation complete using a service execution, indicate that a service passes through Java administration extensions JMX interface tune With another service, to execute another operation.
Fig. 6 is another resource allocation device 50 that the embodiment of the present application provides on the basis of Fig. 5, as shown in fig. 6, with In the application server of resource allocation system, which further includes target device, which includes: receiving module 501, processing module 502, acquisition module 503 and starting module 504.
Receiving module 501, for receiving the service indication message of target device transmission, which carries the One service request, the first service request are used to indicate the first business to be processed.
Processing module 502, for the first business will to have been executed during using multiple the first business of service processing At least one of respective operations services occupied resource release.
Module 503 is obtained, for obtaining configuration file.
Starting module 504, for starting multiple services by the configuration information in configuration file, configuration information includes being used for Start the starting information of any service in multiple services.
In conclusion resource allocation device provided by the embodiments of the present application, receiving module is receiving what target device was sent After service indication message, processing module can will execute first during using multiple the first business of service processing At least one of business respective operations services occupied resource release, which can be utilized again.Due to application service At least one service that device has carried out having executed during the first business processing the first business respective operations is occupied The release of resource is not necessarily to after having executed all operations, then carries out resource release, realizes the release in advance of available resources, mentions High resource utilization.
The embodiment of the present application provides another resource allocation device 60, as shown in fig. 7, being used for the mesh of resource allocation system Marking device, resource allocation system further include application server, which includes: receiving module 601 and the first sending module 602.
Receiving module 601, for receiving the first service request, the first service request is used to indicate the first industry to be processed Business.
First sending module 602, for sending service indication message to application server, service indication message carries the One service request, service indication message are used to indicate application server during using multiple the first business of service processing, At least one for having executed the first business respective operations is serviced into occupied resource release.
In conclusion resource allocation device provided by the embodiments of the present application, receiving module after receiving the first service request, First sending module sends service indication message to application server, which is used to indicate application server and is adopting During with multiple the first business of service processing, at least one service institute of the first business respective operations can will have been executed The resource of occupancy discharges, which can be utilized again, since application server carries out during the first business processing At least one for having executed the first business respective operations services the release of occupied resource, without executing all behaviour After work, then resource release is carried out, realizes the release in advance of available resources, improve resource utilization.
Optionally, service indication message includes the first instruction information, is used to indicate application server and is using multiple services During handling the first business, when getting the second service request, all clothes of operation will have been executed in multiple services Occupied resource of being engaged in discharges;
Alternatively, service indication message includes second indication information, it is used to indicate application server and is using multiple service centers During managing the first business, after one the first business respective operations of every completion, the occupied money of service of operation will be executed Source release.
Optionally, service indication message includes third instruction information, is used to indicate application server using a service After having executed an operation, indicate that a service calls another service by Java administration extensions JMX interface, to execute another behaviour Make.
Fig. 8 is another resource allocation device 60 that the embodiment of the present application provides on the basis of Fig. 7, as shown in figure 8, with In the target device of resource allocation system, resource allocation system further includes application server, the device include: receiving module 601, First sending module 602 and the second sending module 603.
Receiving module 601, for receiving the first service request, the first service request is used to indicate the first industry to be processed Business.
First sending module 602, for sending service indication message to application server, service indication message carries the One service request, service indication message are used to indicate application server during using multiple the first business of service processing, At least one for having executed the first business respective operations is serviced into occupied resource release.
Further, resource allocation system further includes database server, and referring to Fig. 8, which can also include:
Second sending module 603 is sent to database for when receiving data write request, writing data into request Server, data write request are used to indicate database server storage target data, and data write request carries number of targets According to.
Further, resource allocation system further includes cache server, and referring to Fig. 8, which can also include:
Third sending module 604, for when receiving data inquiry request, data inquiry request to be sent to caching clothes Business device, data inquiry request are used to indicate cache server and inquire specified data;
4th sending module 605, for when receive cache server transmission data query response when, by data query Request is sent to database server, so that database server is based on data inquiry request and inquires specified data, and will specify Data are sent to target device and cache server, and the inquiry operation that data query response is used to indicate specified data executes mistake It loses.
Optionally, target device includes proxy server or load balancer.
In conclusion resource allocation device provided by the embodiments of the present application, receiving module after receiving the first service request, First sending module sends service indication message to application server, which is used to indicate application server and is adopting During with multiple the first business of service processing, at least one service institute of the first business respective operations can will have been executed The resource of occupancy discharges, which can be utilized again, since application server carries out during the first business processing At least one for having executed the first business respective operations services the release of occupied resource, without executing all behaviour After work, then resource release is carried out, realizes the release in advance of available resources, improve resource utilization.
The embodiment of the present application provides a kind of resource allocation system, comprising: application server and target device,
Application server includes Fig. 5 or resource allocation device shown in fig. 6;
Target device includes Fig. 7 or resource allocation device shown in Fig. 8.
Optionally, resource allocation system further includes cache server, which is used for:
The data inquiry request that target device is sent is received, it is specified that data inquiry request is used to indicate cache server inquiry Data;
Specified data are inquired based on data inquiry request;
When the inquiry operation for specified data executes failure, data query response is sent to target device, so that mesh Data inquiry request is sent to database server by marking device, and data query responds the inquiry operation for being used to indicate specified data Execute failure;
The specified data that database server is sent are received, specified data are saved to disk.
Optionally, cache server is also used to:
The preset data locally saved after preset duration is determined as hot data, cache server is directed to present count According to being provided with automatic expiration mechanism;
When receiving the inquiry instruction for hot data, hot data is obtained.
In the embodiment of the present application, the specified data that cache server sends database server are stored to disk, Even if thus restarting or upgrading cache server, the data in cache server will not be emptied.So, caching clothes Device be engaged in after restarting or upgrading, cache server is not necessarily to obtain data from database server, thus reduces buffer service The calculating pressure of device.And it is provided with automatic expiration mechanism since cache server is directed to preset data, so cache server is deposited The data volume of the data of storage is less, and when data volume is less, cache server is looked into the data for receiving proxy server transmission When asking request inquiry data, it is possible to reduce inquire the time of data.
Fig. 9 is a kind of resource allocation device provided by the embodiments of the present application, including processor 701, communication interface 702, is deposited Reservoir 703 and communication bus 704, wherein processor 701, communication interface 702, memory 703 are completed by communication bus 704 Mutual communication;Memory 703, for storing computer program 7031;Processor 701 stores on memory for executing Computer program 7031, realize Fig. 2 or Fig. 4 resource allocation methods.
Another kind resource allocation device provided by the embodiments of the present application, with reference to Fig. 9, including processor, communication interface, storage Device and communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;Memory, For storing computer program;Processor realizes Fig. 3 or shown in Fig. 4 for executing the computer program stored on memory Resource allocation methods.
The embodiment of the present application provides a kind of computer readable storage medium, is stored with computer program in storage medium, Fig. 2 or resource allocation methods shown in Fig. 4 are realized when computer program is executed by processor;Alternatively, computer program is processed Device realizes Fig. 3 or resource allocation methods shown in Fig. 4 when executing.
The embodiment of the present application provides a kind of resource allocation system, comprising: application server and target device,
Application server includes resource allocation device shown in Fig. 9;
Target device includes resource allocation device as shown in Figure 9.
The embodiment of the present application provides a kind of computer program product comprising instruction, when run on a computer, So that computer executes Fig. 2 or resource allocation methods shown in Fig. 4.
The embodiment of the present application provides a kind of computer program product comprising instruction, when run on a computer, So that computer executes Fig. 3 or resource allocation methods shown in Fig. 4.
The embodiment of the present application provides a kind of chip, which includes programmable logic circuit and/or program instruction, works as core For executing Fig. 2 or resource allocation methods shown in Fig. 4 when piece is run.
The embodiment of the present application provides a kind of chip, which includes programmable logic circuit and/or program instruction, works as core For executing Fig. 3 or resource allocation methods shown in Fig. 4 when piece is run.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple module or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or module It closes or communicates to connect, can be electrical property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module The component shown may or may not be physical module, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application It is that the independent physics of modules includes, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also realize in the form of hardware adds software function module.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the application Its embodiment.This application is intended to cover any variations, uses, or adaptations of the application, these modifications, purposes or Person's adaptive change follows the general principle of the application and including the undocumented common knowledge in the art of the application Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the application are wanted by right It asks and points out.
It should be understood that the application is not limited to the precise structure that has been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.Scope of the present application is only limited by the accompanying claims.

Claims (26)

1. a kind of resource allocation methods, which is characterized in that for the application server of resource allocation system, the resource allocation system System further includes target device, which comprises
The service indication message that the target device is sent is received, the service indication message carries the first service request, institute It states the first service request and is used to indicate the first business to be processed;
During using the first business described in multiple service processings, the first business respective operations will have been executed extremely Few occupied resource release of a service.
2. the method according to claim 1, wherein described using the first business described in multiple service processings In the process, at least one for having executed the first business respective operations occupied resource is serviced to discharge, comprising:
It, will be described when getting the second service request during using the first business described in the multiple service processing The occupied resource release of all services of operation has been executed in multiple services;
Alternatively, during using the first business described in the multiple service processing, in one first business of every completion After respective operations, the occupied resource of the service for executing the operation is discharged.
3. according to claim 1 or 2 any methods, which is characterized in that described using described in multiple service processings first Business, comprising:
After an operation complete using a service execution, indicate that one service passes through Java administration extensions JMX interface tune With another service, to execute another operation.
4. the method according to claim 1, wherein it is described using the first business described in multiple service processings it Before, the method also includes:
Obtain configuration file;
Start the multiple service by the configuration information in the configuration file, the configuration information includes described for starting The starting information of any service in multiple services.
5. a kind of resource allocation methods, which is characterized in that for the target device of resource allocation system, the resource allocation system It further include application server, which comprises
The first service request is received, first service request is used to indicate the first business to be processed;
Service indication message is sent to the application server, the service indication message carries first service request, The service indication message is used to indicate the application server during using the first business described in multiple service processings, At least one for having executed the first business respective operations is serviced into occupied resource release.
6. according to the method described in claim 5, it is characterized in that, the service indication message includes the first instruction information, use In indicating the application server during using the first business described in the multiple service processing, when getting the second industry When business request, the occupied resource of all services that operation has been executed in the multiple service is discharged;
Alternatively, the service indication message includes second indication information, the application server is used to indicate using described more It, will be described in execution after one the first business respective operations of every completion during first business described in a service processing The occupied resource release of the service of operation.
7. according to the method described in claim 5, it is characterized in that, the service indication message includes third instruction information, use In indicating the application server after an operation complete using a service execution, the one service of instruction is managed by Java Reason extension JMX interface calls another service, to execute another operation.
8. according to the method described in claim 5, it is characterized in that, the resource allocation system further includes database server, The method also includes:
When receiving data write request, the data write request is sent to the database server, the data Write request is used to indicate the database server storage target data, and the data write request carries the number of targets According to.
9. according to the method described in claim 8, it is characterized in that, the resource allocation system further includes cache server, institute State method further include:
When receiving data inquiry request, the data inquiry request is sent to the cache server, the data are looked into It askes request and is used to indicate the specified data of cache server inquiry;
When receiving the data query response that the cache server is sent, the data inquiry request is sent to the number According to library server, so that inquiry request inquires the specified data to the database server based on the data, and will be described Specified data are sent to the target device and the cache server, and the data query response is used to indicate the specified number According to inquiry operation execute failure.
10. a kind of resource allocation device, which is characterized in that for the application server of resource allocation system, the resource allocation System further includes target device, and described device includes:
Receiving module, the service indication message sent for receiving the target device, the service indication message carry the One service request, first service request are used to indicate the first business to be processed;
Processing module, for first industry will to have been executed during using the first business described in multiple service processings At least one for respective operations of being engaged in services occupied resource release.
11. device according to claim 10, which is characterized in that the processing module is used for:
It, will be described when getting the second service request during using the first business described in the multiple service processing The occupied resource release of all services of operation has been executed in multiple services;
Alternatively, during using the first business described in the multiple service processing, in one first business of every completion After respective operations, the occupied resource of the service for executing the operation is discharged.
12. 0 or 11 any device according to claim 1, which is characterized in that the processing module is used for:
After an operation complete using a service execution, indicate that one service passes through Java administration extensions JMX interface tune With another service, to execute another operation.
13. device according to claim 10, which is characterized in that described device further include:
Module is obtained, for obtaining configuration file;
Starting module, for starting the multiple service, the configuration information packet by the configuration information in the configuration file Include the starting information for starting any service in the multiple service.
14. a kind of resource allocation device, which is characterized in that for the target device of resource allocation system, the resource allocation system System further includes application server, and described device includes:
Receiving module, for receiving the first service request, first service request is used to indicate the first business to be processed;
First sending module, for sending service indication message to the application server, the service indication message is carried First service request, the service indication message are used to indicate the application server using described in multiple service processings During first business, at least one for having executed the first business respective operations is serviced into occupied resource and is released It puts.
15. device according to claim 14, which is characterized in that the service indication message includes the first instruction information, The application server is used to indicate during using the first business described in the multiple service processing, when getting second When service request, the occupied resource of all services that operation has been executed in the multiple service is discharged;
Alternatively, the service indication message includes second indication information, the application server is used to indicate using described more It, will be described in execution after one the first business respective operations of every completion during first business described in a service processing The occupied resource release of the service of operation.
16. device according to claim 14, which is characterized in that the service indication message includes third instruction information, The application server is used to indicate after an operation complete using a service execution, indicates that one service passes through Java Administration extensions JMX interface calls another service, to execute another operation.
17. device according to claim 14, which is characterized in that the resource allocation system further includes database service Device, described device further include:
Second sending module, for when receiving data write request, the data write request to be sent to the data Library server, the data write request are used to indicate the database server storage target data, and the data write-in is asked It asks and carries the target data.
18. device according to claim 17, which is characterized in that the resource allocation system further includes cache server, Described device further include:
Third sending module, for when receiving data inquiry request, the data inquiry request to be sent to the caching Server, the data inquiry request are used to indicate the cache server and inquire specified data;
4th sending module, for when receiving the data query response that the cache server is sent, the data to be looked into Ask request be sent to the database server so that the database server based on the data inquiry request inquiry described in Specified data, and the specified data are sent to the target device and the cache server, the data query response The inquiry operation for being used to indicate the specified data executes failure.
19. 4 to 18 any device according to claim 1, which is characterized in that the target device includes proxy server Or load balancer.
20. a kind of resource allocation system characterized by comprising application server and target device,
The application server includes any resource allocation device of claim 10 to 13;
The target device includes any resource allocation device of claim 14 to 19.
21. resource allocation system according to claim 20, which is characterized in that the resource allocation system further includes caching Server, the cache server are used for:
The data inquiry request that the target device is sent is received, the data inquiry request is used to indicate the cache server Inquire specified data;
Inquiry request inquires the specified data based on the data;
When the inquiry operation for the specified data executes failure, Xiang Suoshu target device sends data query response, with Make the target device that the data inquiry request is sent to database server, the data query response is used to indicate institute The inquiry operation for stating specified data executes failure;
The specified data that the database server is sent are received, the specified data are saved to disk.
22. resource allocation system according to claim 21, which is characterized in that the cache server is also used to:
The preset data locally saved after preset duration is determined as hot data, the cache server is directed to present count According to being provided with automatic expiration mechanism;
When receiving the inquiry instruction for the hot data, the hot data is obtained.
23. a kind of resource allocation device, which is characterized in that including processor, communication interface, memory and communication bus,
Wherein, the processor, the communication interface, the memory complete mutual communication by the communication bus;
The memory, for storing computer program;
The processor realizes that Claims 1-4 is any described for executing the computer program stored on the memory Resource allocation methods.
24. a kind of resource allocation device, which is characterized in that including processor, communication interface, memory and communication bus,
Wherein, the processor, the communication interface, the memory complete mutual communication by the communication bus;
The memory, for storing computer program;
The processor realizes that claim 5 to 9 is any described for executing the computer program stored on the memory Resource allocation methods.
25. a kind of computer readable storage medium, which is characterized in that computer program is stored in the storage medium, it is described Claims 1-4 any resource allocation methods are realized when computer program is executed by processor;Alternatively, the calculating Claim 5 to 9 any resource allocation methods are realized when machine program is executed by processor.
26. a kind of resource allocation system characterized by comprising application server and target device,
The application server includes resource allocation device described in claim 23;
The target device includes resource allocation device described in 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 true CN110493891A (en) 2019-11-22
CN110493891B 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)

Cited By (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 (9)

* 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
US20130286982A1 (en) * 2010-12-31 2013-10-31 Huawei Technologies Co., Ltd. Method, device and system for processing a message
CN104298565A (en) * 2014-10-30 2015-01-21 北京星网锐捷网络技术有限公司 Method and device for initializing ports
US20160110217A1 (en) * 2014-10-16 2016-04-21 Unmesh Sreedharan Optimizing execution of processes
CN106897299A (en) * 2015-12-17 2017-06-27 阿里巴巴集团控股有限公司 A kind of data bank access method and device
CN107729205A (en) * 2017-08-22 2018-02-23 国家电网公司 Fault handling method and device for operation system

Patent Citations (9)

* 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
US20130286982A1 (en) * 2010-12-31 2013-10-31 Huawei Technologies Co., Ltd. Method, device and system for processing a message
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
US20160110217A1 (en) * 2014-10-16 2016-04-21 Unmesh Sreedharan Optimizing execution of processes
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
CN107729205A (en) * 2017-08-22 2018-02-23 国家电网公司 Fault handling method and device for operation system

Cited By (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

Also Published As

Publication number Publication date
CN110493891B (en) 2021-05-11

Similar Documents

Publication Publication Date Title
CN108510389B (en) Intelligent contract calling method and device based on block chain and readable storage medium
CN106850746B (en) The method and device of smooth service upgrading
CN109831511A (en) Method and equipment for scheduling content delivery network CDN edge nodes
CN103384237B (en) Method for sharing IaaS cloud account, shared platform and network device
US20200328984A1 (en) Method and apparatus for allocating resource
CN107948284A (en) A kind of service inserting method, equipment and system based on micro services framework
US11716264B2 (en) In situ triggered function as a service within a service mesh
CN110765024A (en) Simulation test method, simulation test device, electronic equipment and computer-readable storage medium
CN109586969A (en) Content distributing network disaster recovery method, device, computer equipment and storage medium
CN109510878B (en) Long connection session keeping method and device
CN108933829A (en) A kind of load-balancing method and device
CN110311989A (en) A kind of gray scale dissemination method, device, storage medium, equipment and system
CN114244717B (en) Configuration method and device of virtual network card resources, computer equipment and medium
CN109450976A (en) A kind of method and device of the access of operation system
CN104618388B (en) Fast registration login method and corresponding resetting server, information server
CN112565406B (en) Gray release method, gray release system and electronic equipment
CN109618003B (en) Server planning method, server and storage medium
CN109104368B (en) Connection request method, device, server and computer readable storage medium
CN109788029A (en) Gray scale call method, device, terminal and the readable storage medium storing program for executing of micro services
CN110191186A (en) CDN server dispatching method, equipment and computer readable storage medium
WO2020104988A1 (en) Fast session restoration for latency sensitive middleboxes
CN111431730A (en) Service processing method, system, computer equipment and readable medium
CN110493891A (en) Resource allocation methods, apparatus and system
CN108737591A (en) A kind of method and device of service configuration
CN109729139A (en) Access request retransmission method, device, equipment and readable storage medium storing program for executing

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