CN108616576A - A kind of method and apparatus of scheduling application server - Google Patents

A kind of method and apparatus of scheduling application server Download PDF

Info

Publication number
CN108616576A
CN108616576A CN201810307673.XA CN201810307673A CN108616576A CN 108616576 A CN108616576 A CN 108616576A CN 201810307673 A CN201810307673 A CN 201810307673A CN 108616576 A CN108616576 A CN 108616576A
Authority
CN
China
Prior art keywords
application server
server
application
respective items
service request
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
CN201810307673.XA
Other languages
Chinese (zh)
Other versions
CN108616576B (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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201810307673.XA priority Critical patent/CN108616576B/en
Publication of CN108616576A publication Critical patent/CN108616576A/en
Application granted granted Critical
Publication of CN108616576B publication Critical patent/CN108616576B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1031Controlling of the operation of servers by a load balancer, e.g. adding or removing servers that serve requests

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of method and apparatus of scheduling application server, belong to field of cloud computer technology, wherein the method includes:When receiving the service request of intended application, dispatch server obtains the correspondence of application server and the configuration surroundings of application server load;The dispatch server searches whether that there are the corresponding destination application servers of the configuration surroundings of the intended application in the correspondence;If it does, the dispatch server, which then dispatches the destination application server, handles the service request, otherwise service request described in random schedule application server processes.Using the present invention, the efficiency of processing business request can be improved.

Description

A kind of method and apparatus of scheduling application server
Technical field
The present invention relates to field of cloud computer technology more particularly to a kind of method and apparatus of scheduling application server.
Background technology
Cloud computing service platform is that a kind of various kinds of equipment process resource that provided a user in the form of resource shared pool (is such as deposited Store up resource, network transmission resource, application software resources) service platform, user can utilize these equipment process resources carry out All kinds of business, such as data storage/calculating, using installation/operation business.
For cloud computing service platform when providing a user cloud computing service, the dispatch server of cloud computing service platform can be with Based on Client-initiated service request, an application server is randomly assigned to handle the service request.For applying class business Request, the installation applied such as A/operation request, the configuration surroundings that application server can be applied based on A, such as system architecture, configuration File, to handle the service request of A applications.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
Dispatch server does not have when receiving the service request of A applications in the application server very maximum probability that is randomly assigned There are the configuration surroundings of load A applications, in this way, application server needs that more time and system resource is first spent to load A applications Configuration surroundings, could handle A application service request, lead to the less efficient of application server processes service request.Also, When dispatch server frequently receives the service request using A, the service request of A applications is often by different application servers Processing so that repeat to be loaded by different application servers using the configuration surroundings of A, cause the waste of system resource.
Invention content
In order to solve problems in the prior art, an embodiment of the present invention provides a kind of methods and dress of scheduling application server It sets.The technical solution is as follows:
On the one hand, a kind of method of scheduling application server is provided, the method includes:
When receiving the service request of intended application, dispatch server obtains application server and application server load Configuration surroundings correspondence;
The dispatch server searches whether that there are the configuration surroundings of intended application correspondences in the correspondence Destination application server;
If it does, the dispatch server, which then dispatches the destination application server, handles the service request, otherwise Service request described in random schedule application server processes.
Further, after the dispatch server then dispatches the destination application server processing service request, Further include:
The dispatch server deletes the configuration surroundings of the intended application in the correspondence and the target is answered With the respective items of server.
Further, the method further includes:
When meeting the preset deletion condition, the dispatch server indicates that the destination application server deletes the target Using, and preserve the configuration surroundings for retaining the intended application in duration presetting;
The dispatch server increases the configuration surroundings of the intended application in the correspondence and the target is answered With the respective items of server.
Further, the method further includes:
If detect the duration of storage of the respective items be more than it is default preserve duration, in institute if the dispatch server It states and deletes the respective items in correspondence, and indicate that the destination application server deletes the configuration ring of the intended application Border.
Further, described if it does, the dispatch server is then dispatched described in destination application server processing Service request, including:
If there are the respective items of multiple configuration surroundings for recording and having the intended application, the tune in the correspondence Then determination has stored the shortest target respective items of duration to degree server in multiple respective items;
The dispatch server determines that the application server recorded in the target respective items is destination application server, and It dispatches the destination application server and handles the service request.
Further, described if it does, the dispatch server is then dispatched described in destination application server processing Service request, including:
If there are the respective items of multiple configuration surroundings for recording and having the intended application, the tune in the correspondence Server is spent then in the application server of multiple respective items records, it is determining to load minimum application server as the mesh Application server is marked, and dispatches the destination application server and handles the service request.
On the other hand, a kind of device of scheduling application server is provided, described device includes
Acquisition module, for when receiving the service request of intended application, obtaining application server and application server The correspondence of the configuration surroundings of load;
Searching module, for searching whether that there are the configuration surroundings of the intended application are corresponding in the correspondence Destination application server;
Scheduler module, for if it is present dispatching the destination application server handles the service request, otherwise with Machine dispatches service request described in application server processes.
Further, described device further includes:
Removing module, after dispatching the destination application server processing service request for the scheduler module, The respective items of the configuration surroundings and the destination application server of the intended application are deleted in the correspondence.
Further, described device further includes:
Control module, for when meeting the preset deletion condition, indicating that the destination application server deletes the target Using, and preserve the configuration surroundings for retaining the intended application in duration presetting;Increase the mesh in the correspondence Mark the respective items of the configuration surroundings and the destination application server of application.
Further, the removing module, is specifically used for:
If detecting that the duration of storage of the respective items is more than default preservation duration, deleted in the correspondence Except the respective items, and indicate that the destination application server deletes the configuration surroundings of the intended application.
Further, the scheduler module, is specifically used for:
If there are the respective items of multiple configuration surroundings for recording and having the intended application in the correspondence, more Determination has stored the shortest target respective items of duration in a respective items;
It determines that the application server recorded in the target respective items is destination application server, and dispatches the target and answer The service request described in server process.
Further, the scheduler module, is additionally operable to:
If there are the respective items of multiple configuration surroundings for recording and having the intended application in the correspondence, more In the application server of a respective items record, determine that it is the destination application server to load minimum application server, And it dispatches the destination application server and handles the service request.
The advantageous effect that technical solution provided in an embodiment of the present invention is brought is:
In the embodiment of the present invention, when receiving the service request of any application, if dispatch server is in application service In the correspondence of device and the configuration surroundings of application server load, the application clothes for the configuration surroundings for being loaded with the application are found It is engaged in device, dispatch server can then dispatch the service request of the application server processes application, in this way, the application server can Directly to handle the service request of the application, without loading the configuration surroundings of the application again, so as to save system resource, The time of load configuration surroundings is saved, the efficiency of processing business request is improved.In addition, dispatch server also can indicate that using clothes Business device deletes the information for the configuration surroundings for applying and retaining the application, to increase corresponding configuration surroundings and answer in correspondence It is recorded with the mode of the respective items of server, so as to realize in the service request for receiving same application next time When, the application server of the configuration surroundings of the application is had been loaded with based on historical record, that is, priority scheduling to handle the application Service request.In addition, dispatch server can also be when the duration of storage of respective items be more than default preservation duration, instruction application Server deletes the configuration surroundings of application, so as to the efficiency of utilization rate and the processing business request of balanced system resource.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is a kind of schematic diagram of a scenario of scheduling application server provided in an embodiment of the present invention;
Fig. 2 is a kind of method flow diagram of scheduling application server provided in an embodiment of the present invention;
Fig. 3 is a kind of method flow diagram of scheduling application server provided in an embodiment of the present invention;
Fig. 4 is a kind of apparatus structure schematic diagram of scheduling application server provided in an embodiment of the present invention;
Fig. 5 is a kind of apparatus structure schematic diagram of scheduling application server provided in an embodiment of the present invention;
Fig. 6 is a kind of apparatus structure schematic diagram of scheduling application server provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of dispatch server provided in an embodiment of the present invention.
Specific implementation mode
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
An embodiment of the present invention provides a kind of methods of scheduling application server, and the executive agent of this method can be cloud meter Calculate the dispatch server in service platform.Cloud computing service platform can be made of dispatch server and application server, wherein Dispatch server can dispatch corresponding application server pair after receiving service request (as using installation/operation request) The service request is handled, and application server can be based on corresponding configuration surroundings (system architecture, configuration text such as application Part) handle the service request, dispatch server and application server can be deployed in the computer room of its management by cloud service provider.Tool The application scenarios of body can be as shown in Figure 1.It may each comprise processor, memory, transceiver in above-mentioned server, processor can For carrying out the processing of the scheduling application server in following flows, memory can be used for storing to be needed in following processing procedures The data of the data and generation wanted, transceiver can be used for sending and receiving the related data in following processing procedures.
Below in conjunction with specific implementation mode, process flow shown in Fig. 2 is described in detail, content can be as Under:
Step 201:When receiving the service request of intended application, dispatch server obtains application server and application clothes The correspondence of the configuration surroundings of business device load.
In force, user, can be from cloud such as Video Applications service, browser application service in order to carry out application service The equipment process resources such as server, network bandwidth are bought at service provider, these equipment process resources is then utilized to carry out application clothes Business.By taking user carries out Video Applications service as an example, which can be live streaming application or program request application, apply accordingly soft Part can be divided into service terminal software and client software, wherein service terminal software is safeguarded by user, can be responded and be come from The access request that client software is initiated, and corresponding Video Applications service is provided, client software may operate in viewing and regard On the terminal device (such as smart mobile phone, laptop) of the consumer of frequency.The cloud meter that user can be provided by cloud service provider The communication interface for calculating service platform, installation/fortune of above-mentioned service terminal software is sent to the dispatch server of cloud computing service platform Row service request.In this way, dispatch server can be based on above-mentioned service request, corresponding application server installation/operation is dispatched Above-mentioned service terminal software.
Specifically, the corresponding of configuration surroundings that dispatch server can be loaded with maintenance application server and application server is closed It is that the correspondence can be realized in the form of dispatching record table, can be with recording dispatching Server history in dispatching record table The application server of scheduling and the corresponding informance of Apply Names, such as the application server that number is 001 are corresponded to using A.It needs Illustrate, application server corresponding with certain Apply Names, due to the service request of its processed application before, this is answered The configuration surroundings of the application are loaded with server.Above-mentioned configuration surroundings can be that application server is applied to handle certain Service request needs pre-loaded system architecture, configuration file, for example, application server processing Video Applications installation/ When running service request, which can be by the container framework and cell therefor image file of load, with container Form install/run the Video Applications.In this way, when dispatch server receives the industry of intended application (can be arbitrary application) When business request, dispatch server can be closed from local the corresponding of configuration surroundings for obtaining application server and application server load System.
Step 202:Dispatch server searches whether that there are the corresponding mesh of the configuration surroundings of intended application in correspondence Mark application server.
In force, after dispatch server gets above-mentioned correspondence, it can search whether exist in correspondence The corresponding destination application server of configuration surroundings of intended application is loaded with the intended application clothes of the configuration surroundings of intended application Business device.Specifically, the mode of lookup can be keyword lookup, such as with intended application in the database of storage correspondence Entitled keyword is searched, if it is present destination application server corresponding with intended application can be found, if It is not present, then searches destination application server corresponding less than with intended application.
Step 203:If it does, dispatch server then regulation goal application server processes service request, otherwise at random Dispatch application server processes service request.
In force, if dispatch server finds answer corresponding with the configuration surroundings of intended application in correspondence With server, i.e. destination application server, then show that the destination application server is loaded with the configuration surroundings of intended application.This Sample, dispatch server can dispatch the service request that the destination application server carrys out processing target application, in turn, the intended application Server can directly processing target application service request, without again load intended application configuration surroundings, so as to The system resource for saving destination application server saves the time of load configuration surroundings, improves the efficiency of processing business request.
In addition, if dispatch server does not find application corresponding with the configuration surroundings of intended application in correspondence Server then shows that all application servers are not loaded with the configuration surroundings of intended application.At this moment, dispatch server can be with Random schedule application server carrys out the service request of processing target application.Later, the application server of the random schedule first loads The configuration surroundings of intended application are then based on configuration surroundings and handle the service request of intended application.Further, it dispatches Server can first be grouped all application servers, the then random schedule application service in one group of application server Device carrys out the service request of processing target application.For example, application server can be divided by dispatch server based on the height of load High load group and low-load group, then one application server of random schedule carrys out the business that processing target is applied in low-load group Request, in this way, can not only make each application server load balancing, can also improve the effect of application server processes service request Rate.
Optionally, in order to avoid multiple same service requests of destination application server processing target application simultaneously, scheduling Server can be handled as follows after regulation goal application server processes service request:Dispatch server is in correspondence The respective items for the configuration surroundings and destination application server that delete target is applied in relationship.
Wherein, in correspondence may include multiple respective items, each respective items can be that a history calls record, It can record the application server for the configuration surroundings for being loaded with certain application.
In force, if dispatch server successively receives the intended application that different user is sent out within a short period of time Same service request then dispatches clothes alternatively, successively receiving the multiple same service requests for the intended application that same user sends out Device be engaged in every time in correspondence when lookup dispatch server, can find identical destination application server, so as to Intended application clothes can be dispatched again in the above-mentioned service request of the untreated complete current intended application of destination application server The same service request of device processing target of being engaged in application.In order to avoid said circumstances, dispatch server can be in regulation goal application After the service request of server process intended application, delete target is applied in correspondence configuration surroundings and intended application The respective items of server, in this way, if dispatch server receives the same service request of intended application, dispatch server again The application server less than the configuration surroundings for being loaded with intended application will be searched in correspondence.In this case, it dispatches Server is referred to step 203 and carries out respective handling.
Optionally, a kind of processing of delete target application is given below, specific processing can be as shown in Figure 3:
Step 301:When meeting the preset deletion condition, dispatch server instruction destination application server delete target is answered With, and in the default configuration surroundings for preserving reservation intended application in duration.
Wherein, default deletion condition can be there are many setting means.For example, dispatch server receives intended application service The message that device completes the service request processing of intended application, alternatively, dispatch server detects that the purchase information of user is expired.
In force, when dispatch server detects that intended application is met the preset deletion condition, dispatch server can be with Instruction destination application server deletes intended application, such as can be answered to target by way of sending and deleting instruction It is sent with server and deletes instruction, so that destination application server deletes intended application.It should be noted that above-mentioned Following deletion information can be carried by deleting in instruction:Destination application server is in delete target in application, needing to answer target Configuration surroundings are retained.
Step 302:Dispatch server increases the configuration surroundings and destination application server of intended application in correspondence Respective items.
In force, dispatch server, can be by correspondence after instruction destination application server delete target application The mode for increasing the configuration surroundings of intended application and the respective items of destination application server in relationship, records intended application service Device is loaded with the information of the configuration surroundings of intended application.In this way, when the business that dispatch server receives intended application again is asked When asking, dispatch server can find record by the configuration surroundings of intended application and the respective items of destination application server The destination application server for being loaded with intended application configuration surroundings.Since the destination application server remains intended application Configuration surroundings, the destination application server may not need the configuration surroundings for loading intended application again, direct processing target application Service request, so as to improve processing business request efficiency.
It should be noted that when the application server processes of dispatch server random schedule complete the service request of certain application When, subsequent processing can also be carried out with reference to the process flow of Fig. 3.In this way, dispatch server is receiving the application for the second time When service request, the application server processes for the configuration surroundings for being loaded with the application can be dispatched, so as to improve processing industry The efficiency of business request.
Optionally, if destination application server for a long time again processing target application service request when, intended application Server can delete the configuration surroundings of reservation, and corresponding processing can be as follows:If detecting having deposited for respective items It is more than default preservation duration to store up duration, and dispatch server then deletes respective items in correspondence, and indicates intended application service The configuration surroundings of device delete target application.
In force, destination application server needs to spend certain system resource to retain the configuration surroundings of application, such as The fruit destination application server service request that processing target is not applied again within the longer term continues to retain configuration surroundings by drop The utilization rate of low system resource.For the efficiency that the utilization rate and processing business of balanced system resource are asked, dispatch server can It is detected with the duration of storage of the respective items of configuration surroundings and destination application server to intended application, when detecting It is more than default when preserving duration to store duration, dispatch server can delete target is applied in correspondence configuration surroundings with The respective items of destination application server, meanwhile, dispatch server indicates the configuration ring of destination application server delete target application Border.
Optionally, if the configuration surroundings for finding intended application are corresponding with multiple application servers, dispatch server An application server can therefrom be chosen as destination application server, correspondingly, the part processing of step 203 can be as Under:If there are the respective items of multiple configuration surroundings for recording and having intended application in correspondence, multiple if dispatch server Determination has stored the shortest target respective items of duration in respective items;Dispatch server determines the application clothes recorded in target respective items Business device is destination application server, and regulation goal application server processes service request.
In force, if the service request of all processed intended application of multiple application servers, can obtain from Fig. 3 Know, for these application servers after delete target application, dispatch server will increase multiple records in correspondence target The respective items of the configuration surroundings of application, and this multiple respective items has recorded different application servers respectively.It is easily understood that It is loaded with the application server of latest configuration environment (configuration file of such as latest edition, system architecture), can preferably be handled Service request.So, dispatch server, can be with base after finding multiple records and having the respective items of configuration surroundings of intended application In the storage duration of respective items, determine that record is loaded with the application server of latest configuration environment in multiple respective items Respective items have stored the shortest target respective items of duration.It should be noted that the duration of storage of respective items is shorter, show The time that dispatch server increases the respective items in correspondence is more late, then, the respective items record application server into The time that row application is deleted is also more late, then the configuration surroundings that application server retains when deletion is applied are also newer.Scheduling The application server recorded in target respective items can be determined as intended application service by server after determining target respective items Device, the then service request of regulation goal application server processes intended application.
Optionally, dispatch server can also be corresponding more in the configuration surroundings of intended application from the angle of load balancing One is chosen in a application server and is used as destination application server, correspondingly, the part processing of step 203 can be as follows:Such as There are the respective items of multiple configuration surroundings for recording and having intended application in fruit correspondence, dispatch server is then in multiple respective items In the application server of record, determine that it is destination application server to load minimum application server, and regulation goal application takes Device processing business of being engaged in request.
In force, dispatch server, can after finding multiple records and having the respective items of configuration surroundings of intended application To detect the respective loading condition of application server of multiple respective items records, such as currently available system resource ratio, residue Memory space.Later, dispatch server can will load minimum application server and be determined as destination application server, then adjust Spend the service request of destination application server processing target application.
In embodiments of the present invention, when receiving the service request of any application, if dispatch server takes in application In the correspondence of business device and the configuration surroundings of application server load, the application for the configuration surroundings for being loaded with the application is found Server, dispatch server can then dispatch the service request of the application server processes application, in this way, the application server The service request that the application can directly be handled, without loading the configuration surroundings of the application again, so as to save system money The time of load configuration surroundings is saved in source, improves the efficiency of processing business request.It is answered in addition, dispatch server also can indicate that The information that the configuration surroundings for applying and retaining the application are deleted with server, to increase corresponding configuration surroundings in correspondence It is recorded with the mode of the respective items of application server, is asked in the business for receiving same application next time so as to realize When asking, the application server of the configuration surroundings of the application is had been loaded with based on historical record, that is, priority scheduling to handle the application Service request.In addition, dispatch server can also be when the duration of storage of respective items be more than default preservation duration, instruction is answered The configuration surroundings that application is deleted with server, so as to the efficiency of utilization rate and the processing business request of balanced system resource.
Based on the same technical idea, the embodiment of the present invention additionally provides a kind of device of scheduling application server, such as Fig. 4 Shown, described device includes:
Acquisition module 401, for when receiving the service request of intended application, obtaining application server and application service The correspondence of the configuration surroundings of device load;
Searching module 402, for searching whether that there are the configuration surroundings pair of the intended application in the correspondence The destination application server answered;
Scheduler module 403, it is no for if it is present dispatching the destination application server handles the service request Then service request described in random schedule application server processes.
Optionally, as shown in figure 5, described device further includes:
Removing module 404 dispatches the destination application server for the scheduler module 403 and handles the service request Later, the respective items of the configuration surroundings and the destination application server of the intended application are deleted in the correspondence.
Optionally, as shown in fig. 6, described device further includes:
Control module 405, for when meeting the preset deletion condition, indicating that the destination application server deletes the mesh Mark application, and preserve the configuration surroundings for retaining the intended application in duration presetting;Described in increasing in the correspondence The respective items of the configuration surroundings of intended application and the destination application server.
Optionally, the removing module 404, is specifically used for:
If detecting that the duration of storage of the respective items is more than default preservation duration, deleted in the correspondence Except the respective items, and indicate that the destination application server deletes the configuration surroundings of the intended application.
Optionally, the scheduler module 403, is specifically used for:
If there are the respective items of multiple configuration surroundings for recording and having the intended application in the correspondence, more Determination has stored the shortest target respective items of duration in a respective items;
It determines that the application server recorded in the target respective items is destination application server, and dispatches the target and answer The service request described in server process.
Optionally, the scheduler module 403, is additionally operable to:
If there are the respective items of multiple configuration surroundings for recording and having the intended application in the correspondence, more In the application server of a respective items record, determine that it is the destination application server to load minimum application server, And it dispatches the destination application server and handles the service request.
In the embodiment of the present invention, when receiving the service request of any application, if dispatch server is in application service In the correspondence of device and the configuration surroundings of application server load, the application clothes for the configuration surroundings for being loaded with the application are found It is engaged in device, dispatch server can then dispatch the service request of the application server processes application, in this way, the application server can Directly to handle the service request of the application, without loading the configuration surroundings of the application again, so as to save system resource, The time of load configuration surroundings is saved, the efficiency of processing business request is improved.In addition, dispatch server also can indicate that using clothes Business device deletes the information for the configuration surroundings for applying and retaining the application, to increase corresponding configuration surroundings and answer in correspondence It is recorded with the mode of the respective items of server, so as to realize in the service request for receiving same application next time When, the application server of the configuration surroundings of the application is had been loaded with based on historical record, that is, priority scheduling to handle the application Service request.In addition, dispatch server can also be when the duration of storage of respective items be more than default preservation duration, instruction application Server deletes the configuration surroundings of application, so as to the efficiency of utilization rate and the processing business request of balanced system resource.
It should be noted that:Above-described embodiment provide scheduling application server device when dispatching application server, It only the example of the division of the above functional modules, can be as needed and by above-mentioned function distribution in practical application It is completed by different function modules, i.e., the internal structure of device is divided into different function modules, it is described above to complete All or part of function.In addition, the device for the scheduling application server that above-described embodiment provides and scheduling application server Embodiment of the method belongs to same design, and specific implementation process refers to embodiment of the method, and which is not described herein again.
Fig. 7 is the structural schematic diagram of dispatch server provided in an embodiment of the present invention.The dispatch server 700 can be because of configuration Or performance is different and generate bigger difference, may include one or more central processing units 722 (for example, one or More than one processor) and memory 732, one or more store the storage medium of application programs 742 or data 744 730 (such as one or more mass memory units).Wherein, memory 732 and storage medium 730 can be of short duration storages Or persistent storage.The program for being stored in storage medium 730 may include one or more modules (diagram does not mark), each Module may include to the series of instructions operation in dispatch server.Further, central processing unit 722 could be provided as It is communicated with storage medium 730, the series of instructions operation in storage medium 730 is executed on dispatch server 700.
Dispatch server 700 can also include one or more power supplys 726, one or more are wired or wireless Network interface 750, one or more input/output interfaces 758, one or more keyboards 756, and/or, one or More than one operating system 741, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM Etc..
Dispatch server 700 may include have memory and one either more than one program one of them or More than one program is stored in memory, and be configured to by one either more than one processor execute it is one or More than one program includes the instruction for carrying out above-mentioned scheduling application server.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.

Claims (12)

1. a kind of method of scheduling application server, which is characterized in that the method includes:
When receiving the service request of intended application, dispatch server obtain application server and application server load match Set the correspondence of environment;
The dispatch server searches whether that there are the corresponding mesh of the configuration surroundings of the intended application in the correspondence Mark application server;
If it does, the dispatch server, which then dispatches the destination application server, handles the service request, otherwise at random Dispatch service request described in application server processes.
2. according to the method described in claim 1, it is characterized in that, the dispatch server then dispatches the intended application service After the device processing service request, further include:
The dispatch server deletes the configuration surroundings of the intended application in the correspondence and the intended application takes The respective items of business device.
3. according to the method described in claim 2, it is characterized in that, the method further includes:
When meeting the preset deletion condition, the dispatch server indicates that the destination application server is deleted the target and answered With, and preserve the configuration surroundings for retaining the intended application in duration presetting;
The dispatch server increases the configuration surroundings of the intended application in the correspondence and the intended application takes The respective items of business device.
4. according to the method described in claim 3, it is characterized in that, the method further includes:
If detect the duration of storage of the respective items be more than it is default preserve duration, described right if the dispatch server It should be related to the middle deletion respective items, and indicate that the destination application server deletes the configuration surroundings of the intended application.
5. according to the method described in claim 1, it is characterized in that, described if it does, the dispatch server then dispatches institute It states destination application server and handles the service request, including:
If there are the respective items of multiple configuration surroundings for recording and having the intended application, the scheduling clothes in the correspondence Then determination has stored the shortest target respective items of duration to business device in multiple respective items;
The dispatch server determines that the application server recorded in the target respective items is destination application server, and dispatches The destination application server handles the service request.
6. according to the method described in claim 1, it is characterized in that, described if it does, the dispatch server then dispatches institute It states destination application server and handles the service request, including:
If there are the respective items of multiple configuration surroundings for recording and having the intended application, the scheduling clothes in the correspondence Business device then in the application server of multiple respective items records, determines that it is that the target is answered to load minimum application server With server, and dispatches the destination application server and handle the service request.
7. a kind of device of scheduling application server, which is characterized in that described device includes:
Acquisition module, for when receiving the service request of intended application, obtaining application server and application server load Configuration surroundings correspondence;
Searching module, for searching whether that there are the corresponding targets of the configuration surroundings of the intended application in the correspondence Application server;
Scheduler module, it is otherwise random to adjust for if it is present dispatching the destination application server handles the service request Spend service request described in application server processes.
8. device according to claim 7, which is characterized in that described device further includes:
Removing module, after dispatching the destination application server processing service request for the scheduler module, in institute State the respective items of configuration surroundings and the destination application server that the intended application is deleted in correspondence.
9. device according to claim 8, which is characterized in that described device further includes:
Control module, for when meeting the preset deletion condition, indicating that the destination application server deletes the intended application, And retain the configuration surroundings of the intended application in default preservation duration;Increase the intended application in the correspondence Configuration surroundings and the destination application server respective items.
10. device according to claim 9, which is characterized in that the removing module is specifically used for:
If detecting that the duration of storage of the respective items is more than default preservation duration, institute is deleted in the correspondence Respective items are stated, and indicate that the destination application server deletes the configuration surroundings of the intended application.
11. device according to claim 7, which is characterized in that the scheduler module is specifically used for:
If there are the respective items of multiple configuration surroundings for recording and having the intended application in the correspondence, in multiple institutes It states determination in respective items and has stored the shortest target respective items of duration;
It determines that the application server recorded in the target respective items is destination application server, and dispatches the intended application clothes Business device handles the service request.
12. device according to claim 7, which is characterized in that the scheduler module is additionally operable to:
If there are the respective items of multiple configuration surroundings for recording and having the intended application in the correspondence, in multiple institutes In the application server for stating respective items record, determine that it is the destination application server to load minimum application server, and adjust It spends the destination application server and handles the service request.
CN201810307673.XA 2018-04-08 2018-04-08 Method and device for scheduling application server Expired - Fee Related CN108616576B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810307673.XA CN108616576B (en) 2018-04-08 2018-04-08 Method and device for scheduling application server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810307673.XA CN108616576B (en) 2018-04-08 2018-04-08 Method and device for scheduling application server

Publications (2)

Publication Number Publication Date
CN108616576A true CN108616576A (en) 2018-10-02
CN108616576B CN108616576B (en) 2022-05-27

Family

ID=63659813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810307673.XA Expired - Fee Related CN108616576B (en) 2018-04-08 2018-04-08 Method and device for scheduling application server

Country Status (1)

Country Link
CN (1) CN108616576B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112751945A (en) * 2021-04-02 2021-05-04 人民法院信息技术服务中心 Method, device, equipment and storage medium for realizing distributed cloud service
CN112887414A (en) * 2021-02-01 2021-06-01 南方电网数字电网研究院有限公司 Resource information batch pushing method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110756A (en) * 2006-07-18 2008-01-23 华为技术有限公司 Application server distribution method and device
WO2009117921A1 (en) * 2008-03-28 2009-10-01 华为技术有限公司 Distributed network management system, network management server and method
CN102185900A (en) * 2011-04-18 2011-09-14 北京新媒传信科技有限公司 Application service platform system and method for developing application services
WO2012142854A1 (en) * 2011-04-18 2012-10-26 北京新媒传信科技有限公司 Application service platform system and implementation method thereof
CN107819825A (en) * 2017-10-11 2018-03-20 深圳市买买提乐购金融服务有限公司 A kind of service scheduling method, device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110756A (en) * 2006-07-18 2008-01-23 华为技术有限公司 Application server distribution method and device
WO2009117921A1 (en) * 2008-03-28 2009-10-01 华为技术有限公司 Distributed network management system, network management server and method
CN102185900A (en) * 2011-04-18 2011-09-14 北京新媒传信科技有限公司 Application service platform system and method for developing application services
WO2012142854A1 (en) * 2011-04-18 2012-10-26 北京新媒传信科技有限公司 Application service platform system and implementation method thereof
CN107819825A (en) * 2017-10-11 2018-03-20 深圳市买买提乐购金融服务有限公司 A kind of service scheduling method, device and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887414A (en) * 2021-02-01 2021-06-01 南方电网数字电网研究院有限公司 Resource information batch pushing method and device, computer equipment and storage medium
CN112887414B (en) * 2021-02-01 2022-01-25 南方电网数字电网研究院有限公司 Resource information batch pushing method and device, computer equipment and storage medium
CN112751945A (en) * 2021-04-02 2021-05-04 人民法院信息技术服务中心 Method, device, equipment and storage medium for realizing distributed cloud service
CN112751945B (en) * 2021-04-02 2021-08-06 人民法院信息技术服务中心 Method, device, equipment and storage medium for realizing distributed cloud service

Also Published As

Publication number Publication date
CN108616576B (en) 2022-05-27

Similar Documents

Publication Publication Date Title
US7631034B1 (en) Optimizing node selection when handling client requests for a distributed file system (DFS) based on a dynamically determined performance index
CN113641457B (en) Container creation method, device, apparatus, medium, and program product
WO2021159638A1 (en) Method, apparatus and device for scheduling cluster queue resources, and storage medium
CN109951323B (en) Log analysis method and system
CN105516086B (en) Method for processing business and device
CN110383764A (en) The system and method for usage history data processing event in serverless backup system
US9104488B2 (en) Support server for redirecting task results to a wake-up server
CN109033814A (en) intelligent contract triggering method, device, equipment and storage medium
CN110581784B (en) Node health check method, device and equipment
CN109960579B (en) Method and device for adjusting service container
CN108616576A (en) A kind of method and apparatus of scheduling application server
CN114020444B (en) Calling system and method for resource service application in enterprise digital middle station
CN108124021B (en) Method, device and system for obtaining Internet Protocol (IP) address and accessing website
CN106850822A (en) Load-balancing method, equipment and distributed system
CN114640610B (en) Cloud-protogenesis-based service management method and device and storage medium
CN115905151A (en) Method, system and device for querying circulation information based on backup log
CN110909072A (en) Data table establishing method, device and equipment
CN115048186A (en) Method and device for processing expansion and contraction of service container, storage medium and electronic equipment
US9479579B2 (en) Grouping processing method and system
CN109062694B (en) Method for migrating application program to cloud platform
US8015207B2 (en) Method and apparatus for unstructured data mining and distributed processing
CN113485828A (en) Distributed task scheduling system and method based on quartz
CN113296913A (en) Data processing method, device and equipment based on single cluster and storage medium
CN114443234A (en) Data analysis method, data analysis device, NWDAF group and readable storage medium
CN111459653A (en) Cluster scheduling method, device and system and electronic 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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20220527