[summary of the invention]
Based on this, be necessary the cloud cooperation providing a kind of tunable different complete cloud service with improve network resource utilization cloudy between cloud service dispatching method.
A cloud service dispatching method between cloudy, comprising:
Receive the log-on message that each cloud sends, described log-on message comprises the information on services of the service that cloud has;
The corresponding relation of the service of coupling mutually between cloud is set up according to described log-on message;
Receive the cloud service request that cloud sends;
Search the cloud with the service matched with the service of asking in described cloud service request, obtain the cloud matched;
By described cloud service request scheduling to described in the cloud that matches.
Wherein in an embodiment, described information on services comprises service function content information; The described step setting up the corresponding relation of the service of coupling mutually between cloud according to described log-on message comprises:
For cloud distributes cloud ID, and the respective services distribution services ID had for cloud, set up the corresponding relation of cloud ID and service ID and the corresponding relation of service ID and information on services;
The service function content information had between each cloud is contrasted, obtain the service function content information of coupling mutually, set up the corresponding relation between service ID corresponding to the mutual service function content information mated, obtain the corresponding relation between mutual service ID of mating.
Wherein in an embodiment, in described cloud service request, comprise the information on services of request;
Described step of searching the cloud with the service matched with the service of asking in cloud service request comprises:
Search the service ID that the information on services of described request is corresponding, the service ID matched with this service ID is searched in corresponding relation between the service ID of described mutual coupling, and described cloud ID with search in the corresponding relation of service ID described in cloud ID corresponding to the service ID that matches, obtain the cloud ID matched.
Wherein in an embodiment, in described cloud service request, also comprise the Service Instance quantity of request; Described log-on message also comprises cloud mailing address; Described method also comprises step: the corresponding relation setting up cloud ID and cloud mailing address;
Described by cloud service request scheduling to described in the step of cloud that matches comprise:
The cloud mailing address that the cloud ID matched described in searching is corresponding, and the information on services that the service ID matched described in searching is corresponding;
Send to the described cloud matched the instruction starting service according to the cloud mailing address found, comprise the information on services found in described instruction, and comprise the Service Instance quantity comprised in described cloud service request.
Wherein in an embodiment, described method also comprises step:
The result data that cloud sends are found described in reception;
Described result data are returned to the cloud of initiating described cloud service request.
A cloud service dispatching patcher between cloudy, comprising:
Receiver module, for receiving the log-on message that each cloud sends, described log-on message comprises the information on services of the service that cloud has;
Coupling information on services builds module, for setting up the corresponding relation of the service of coupling mutually between cloud according to described log-on message;
Described receiver module is also for receiving the cloud service request that cloud sends;
Coupling cloud searches module, for searching the cloud with the service matched with the service of asking in described cloud service request, obtains the cloud matched;
Service request scheduler module, for by described cloud service request scheduling to described in the cloud that matches.
Wherein in an embodiment, described information on services comprises service function content information;
Described coupling information on services builds module and comprises:
Mark distribution module, for being cloud distribution cloud ID, and the respective services distribution services ID had for cloud;
Corresponding relation building module, for the corresponding relation of the corresponding relation and service ID and information on services of setting up cloud ID and service ID;
Feature content matching module, for being contrasted by the service function had between each cloud content information, obtains the service function content information of coupling mutually;
Described corresponding relation building module also for setting up the corresponding relation between service ID corresponding to the mutual service function content information mated, obtains the corresponding relation between mutual service ID of mating.
Wherein in an embodiment, in described cloud service request, comprise the information on services of request;
Described coupling cloud searches module for service ID corresponding to the information on services of searching described request, the service ID matched with this service ID is searched in corresponding relation between the service ID of described mutual coupling, and described cloud ID with search in the corresponding relation of service ID described in cloud ID corresponding to the service ID that matches, obtain the cloud ID matched.
Wherein in an embodiment, in described cloud service request, also comprise the Service Instance quantity of request; Described log-on message also comprises cloud mailing address; Described corresponding relation building module is also for setting up the corresponding relation of cloud ID and cloud mailing address;
Described service request scheduler module comprises:
Search module, the cloud mailing address that the cloud ID for matching described in searching is corresponding, and the information on services that the service ID matched described in searching is corresponding;
Instruction scheduling module, for sending to the described cloud matched the instruction starting service according to the cloud mailing address found, comprising the information on services found, and comprising the Service Instance quantity comprised in described cloud service request in described instruction.
Wherein in an embodiment, described receiver module is also for finding the result data that cloud sends described in receiving;
Described system also comprises result scheduler module, for described result data being returned to the cloud of initiating described cloud service request.
Above-mentioned cloudy between cloud service dispatching method and system, the log-on message sent according to each cloud in advance sets up the corresponding relation of the service of the mutual coupling had between cloud, when receiving the cloud service request that certain cloud sends, then by this cloud service request scheduling to the cloud of cloud service that can provide coupling, the cloud service thus the different cloud of tunable has coacted, improve the resource-sharing rate between cloud, thus improve network resource utilization.
[embodiment]
As shown in Figure 1, in one embodiment, a kind of cloudy between cloud service dispatching method, comprising:
Step S101, receive the log-on message that each cloud sends, log-on message comprises the information on services of the service that cloud has.
Step S102, sets up the corresponding relation of the service of coupling mutually between cloud according to log-on message.That is, if the first service of the first cloud mates mutually with the second service of the second cloud, then the corresponding relation of first service and second service is set up.
In one embodiment, information on services comprises service function content information; Step S102 comprises the following steps: be that cloud distributes cloud ID, and the respective services distribution services ID had for cloud, set up the corresponding relation of cloud ID and service ID and the corresponding relation of service ID and information on services; Further, the service function content information had between each cloud is contrasted, the mutual service function content information mated of acquisition, sets up the corresponding relation between service ID corresponding to the mutual service function content information mated, obtains the corresponding relation between mutual service ID of mating.
In one embodiment, the service function content information that two can be carried out contrasting carries out participle, relatively whether two service function content informations exist identical word, obtain the identical rate of word of two service function content informations, if the identical rate of word reaches preset value, then judge that two service function content informations mate mutually.
Step S103, receives the cloud service request that certain cloud sends.
Step S104, searches the cloud with the service matched with the service of asking in this cloud service request, obtains the cloud matched.
In one embodiment, the information on services of request is comprised in cloud service request; Step S104 comprises the following steps: the service ID that the information on services of search request is corresponding, the service ID matched with this service ID is searched in corresponding relation between the service ID of the mutual coupling of above-mentioned foundation, and at the cloud ID of the above-mentioned foundation cloud ID corresponding with searching this service ID matched in the corresponding relation of service ID, obtain the cloud ID matched.
In one embodiment, above-mentioned cloudy between cloud service dispatching method also comprise step: receive the started Service Instance quantity information that cloud sends, what can start that Service Instance quantity information comprises that the information on services Service Instance quantity corresponding with this information on services forms is several right; Corresponding relation between the Service Instance quantity that the service ID that record information on services is corresponding is corresponding with this information on services.
After searching the service ID matched with this service ID in the corresponding relation of step S104 between the service ID of the mutual coupling of above-mentioned foundation, choose service ID that in the service ID matched found, Service Instance quantity is maximum as the service ID matched, judge whether Service Instance quantity corresponding to service ID that this matches is more than or equal to the Service Instance quantity of request, if, then enter above-mentioned foundation cloud ID with search in the corresponding relation of service ID described in the step of cloud ID corresponding to the service ID that matches, if not, then return the failed information of request to the cloud of initiating cloud service request.
Step S105, by cloud service request scheduling to the cloud matched.
In one embodiment, the Service Instance quantity of request is also comprised in cloud service request; Above-mentioned log-on message also comprises cloud mailing address; Above-mentioned cloudy between cloud service dispatching method also comprise step: the corresponding relation setting up cloud ID and cloud mailing address.
Step S105 comprises the following steps: search the cloud mailing address that the above-mentioned cloud ID matched is corresponding, and search information on services corresponding to this service ID matched; Send to the above-mentioned cloud matched the instruction starting service according to the cloud mailing address found, comprise the information on services found in this instruction, and comprise the Service Instance quantity comprised in cloud service request.
In one embodiment, information on services also comprises the input data format of service; Step S102 also comprises: contrast between input data format corresponding for the service function content information mutually mated, if two input data formats are different, then obtains the address two input data formats being changed into the input transfer functions of same format; Set up service ID corresponding to the service function content information of coupling mutually, input the corresponding relation of the address of transfer functions.
Cloud service request also comprises the data of request process.
Step S105 is further comprising the steps of: judge whether the service ID corresponding to information on services of asking and the above-mentioned service ID matched exist the address of corresponding input transfer functions, if not, then send request the data of process to the above-mentioned cloud matched according to the above-mentioned cloud mailing address found, if, then according to the call by location function of the input transfer functions of correspondence, the data of request process are transformed, sends the data of the request process after transforming according to the above-mentioned cloud mailing address found to the above-mentioned cloud matched.
In one embodiment, information on services also comprises the output data format of service; Step S102 is further comprising the steps of: contrast between output data format corresponding for the service function content information mutually mated, if two export data format difference, then obtain and export two the address that data formats change into the output transfer functions of same format; Set up service ID corresponding to the service function content information of coupling mutually, export the corresponding relation of the address of transfer functions.
Above-mentioned cloudy between cloud service dispatching method further comprising the steps of: find described in reception cloud send result data; Result data are returned to the cloud of initiating cloud service request.In one embodiment, step result data being returned to the cloud of initiating described cloud service request comprises the following steps: judge whether the service ID corresponding to information on services of asking and the above-mentioned service ID matched exist the address of corresponding output transfer functions, if not, to the cloud transmission processing result data of initiating cloud service request, if, then according to the call by location function of the output transfer functions of correspondence, result data are transformed, sends the result data after transforming to the cloud of initiating cloud service request.
Above-mentioned cloudy between the step that comprises of cloud service dispatching method can be performed by cloud central administration node.
In one embodiment, a kind of cloudy between cloud service dispatching method, comprise the following steps:
(1) cloud central administration node receives the log-on message that each cloud sends, and log-on message comprises information on services and the cloud mailing address of the service that cloud has; Information on services comprises service function content information, the input data format of service and the output data format of service.
(2) cloud central administration node is that cloud distributes cloud ID, and the respective services distribution services ID had for cloud, set up the corresponding relation of cloud ID and service ID and the corresponding relation of service ID and information on services, and set up the corresponding relation of cloud ID and cloud mailing address.
(3) the service function content information had between each cloud contrasts by cloud central administration node, obtain the service function content information of coupling mutually, set up the corresponding relation between service ID corresponding to the mutual service function content information mated, obtain the corresponding relation between mutual service ID of mating.
(4) cloud central administration node contrasts between input data format corresponding for the service function content information mutually mated, if two input data formats are different, then obtain the address two input data formats being changed into the input transfer functions of same format; Set up service ID corresponding to the service function content information of coupling mutually, input the corresponding relation of the address of transfer functions.
Contrast between output data format corresponding for the service function content information mutually mated, if two export data format difference, then obtain and export two the address that data formats change into the output transfer functions of same format; Set up service ID corresponding to the service function content information of coupling mutually, export the corresponding relation of the address of transfer functions;
In one embodiment, can set up service ID corresponding to the service function content information of mutually coupling, input transfer functions address and export the corresponding relation of address of transfer functions.Such as, Si and Sj is the service ID of coupling mutually, the address of the input transfer functions between the input data format that Si is corresponding and input data format corresponding to Sj is Adress1, the address of the output transfer functions between the output data format that Si is corresponding and output data format corresponding to Sj is Adress2, then can set up the corresponding relation of Si, Sj, Adress1 and Adress2, by Si, Sj, Adress1 and Adress2 corresponding stored in tables of data.
(5) cloud central administration node receives the started Service Instance quantity information that cloud sends, and what can start that Service Instance quantity information comprises that the information on services Service Instance quantity corresponding with this information on services forms is several right; Corresponding relation between the Service Instance quantity that the service ID that cloud central administration node record information on services is corresponding is corresponding with this information on services.
(6) cloud central administration node receives the cloud service request that cloud sends; The information on services of request, the Service Instance quantity of request and the data of request process are comprised in cloud service request.
(7) service ID that the information on services of cloud central administration node search request is corresponding, the service ID matched with this service ID is searched in corresponding relation between the service ID of the mutual coupling of above-mentioned foundation, choose service ID that in the service ID matched found, Service Instance quantity is maximum as the service ID matched, judge whether Service Instance quantity corresponding to service ID that this matches is more than or equal to the Service Instance quantity of request, if, at the cloud ID that the cloud ID of above-mentioned foundation is corresponding with searching this service ID matched in the corresponding relation of service ID, obtain the cloud ID matched, if not, then return the failed information of request to the cloud of initiating cloud service request, and terminate.
(8) cloud central administration node searches cloud mailing address corresponding to the above-mentioned cloud ID matched, and searches information on services corresponding to this service ID matched; Send to the above-mentioned cloud matched the instruction starting service according to the cloud mailing address found, comprise the information on services found in this instruction, and comprise the Service Instance quantity comprised in cloud service request.
(9) cloud central administration node judges whether the service ID corresponding to information on services of asking and the above-mentioned service ID matched exist the address of corresponding input transfer functions, if not, then send request the data of process to the above-mentioned cloud matched according to the above-mentioned cloud mailing address found, if, then according to the call by location function of the input transfer functions of correspondence, the data of request process are transformed, sends the data of the request process after transforming according to the above-mentioned cloud mailing address found to the described cloud matched.
(10) cloud starts the Service Instance of respective numbers according to the instruction starting service, processes, and return result data to cloud central administration node to the data that above-mentioned request processes.
(11) cloud central administration node receives the above-mentioned result data finding cloud and send;
Judge whether the service ID corresponding to information on services of asking and the above-mentioned service ID matched exist the address of corresponding output transfer functions, if not, to the cloud transmission processing result data of initiating cloud service request, if, then according to the call by location function of the output transfer functions of correspondence, result data are transformed, sends the result data after transforming to the cloud of initiating cloud service request.
As shown in Figure 2, in one embodiment, a kind of cloudy between cloud service dispatching patcher, comprise receiver module 10, coupling information on services build module 20, coupling cloud searches module 30 and service request scheduling module 40, wherein:
The log-on message that receiver module 10 sends for receiving each cloud, log-on message comprises the information on services of the service that cloud has.
Coupling information on services builds module 20 for setting up the corresponding relation of the service of coupling mutually between cloud according to log-on message.That is, if the first service of the first cloud mates mutually with the second service of the second cloud, then mate information on services and build the corresponding relation that module 20 sets up first service and second service.
In one embodiment, information on services comprises service function content information; As shown in Figure 3, coupling information on services builds module 20 and comprises mark distribution module 210, corresponding relation building module 220 and feature content matching module 230, wherein:
Mark distribution module 210 is for being cloud distribution cloud ID, and the respective services distribution services ID had for cloud.
Corresponding relation building module 220 is for the corresponding relation of the corresponding relation and service ID and information on services of setting up cloud ID and service ID.
Feature content matching module 230, for being contrasted by the service function had between each cloud content information, obtains the service function content information of coupling mutually.
In one embodiment, the service function content information that two can be carried out contrasting by feature content matching module 230 carries out participle, relatively whether two service function content informations exist identical word, obtain the identical rate of word of two service function content informations, if the identical rate of word reaches preset value, then judge that two service function content informations mate mutually.
Corresponding relation building module 220 also for setting up the corresponding relation between service ID corresponding to the mutual service function content information mated, obtains the corresponding relation between mutual service ID of mating.
Receiver module 10 is also for receiving the cloud service request that certain cloud sends.
Coupling cloud searches module 30 for searching the cloud with the service matched with the service of asking in this cloud service request, obtains the cloud matched.
In one embodiment, the information on services of request is comprised in cloud service request; Coupling cloud searches service ID corresponding to the information on services of module 30 search request, the service ID matched with this service ID is searched in corresponding relation between the service ID of the mutual coupling of above-mentioned foundation, and at the cloud ID of the above-mentioned foundation cloud ID corresponding with searching this service ID matched in the corresponding relation of service ID, obtain the cloud ID matched.
In one embodiment, receiver module 10 is also for receiving the started Service Instance quantity information that cloud sends, and what can start that Service Instance quantity information comprises that the information on services Service Instance quantity corresponding with this information on services forms is several right; Corresponding relation building module 220 is also for recording the corresponding relation between service ID corresponding to the information on services Service Instance quantity corresponding with this information on services.
In the present embodiment, coupling cloud searches module 30 for after searching the service ID matched with this service ID in the corresponding relation between the service ID of the mutual coupling of above-mentioned foundation, choose service ID that in the service ID finding and match, Service Instance quantity is maximum as the service ID matched, judge whether Service Instance quantity corresponding to service ID that this matches is more than or equal to the Service Instance quantity of request, if, then perform above-mentioned foundation cloud ID with search in the corresponding relation of service ID described in the step of cloud ID corresponding to the service ID that matches, if not, then return the failed information of request to the cloud of initiating cloud service request.
Service request scheduler module 40 for by cloud service request scheduling to the cloud matched.
In one embodiment, the Service Instance quantity of request is also comprised in cloud service request; Above-mentioned log-on message also comprises cloud mailing address; Corresponding relation building module 220 is also for setting up the corresponding relation of cloud ID and cloud mailing address.
As shown in Figure 4, service request scheduler module 40 comprises searches module 410 and instruction scheduling module 420, wherein:
Search module 410 for searching cloud mailing address corresponding to the above-mentioned cloud ID matched, and search information on services corresponding to this service ID matched.
Instruction scheduling module 420, for sending to the above-mentioned cloud matched the instruction starting service according to the cloud mailing address found, comprises the information on services found, and comprises the Service Instance quantity comprised in cloud service request in this instruction.
In one embodiment, information on services also comprises the input data format of service; As shown in Figure 5, coupling information on services builds module 20 and also comprises pattern matched module 240 and transfer functions acquisition module 250, wherein: pattern matched module 240 is for contrasting between input data format corresponding for the service function of mutually mating content information.If transfer functions acquisition module 250 is different for two input data formats, then obtain the address two input data formats being changed into the input transfer functions of same format.Corresponding relation building module 220 is also for setting up service ID corresponding to the mutual service function content information mated, inputting the corresponding relation of the address of transfer functions.
Cloud service request also comprises the data of request process.
As shown in Figure 6, service request scheduler module 40 also comprises input data dispatch module 430, for judging whether the service ID corresponding to information on services of asking and the above-mentioned service ID matched exist the address of corresponding input transfer functions, if not, then send request the data of process to the above-mentioned cloud matched according to the above-mentioned cloud mailing address found, if, then according to the call by location function of the input transfer functions of correspondence, the data of request process are transformed, send the data of the request process after transforming to the above-mentioned cloud matched according to the above-mentioned cloud mailing address found.
In one embodiment, information on services also comprises the output data format of service; Pattern matched module 240 is also for contrasting between output data format corresponding for the service function of mutually mating content information.If it is different that transfer functions acquisition module 250 also exports data format for two, then obtain and export two the address that data format changes into the output transfer functions of same format.Corresponding relation building module 220 is also for setting up service ID corresponding to the mutual service function content information mated, exporting the corresponding relation of the address of transfer functions.
Receiver module 10 is also for receiving the result data finding cloud and send; Above-mentioned cloudy between cloud service dispatching patcher also comprise result scheduler module (not shown), for result data being returned to the cloud of initiating cloud service request.In one embodiment, result scheduler module is for judging whether the service ID corresponding to information on services of asking and the above-mentioned service ID matched exist the address of corresponding output transfer functions, if not, to the cloud transmission processing result data of initiating cloud service request, if, then according to the call by location function of the output transfer functions of correspondence, result data are transformed, send the result data after transforming to the cloud of initiating cloud service request.
Above-mentioned cloudy between cloud service dispatching method and system, the log-on message sent according to each cloud in advance sets up the corresponding relation of the service of the mutual coupling had between cloud, when receiving the cloud service request that certain cloud sends, then can by this cloud service request scheduling to the cloud of cloud service that can provide coupling, the cloud service thus the different cloud of tunable has coacted, improve the resource-sharing rate between cloud, thus improve network resource utilization.
The above embodiment only have expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.