CN103414589A - Method and device for managing resource information - Google Patents

Method and device for managing resource information Download PDF

Info

Publication number
CN103414589A
CN103414589A CN2013103517123A CN201310351712A CN103414589A CN 103414589 A CN103414589 A CN 103414589A CN 2013103517123 A CN2013103517123 A CN 2013103517123A CN 201310351712 A CN201310351712 A CN 201310351712A CN 103414589 A CN103414589 A CN 103414589A
Authority
CN
China
Prior art keywords
virtual machine
resource information
cloud application
resources
feed
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
CN2013103517123A
Other languages
Chinese (zh)
Other versions
CN103414589B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310351712.3A priority Critical patent/CN103414589B/en
Publication of CN103414589A publication Critical patent/CN103414589A/en
Application granted granted Critical
Publication of CN103414589B publication Critical patent/CN103414589B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • H04L41/0897Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities by horizontal or vertical scaling of resources, or by migrating entities, e.g. virtual resources or entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • H04L41/122Discovery or management of network topologies of virtualised topologies, e.g. software-defined networks [SDN] or network function virtualisation [NFV]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration

Landscapes

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

Abstract

The invention discloses a method and device for managing resource information, and relates to the technical field of communication networks. The method and device for managing resource information can automatically complete interactive collaboration of multiple applications and improve the utilization rate of computing resources. According to the embodiment, resource information of a cloud application is received and stored through a server; whenever the server finds that virtual machine resources occupied by the cloud application change, the server carries out following operations of obtaining change information of the changed virtual machine resources; obtaining subscription scopes of various subscription sources subscribing the cloud application, judging whether the changed virtual machine resources are in the subscription scopes of various subscription sources or not, and sending change information of virtual machine resources within the subscription scopes to corresponding subscription scopes; the change information is used for guiding the subscription scopes to carry out topological changes to enable service to be accurately distributed to a virtual machine of the cloud application; stored resource information of the cloud application is updated. The method and device are suitable for being adopted when the resources are dynamically supervised.

Description

A kind of method of management resource information and device
Technical field
The present invention relates to the communication network technology field, relate in particular to a kind of method and device of management resource information.
Background technology
In the cloud environment, computational resource can be unified in the mode of virtual machine puts into a flexible resource pond.The actual demand to resource is applied by cloud in the flexible resource pond, resource distributed according to need, thus the utilance of resource in raising flexible resource pond.Such as, when the traffic carrying capacity of cloud application increases, can in the flexible resource pond, apply for resource, when the traffic carrying capacity of this cloud application reduces, the resource taken can be released in the flexible resource pond, make the resource in the flexible resource pond can elastic telescopic.But, when this cloud application externally provides business, need to assist finishing service with other parts, the change in resources of this cloud application just need to be found in time by other parts so.
In prior art, the resource discovering mode of main flow is station stake formula, namely require the circumferential component of this cloud application to understand in advance the scale of elastic telescopic module of this cloud application and resource information (as nodes of the virtual machine taken, IP address, port etc.), and being connected and access mechanism between pre-configured and these elastic telescopic modules.Wherein, the circumferential component of cloud application refers to the parts of assisting finishing service with this cloud application, can be other cloud application operated in the cloud platform, can be also not other application in the cloud platform.Adopt this scheme, configuration and foundation that the maximum virtual machine node number that needs circumferential component to apply by this cloud in advance connects, and according to connecting whether normally judge the state of this cloud application node, and guarantee the correctness of service distributing with this.When the resources of virtual machine of cloud application application surpassed the elastic telescopic scope of resources of virtual machine of this cloud application that circumferential component knows, circumferential component can't be made correct Business Processing when the business of processing, thereby can not make rational use of resources.
Summary of the invention
Embodiments of the invention provide a kind of method and device of management resource information, can realize automatically completing the interactive cooperation between many application, improve the utilance of computational resource.
First aspect, embodiments of the invention provide a kind of method of management resource information, comprising:
Server receives and preserves the initialization resource information of cloud application, and described initialization resource information comprises the virtual machine number of described cloud application and the configuration information of each virtual machine;
When change occurred the resource of described cloud application, described server obtained the modification information of the resource that change occurs, and upgraded the resource information of preserving;
Described server obtains the subscription range of each feed of having subscribed to described cloud application;
The resource of change occurs whether in the subscription range of each feed in the judgement of described server, the modification information of the resource in subscription range is sent to corresponding feed, the modification information of described resource is for instructing described feed to carry out the topology change, in the virtual machine that is diverted to described application that business is correct.
In the possible implementation of the first of first aspect, the configuration information of resources of virtual machine comprises at least a in the account of described virtual machine, agreement, port numbers or IP address.
In conjunction with the possible implementation of the first of first aspect or first aspect, in the possible implementation of the second, described method also comprises:
Described server receives described cloud and is applied in the resource information that the resources of virtual machine generation sends after changing;
Described server is applied according to described cloud the resource information that resources of virtual machine occurs to send after changing and finds that the resources of virtual machine that described cloud application takies changes;
The described modification information that obtains the resources of virtual machine that change occurs specifically comprises:
Described server is applied in described cloud that the resource information sent after changing occurs resources of virtual machine and the resource information of preservation compares, using that compare and the modification information of the inconsistent part of resource information described preservation as described resources of virtual machine.
In conjunction with the first possibility of first aspect or first aspect or the possible implementation of the second of first aspect, in the third possible implementation, before at described server, receiving and preserve the resource information of cloud application, described method also comprises:
Described server receives the issue source application request that applies to become issue source that described cloud application sends, and described issue source application request comprises the sign of described cloud application;
Described server is issue source according to described issue source application request by described cloud application records.
In conjunction with the first of first aspect or first aspect in the third possible implementation any one, in the 4th kind of possible implementation, described method also comprises:
After described server received and preserve the resource information of cloud application, the resource information that the described cloud of preserving is applied sent to described feed;
Described server receives the subscribe request that described feed sends, and described subscribe request comprises the sign of described feed, and described feed is for the subscription range of the resource information of described cloud application;
The subscription range of the described feed of described server record.
In conjunction with the first of first aspect or first aspect may in the 4th kind of possible implementation any one, in the 5th kind of possible implementation, the resource information of described preservation cloud application specifically comprises: described server is preserved the resource information of described cloud application according to tree data structure, described tree data structure comprises described cloud application node, under described cloud application node, comprise each virtual machine node that described cloud application takies, the account node that comprises respectively described virtual machine under each virtual machine node, protocol node, at least a in port numbers node or IP address node.
In conjunction with the 5th kind of possible implementation of first aspect, in the 6th kind of possible implementation, described subscription range is described with the path of resource information in described tree data structure of subscribing to;
Described modification information by the resources of virtual machine in subscription range sends to corresponding feed specifically to comprise: determine the path of described modification information in described tree data structure, the information on definite path is sent to corresponding feed.
Second aspect, embodiments of the invention provide a kind of device of management resource information, comprising:
Receiver module, for receiving and preserve the initialization resource information of cloud application, described initialization resource information comprises the virtual machine number of described cloud application and the configuration information of each virtual machine;
Processing module, while for the resource whenever described cloud application, change occurring, obtain the modification information of the resource that change occurs, and upgrade the resource information of preserving;
Acquisition module, be used to obtaining the subscription range of each feed of having subscribed to described cloud application, and offer sending module by the subscription range of each feed of described cloud application;
Described sending module, for judging that the resource that change occurs is whether in the subscription range of each feed, the modification information of the resource in subscription range is sent to corresponding feed, the modification information of described resource is for instructing described feed to carry out the topology change, in the virtual machine that is diverted to described application that business is correct.
In the possible implementation of the first of second aspect, the configuration information of described resources of virtual machine comprises at least a in the account of described virtual machine, agreement, port numbers or IP address.
In conjunction with the possible implementation of the first of second aspect or second aspect, in the possible implementation of the second, described receiver module, also be applied in be used to receiving described cloud the resource information that the resources of virtual machine generation sends after changing, and offer described processing module;
Described processing module specifically comprises:
Find unit, the resources of virtual machine that the resource information sent after changing finds that described cloud application takies occurs changing for according to described cloud, being applied in resources of virtual machine, and is finding that the resources of virtual machine generation that described cloud application takies notifies comparing unit and acquiring unit to process after changing;
Described comparing unit, the resource information sent after changing occurs in resources of virtual machine and the resource information of preservation compares for described cloud is applied in, using that compare and the modification information of the inconsistent part of resource information described preservation as described resources of virtual machine, and described modification information is offered to judging unit, and notify described preservation module according to described modification information, to upgrade the resource information of described cloud application;
Described acquiring unit, be used to obtaining the subscription range of each feed of having subscribed to described cloud application, offer described judging unit by described subscription range;
Described judging unit, for the judgement of the subscription range according to described modification information and each feed the resources of virtual machine of change occurs whether in the subscription range of each feed, and notify described sending module that the modification information of the resources of virtual machine in subscription range is sent to corresponding feed, described modification information is for instructing described feed to carry out the topology change, in the virtual machine that is diverted to described cloud application that business is correct.
In conjunction with second of second aspect or second aspect the possible implementation, in the third possible implementation, the issue source administration module, the issue source application request that applies to become issue source sent for receiving described cloud application, described issue source application request comprises the sign of described cloud application; And by described cloud application records, be issue source according to described issue source application request.
In conjunction with the first of second aspect or second aspect may in the 3rd possible implementation any one, in the 4th kind of possible implementation, described sending module, also for after in described preservation module, preserving the resource information of cloud application, the resource information that the described cloud of preserving is applied sends to described feed;
Described device also comprises:
The feed administration module, the subscribe request sent be used to receiving described feed, described subscribe request comprises the sign of described feed, and described feed is for the subscription range of the resource information of described cloud application; And record the subscription range of described feed.
In conjunction with the first of second aspect or second aspect may in the 4th kind of possible implementation any one, in the 5th kind of possible implementation, described preservation module is specifically preserved according to tree data structure for the resource information by described cloud application, described tree data structure comprises described cloud application node, under described cloud application node, comprise each virtual machine node that the application of described cloud takies, under each virtual machine node, comprise respectively at least a in account node, protocol node, port numbers node or the IP address node of described virtual machine.
The 5th kind of possible implementation in conjunction with second aspect or second aspect, in the 6th kind of possible implementation, described sending module, specifically for the modification information of determining described resources of virtual machine in subscription range in the path of described tree data structure, the information on definite path is sent to corresponding feed.
The embodiment of the present invention is by the resource information of issue cloud application in server, and the resource information change of cloud application is notified dynamically to the circumferential component that subscribing relationship is arranged, make circumferential component know in time the flexible situation of the shared resources of virtual machine of this cloud application, realized the self adaptation of circumferential component to cloud application dynamic retractility function thereby carry out automatically the topology change.
The accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow chart of the method for a kind of management resource information that Fig. 1 provides for the embodiment of the present invention;
A kind of illustrative diagram of the tree data structure of the resource information that Fig. 2 provides for the embodiment of the present invention;
Fig. 3 applies to become the flow chart of a kind of method of issue source for the cloud application that the embodiment of the present invention provides to server;
Fig. 4 applies to become the flow chart of a kind of method of feed for the cloud application that the embodiment of the present invention provides to server;
The flow chart of a kind of method of change occurs in the resource information that Fig. 5 applies for the cloud that the embodiment of the present invention provides;
The flow chart of the method for the another kind of management resource information that Fig. 6 provides for the embodiment of the present invention;
The structural representation of the device of a kind of management resource information that Fig. 7 provides for the embodiment of the present invention;
The structural representation of the device of the another kind of management resource information that Fig. 8 provides for the embodiment of the present invention;
The hardware structure diagram of the server that Fig. 9 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making under the creative work prerequisite the every other embodiment obtained, belong to the scope of protection of the invention.
As shown in Figure 1, the embodiment of the present invention provides a kind of method of management resource information, and the method comprises:
101, server receives and preserves the resource information of cloud application, and resource information comprises the configuration information of each resources of virtual machine that the cloud application takies.
The present embodiment does not limit the type of cloud application, i.e. cloud application can be for operating in arbitrarily the application in the cloud platform, as SMS service center (Short Message Service Center, SMSC), communication charge center etc.Each resources of virtual machine that the cloud application takies can be the resources of virtual machine of cloud application from applying for the flexible resource pond.
Wherein, the configuration information of resources of virtual machine comprises at least a in account, agreement, port numbers or the IP address of virtual machine.
The cloud application can be issued the resource information of self on server.Server is preserved this resource information after receiving the resource information of cloud application issue, so that circumferential component is subscribed to the resource information of this cloud application on server.
Concrete, server can be preserved the resource information of cloud application according to tree data structure, tree data structure comprises the cloud application node, under the cloud application node, comprise each virtual machine node that cloud application takies, under each virtual machine node, comprise respectively at least a in account node, protocol node, port numbers node or IP address node.As shown in Figure 2, at tree data structure, comprise a cloud application.Under this cloud application, include two virtual machine node, i.e. this cloud application has taken two resources of virtual machine, is respectively virtual machine 1 and virtual machine 2.Account node, protocol node, port numbers node and the IP address node that under virtual machine node, can also comprise this virtual machine.Wherein, under the account node, preserve account title and the password of this virtual machine.Under protocol node, preserve the concrete agreement of this virtual machine, comprise short message point-to-point (Short Message Point to Point, SMPP) as the protocol node in virtual machine 1; Protocol node in virtual machine 2 comprises infoX-WebSMS point-to-point (Enterprise Message Point to Point, EMPP).
102, when the discovering server cloud was applied the resources of virtual machine generation change taken, server obtained the modification information of the resources of virtual machine that change occurs.
The modification information that server obtains the resources of virtual machine that change occurs is specially server and cloud is applied in to resources of virtual machine the resource information sent after changing occurs with the resource information of preservation, compares, using that compare and the modification information of the inconsistent part of resource information preservation as resources of virtual machine.
Wherein, the resources of virtual machine that takies of discovering server cloud application process that change occurs specifically can comprise: server receives cloud and is applied in resources of virtual machine the resource information sent after changing occurs; Server finds that according to this resource information change has occurred the resources of virtual machine that the cloud application takies.Concrete, when change occurred the resources of virtual machine of cloud application, the cloud application can send to server by the resource information occurred after changing.Therefore, be applied in case server receives cloud the resource information that the resources of virtual machine generation sends after changing, server determines that change has occurred the resources of virtual machine that this cloud application takies.Server is when receiving the resource information of cloud application transmission, can check that it is that cloud is applied in the initialization resource information that the resource information sent after changing or cloud application occur resources of virtual machine that the resource information of whether preserving this cloud application is identified the resource information received, if preserved the resource information of this cloud application, the resource information received is that cloud is applied in the resource information that the resources of virtual machine generation sends after changing.
103, server obtains the subscription range of each feed of having subscribed to the cloud application, the resources of virtual machine of change occurs whether in the subscription range of each feed in judgement, the modification information of the resources of virtual machine in subscription range is sent to corresponding feed, modification information is for instructing feed to carry out the topology change, in the virtual machine that is diverted to the cloud application that business is correct.
Wherein, feed refers to the application of the resource information of having subscribed to the cloud application.Feed can be that part is subscribed to or all subscribed to the subscription of the resource information of cloud application.Therefore, after the resource information of cloud application changes, server need to judge that the resources of virtual machine that change occurs is whether in the subscription range of each feed, if change has occurred the resource information in the feed subscription scope, server sends to this feed by the modification information of the resources of virtual machine in this feed subscription scope.
Wherein, topology change refer to in feed and the annexation between the virtual machine of cloud application change.Such as, when modification information was the resources of virtual machine information increased newly, feed can be increased to according to the information of newly-increased resources of virtual machine the connection of newly-increased resources of virtual machine.
104, the resource information of the cloud application that server update is preserved.
Concrete, server will obtain the modification information of resources of virtual machine of generation change be kept in corresponding tree data structure, to reach the purpose of the resource information of upgrading the cloud application, and guarantee to store in server apply up-to-date resource information for cloud.
The embodiment of the present invention is by the resource information of issue cloud application in server, and the resource information change of cloud application is notified dynamically to the circumferential component that subscribing relationship is arranged, make circumferential component know in time the flexible situation of the shared resources of virtual machine of this cloud application, realized the self adaptation of circumferential component to cloud application dynamic retractility function thereby carry out automatically the topology change.
In order to improve the fail safe of system, server can only be accepted issue source and in server, issue resource information.Therefore, in another embodiment of the present invention, can further include before step 101: the cloud application applies to become issue source to server.
Wherein, cloud application applies to become the issue source specific implementation to server and can be: the cloud application sends the issue source application request that applies to become issue source to server.Wherein, issue source application request comprises the sign of this cloud application, and server is issue source according to issue source application request by this cloud application records.
Optionally, in issue source application request, except the sign that comprises the cloud application, can further include the password of cloud application, the IP address of cloud application.Server carries out authentication to the content of this issue source application request, judges whether the content in this issue source application request is correct.According to authenticating result, determine to the cloud application and send issue source application response message.When the content of issue source application request was correct, server was issue source by this cloud application records, and was the application success message to the issue source application response message that the cloud application sends, and the cloud application becomes issue source.Otherwise when the content of issue source application request was incorrect, server was the application failed message to the issue source application response message that the cloud application sends, the cloud application can not become issue source.
What deserves to be explained is, above-mentioned issue source application request can possess registration and apply for this two kinds of functions, or does not possess registration, only possesses the function of application.When this issue source application request possessed the function of registration and application, the cloud application was after server sends issue source application request, and the cloud application can become issue source.When this issue source application request do not possess registration, while only possessing the function of application, before cloud application sends issue source application request to server, optional, to server, send registration request.As shown in Figure 3, the cloud application applies to become the method for issue source to server, and the method comprises:
301, the cloud application sends registration request to server.
Concrete, registration request is applied on server and registers for cloud.
Wherein, registration request comprises the log-on message of cloud application, as, the password that the sign of cloud application, cloud application arrange and the IP address of cloud application.
302-303, the log-on message of this cloud application of server record, and send registration reply message to this cloud application.
After server receives registration request, can carry out legitimate verification to sign or the IP address of cloud application, after being verified, send and show the response message succeeded in registration to this cloud application, if checking is not passed through, return to the response message that shows registration failure.For example, when this cloud application was succeeded in registration, the conditional code in registration reply message was 0, i.e. registration reply message is the message that succeeds in registration, and then continues to carry out 304; When this cloud application registration failure, the conditional code in registration reply message is 1, i.e. registration reply message is registration failure message.
304, after registration reply message that this cloud application reception server sends was for the message that succeeds in registration, this cloud application was to server transmission issue source application request.
Issue source application request can comprise the sign of cloud application, the IP address of the password of cloud application, cloud application.It should be noted that, in the embodiment of the present invention, issue source is the application of issue resource information.
305, this cloud of server record is applied as issue source.
Server receives the issue source application request that the cloud application sends, according to the information of carrying in issue source application request, cloud is applied and carried out authentication, as, whether the cloud application identities that comparison issue source application request is carried mates with the cloud application identities in password and log-on message and password, if coupling, authentication success, server is issue source by this cloud application records.
It should be noted that, this cloud application in the present embodiment sends respectively registration request and issue source application request to server, and this mode can be applied to after this cloud is applied in and succeeds in registration, send issue source application request according to actual ruuning situation.
Certainly, in another embodiment of the present invention, the cloud application also can only send issue source application request, and without sending registration request, server, when receiving issue source application request, completes the registration of cloud application and is registered as issue source.
Issue source can be regarded as cloud and is applied in an identity in server.But in actual conditions, the cloud application can have a plurality of identity in server, such as, the cloud application can be both issue source, can be also the feed of subscribing to the resource information of other cloud application.
Cloud can be published to the resource information of self in server after being applied in and becoming issue source.When other application needs to subscribe to the resource information of this cloud application, the resource information that can apply from obtaining this cloud server, and subscribe to according to the resource information of obtaining.Wherein, server can send to feed with the form of tree data structure by the resource information of the cloud of preservation application.
Concrete, the subscription procedure of the resource information of cloud application specifically can comprise: server sends to feed by the resource information of the cloud of preservation application; Server receives the subscribe request that feed sends, and this subscribe request comprises the sign of this feed, and this feed is for the subscription range of the resource information of cloud application; The subscription range of this feed of server record.Subscription range can be described with the path of resource information in tree data structure of subscribing to.
It should be noted that, issue source is similar with applying to become, and feed also can be registered in server.Application can be registered by the feed application request sent to server, and now, this feed application request can possess registration and apply for this two kinds of functions.Similar with issue source application request, feed application request also can not possess registration, only possess the function of application.When this feed application request possessed the function of registration and application, the cloud application was after server sends feed application request, and the cloud application can become feed.When this feed application request do not possess registration, while only possessing the function of application, before cloud application sends feed application request to server, optional, to server, send registration request.As shown in Figure 4, application applies to become the method for feed to server, and the method comprises:
401, application sends registration request to server.
Registration request comprises the log-on message of application, as, the password that the sign of application, application arrange and the IP address of application.
Being understandable that, although the application in this step can be the cloud application, can be also the application of other non-cloud, and the processing procedure of the processing procedure of step 401-403 and step 301-303 is similar, repeats no more here.
Its 402-403, the log-on message that server record should be applied, send registration reply message to this application.
The description of registration reply message can be with reference to 303 in figure 3.
404, after registration reply message that this application reception server sends was for the message that succeeds in registration, this cloud application was to server transmission feed application request.
In this step, feed application request comprises the sign of application, the IP address of the password of application or application.
405, this is applied as feed server record.
Feed is an identity of this application, and certainly, this application also can apply to become issue source.
It should be noted that, this application in the present embodiment sends respectively registration request and feed application request to server, and this mode can be applied to after this is applied in and succeeds in registration, send feed application request according to actual ruuning situation.
Certainly, in another embodiment of the present invention, this application also can only send feed application request, and without sending registration request, server, when receiving feed application request, completes the registration of cloud application and is registered as feed.
It should be noted that, apply to become again feed if same application should apply to become issue source, can only initiate one time so registration request.This application can first send registration request to server, then needs actual demand, sends issue source application request and feed application request to server.This cloud application has two identity like this: issue source and feed.Perhaps, this cloud application sends issue source application request and feed application request to server.Certainly, after the cloud application becomes issue source, can send resource information to server.And, after cloud application becomes feed, also need to server to send subscribe request, so that server records the subscription range of feed according to this subscribe request.About the description of subscribe request, please refer in Fig. 1 103 explanation.At this, do not repeat one by one.
As shown in Figure 5, being described in detail as follows of change occurs in the resource information of cloud application:
501, the cloud application sends business information to the cloud management platform.
Cloud Host Administration platform is organized and is divided and detect for the various resources to application.Business information comprises the information such as central processing unit (Central Processing Unit, CPU) occupancy, memory usage, storage occupancy, network I/O (Input/Output, I/O) occupancy, storage read-write I/O occupancy.
It should be noted that, the cloud management platform can be an independently equipment, also can belong to same equipment with server.When cloud management platform and server were an equipment, cloud management platform and server were respectively two administrative units of this equipment difference in functionality.
502, the cloud management platform is according to this business information, and whether the resource information that detects the cloud application needs change.
When above-mentioned business information occupancy reaches more than 90%, and while surpassing the scheduled time, the cloud management platform determines that the cloud application needs dilatation.Wherein, the present embodiment did not limit the scheduled time, such as, the scheduled time can be 10min.
In addition, whether the cloud management platform resource information that often will detect at regular intervals cloud application changes.For example, when the cloud management platform detects the IP bandwidth of IP address of node 1 correspondence in cloud application when inadequate, the cloud management platform changes the IP address of node 1 correspondence.When the cloud management platform determines that the cloud application needs the resource information of dilatation or cloud application to change, continue to carry out 503; When the cloud management platform only determines that the resource information of cloud application changes, continue to carry out 505.
503, when the cloud application needed the dilatation resource, the cloud management platform sent capacity-enlarging information to the flexible resource pond.
For example, former two virtual machines (virtual machine 1 and virtual machine 2) that occupy of cloud application, dilatation now a virtual machine (virtual machine 3), capacity-enlarging information comprises newly-increased virtual machine 3, and the configuration information of virtual machine 3 correspondences.
504, the flexible resource pond, according to this capacity-enlarging information, sends new resources information in the cloud application;
505, the cloud application receives modification information.
Cloud is applied in reception modification information (new resources information and/or change resource information) and afterwards, the resource information of preservation is upgraded.
Method below by the concrete management resource the information for example embodiment of the present invention provided is elaborated, and as shown in Figure 6, the method comprises:
601, the cloud application connects with server.
When the cloud application connected with server, the cloud application sent connection request to server.Wherein, this connection request is for setting up being connected between cloud application and server.After server receives connection request, send and connect response message to the cloud application.This connection response message is used to indicate connection request, and whether serviced device is successfully accepted.For example, when cloud application and server connect when successful, the conditional code connected in response message is 0, then continues to carry out 602; When the cloud application connected failure with server, the conditional code connected in response message was 1.
602, the cloud application applies to become issue source to server, and this cloud of server record is applied as issue source.
About cloud, applying the detailed description that becomes issue source can be with reference to the explanation of each step in figure 3.
603, after the cloud application became issue source, the cloud application sent initialized resource information to server.
Illustrate, the initialization resource information comprises two virtual machines, be respectively virtual machine 1 and virtual machine 2, wherein the account name of virtual machine 1 is called application A1, corresponding password is 123456, the protocol name of virtual machine 1 is SMPP, and the IP address of virtual machine 1 is 1.1.1.1, and the port numbers of virtual machine 1 is 01; The account name of virtual machine 2 is called application A2, and corresponding password is 456123, and the protocol name of virtual machine 2 is EMPP, and the IP address of virtual machine 2 is 2.2.2.2, and the port numbers of virtual machine 2 is 02.
604, the resource information of server cloud application is carried out index and storage according to tree data structure.
Server carries out explaining of 101 pairs of tree data structures in schematic diagram that the description of index and storage can show with reference to figure 2 and Fig. 1 by resource information according to tree data structure.
605, server sends to the resource information of the cloud of preservation application the feed of record.
Optionally, the resource information of the cloud application of the preservation that sends to feed of server can be the tree form data structure of the cloud application of preserving.
After the application success application was feed, server sent to feed by the tree data structure of each issue source of current preservation.For example, if when this application becomes feed, in server, preserve the tree data structure of the initialization resource information of the cloud application that is, server sends the tree data structure of initialized resource information to feed.When if this application becomes feed, the tree data structure of the resource information after changing of the cloud application of preserving in server, server sends tree data structure after changing to feed.
606, feed sends subscribe request to server.
Subscribe request comprises the sign of feed, and feed is for the subscription range of the resource information of cloud application.For example, feed is application B and application C.Wherein, application B comprises that to the subscribe request that server sends subscription range is whole resource informations of cloud application A, and the subscription range that the registration request that application C sends to server comprises is the IP address node of virtual machine 1 in cloud application A.Wherein, subscription range can be meaned by the path of resource information in tree form data structure of subscribing to.For example, application B is " application A/ " to the subscription range in the subscribe request of server transmission; Application C is " application A/ node 1/IP address " to the subscription range in the subscribe request of server transmission.
607-608, the subscription information of server record feed, send and subscribe to feedback message to feed.
Wherein, the subscription information of feed comprises the sign of cloud application of subscription and the subscription range corresponding with the sign of this cloud application.
Subscribe to feedback message for determining whether feed subscribes to successfully.
Concrete, feed judges whether to subscribe to successfully according to the conditional code in this subscription feedback message.For example, when the feed subscription success, the conditional code of subscribing in feedback message is 0, then can continue to carry out 611; When the feed subscription failure, the conditional code of subscribing in feedback message is 1.
609, when change occurred the resource information in the cloud application, the cloud application sent resource information after changing to server.
Resource information after changing comprises the configuration information of cloud application each resources of virtual machine after changing.Illustrate, suppose that the resource information of cloud application comprises two virtual machines before changing, be respectively virtual machine 1, virtual machine 2, wherein the account name of virtual machine 1 is called A1, and corresponding password is 123456, and the protocol name of virtual machine 1 is SMPP, the IP address of virtual machine 1 is 1.1.1.1, and the port numbers of virtual machine 1 is 01; The account name of virtual machine 2 is called A2, and corresponding password is 112233, and the protocol name of virtual machine 2 is EMPP, and the IP address of virtual machine 2 is 2.2.2.2, and the port numbers of virtual machine 2 is 02.During change, the cloud management platform has newly been distributed virtual machine 3 for this cloud application, and the IP address of virtual machine 1 is changed.Therefore, the configuration information of newly-increased virtual machine 3 in resource information after changing, as follows: the account name of virtual machine 3 is called A3, corresponding password is 123123, the protocol name of virtual machine 3 is SMPP, and the IP address of virtual machine 3 is 3.3.3.3, and the port numbers of virtual machine 3 is 03.And the IP address change of virtual machine 1 is 1.1.2.2.
610, server obtains the modification information of the resources of virtual machine that change occurs.
Server, by the resource information of current preservation and resource information are after changing compared, obtains modification information: change occurs and increases the configuration information of virtual machine 3 and virtual machine 3 correspondences in the IP address of virtual machine 1.Concrete, the IP address of virtual machine 1 changes to 1.1.2.2 from 1.1.1.1.
Server changes the resource information of preserving in tree data structure according to modification information.
611, whether the resources of virtual machine that change occurs for server judgement in the subscription range of each feed, sends to corresponding feed by the modification information of the resources of virtual machine in subscription range.
From 606 for example in can find out, the subscription range of application B is whole resource informations of cloud application A, the subscription range of application C is for applying the IP address of virtual machine 1 in A.Therefore, the change of the configuration information of newly-increased virtual machine 3 and the IP address of virtual machine 1 is all in the subscription range of application B, and the change of the IP address of virtual machine 1 is also in the subscription range of application C.Server sends to application B by the IP address of the configuration information of newly-increased virtual machine 3 and virtual machine after changing 1, and the IP address of general's virtual machine 1 after changing sends to application C.
612, feed is carried out the topology change according to modification information, in the virtual machine that is diverted to the cloud application that business is correct.
Here take and increase resources of virtual machine newly and the change of the topology of feed and service distributing are illustrated as example.Suppose that SMSC is as cloud application (issue source), short message service gateway (Short Messaging ServiceGateway, SMS GW) is as feed.When SMSC has two virtual machines (as virtual machine 1 and virtual machine 2), when each virtual machine can be processed 50 information, service provider (Service Provider, SP) or (the Content Provider of content supplier, CP) to SMS GW, 95 information have been distributed, SMS GW is according to the virtual machine number in SMSC, to 45 information of virtual machine 1 transmission of SMSC, to 50 information of virtual machine 2 transmissions of SMSC.Now, the resources occupation rate of SMSC reaches more than 90%, and while surpassing 10min, the flexible resource pond is to virtual machine of SMSC dilatation, and namely virtual machine 3.SMSC is after server sends resource information after changing, and the modification information that server will obtain sends to SMS GW.Be that modification information is the configuration information of virtual machine 3.SMS GW is according to the annexation (namely carry out topology change) of this modification information configuration self to virtual machine 3.When SP or CP had distributed 120 information to SMS GW, SMSGW was according to the virtual machine number in SMSC, sent 40 information to the virtual machine 1 of SMSC, sent 40 information to the virtual machine 2 of SMSC, sent 40 information to the virtual machine 3 of SMSC.Be SMSGW basis topological relation after changing, SMSC has been carried out to correct service distributing.
It should be noted that, 609-612 is optional step, and when the resource information in the cloud application changed, the embodiment of the present invention was carried out 601-608; When change occurred the resource information in the cloud application, the embodiment of the present invention was carried out 601-612.
The embodiment of the present invention obtains the flexible situation that circumferential component is known the shared resources of virtual machine of this cloud application in time, thereby carries out automatically the topology change, has realized the self adaptation of circumferential component to cloud application dynamic retractility function.
As shown in Figure 7, the embodiment of the present invention provides a kind of device 70 of management resource information, comprising: receiver module 701, preserve module 702, and processing module 703, sending module 704, this device is the server in embodiment of the method.
Receiver module 701, be used to receiving the resource information of cloud application, resource information comprises the configuration information of each virtual machine that the cloud application takies.
Preserve module 702, be used to preserving the resource information of the cloud application that receiver module 701 receives, and according to the update notifications of processing module, preserve the resource information of cloud application.
Processing module 703, in while, for the resources of virtual machine whenever finding the cloud application, change occurring, obtain the modification information of the resources of virtual machine that change occurs, and obtain the subscription range of each feed of having subscribed to the cloud application, the resources of virtual machine of change occurs whether in the subscription range of each feed in judgement, the notice sending module sends to corresponding feed by the modification information of the resources of virtual machine in subscription range, and notice is preserved the resource information that module is upgraded the application of preservation cloud; Modification information is for instructing feed to carry out the topology change, in the virtual machine that is diverted to the cloud application that business is correct.
Sending module 704, send to corresponding feed for the notice according to processing module 703 by the modification information of the resources of virtual machine in subscription range.
Wherein, the configuration information of resources of virtual machine can comprise at least a in account, agreement, port numbers or the IP address of virtual machine.
Concrete, preserving module 702 can preserve the resource information of cloud application according to tree data structure, tree data structure comprises the identification nodes of cloud application, the identification nodes that comprises each virtual machine that the cloud application takies under the identification nodes of cloud application, comprise respectively at least a in account node, protocol node, port numbers node or IP address node under the identification nodes of each virtual machine.
Further, the specific implementation of processing module 703 can be with reference to figure 8, as shown in Figure 8, the invention provides the device 80 of another kind of management resource information, in this device 80, processing module 703 specifically can comprise discovery unit 7031, comparing unit 7032, acquiring unit 7033, judging unit 7034.
Wherein, receiver module 701 also is applied in be used to receiving cloud the resource information that the resources of virtual machine generation sends after changing after this cloud application becomes issue source, and offers processing module 703.
Discovery unit 7031 in processing module 703, the resources of virtual machine that the resource information sent after changing finds that the cloud application takies occurs changing for according to cloud, being applied in resources of virtual machine, and is finding that the resources of virtual machine generation that the cloud application takies notifies comparing unit 7032 and acquiring unit 7033 to process after changing.
Comparing unit 7032, the resource information sent after changing occurs in resources of virtual machine and the resource information of preservation compares for cloud is applied in, modification information using the inconsistent part of resource information that compares with preserve as resources of virtual machine, and modification information is offered to judging unit 7034, and notice is preserved the resource information of module according to the application of modification information renewal cloud.
Acquiring unit 7033, be used to obtaining the subscription range of each feed of having subscribed to the cloud application, offer judging unit 7034 by subscription range.
The resources of virtual machine of change occurs whether in the subscription range of each feed according to the subscription range judgement of modification information and each feed in judging unit 7034, and notice sending module 704 sends to corresponding feed by the modification information of the resources of virtual machine in subscription range, modification information is for instructing feed to carry out the topology change, in the virtual machine that is diverted to the cloud application that business is correct.Be sending module 704, also for after the resource information preserving the application of module preservation cloud, the resource information of the cloud of preservation application sent to feed.
Optionally, device 80 can further include: issue source administration module 705 and/or feed administration module 706;
Wherein, issue source administration module 705, the issue source application request that applies to become issue source sent be used to receiving the cloud application, issue source application request comprises the sign of cloud application; And by the cloud application records, be issue source according to issue source application request.
Feed administration module 706, the subscribe request sent be used to receiving feed, subscribe request comprises the sign of feed, and feed is for the subscription range of the resource information of cloud application; And record the subscription range of feed.Wherein, subscription range is described with the path of resource information in tree data structure of subscribing to; Sending module 704, specifically for determining that modification information, in the path of tree data structure, sends to corresponding feed by the information on definite path.
It should be noted that, in device 70 shown in Figure 7 and accompanying drawing 8 shown devices 80, the specific implementation process of its modules and the contents such as information interaction between modules, due to the inventive method embodiment based on same inventive concept, can, referring to embodiment of the method, not repeat one by one at this.
The embodiment of the present invention is issued the resource information of cloud application by newly-increased device 70 shown in Figure 7 or accompanying drawing 8 shown devices 80, make circumferential component know in time the flexible situation of the shared resources of virtual machine of this cloud application, thereby carry out automatically the topology change, realized the self adaptation of circumferential component to cloud application dynamic retractility function.
The described device embodiment of above Fig. 7 and Fig. 8 is only schematic, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, the indirect coupling of equipment or functional module or communication connection, can be electrically, machinery or other form.Concrete, the described device of Fig. 7 and Fig. 8 can be realized on the hardware units such as server.
As shown in Figure 9, Fig. 9 is the hardware configuration schematic diagram of server.Wherein, server can comprise transceiver 901, memory 902, processor 903 and bus 904.Wherein, transceiver 901, processor 903, memory 902 are by bus 904 communication connections.
Transceiver 901 is for the communication between device and other equipment or communication network (such as but not limited to Ethernet, wireless access network (Radio Access Network, RAN), WLAN (wireless local area network) (Wireless Local Area Network, WLAN) etc.).
Memory 902 can be read-only memory (Read Only Memory, ROM), static storage device, dynamic memory or random access memory (Random Access Memory, RAM).Memory 902 can storage operation system and other application programs.When by software or firmware, realizing the technical scheme that the embodiment of the present invention provides, for the program code of realizing the technical scheme that the embodiment of the present invention provides, be kept at memory 902, and carried out by processor 903.
Processor 903 can adopt general central processing unit (Central Processing Unit, CPU), microprocessor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), perhaps one or more integrated circuits, be used to carrying out relative program, with the technical scheme that realizes that the embodiment of the present invention is provided.
Bus 904 can comprise a path, for example, between device all parts (transceiver 901, processor 903 and memory 902) transmission information.
Should note, although hardware shown in Figure 9 only shows transceiver 901, processor 903 and memory 902 and bus 904, but in the specific implementation process, those skilled in the art it should be understood that this terminal also comprises necessary other devices of the normal operation of realization.Simultaneously, according to specific needs, those skilled in the art also it should be understood that can comprise the hardware device of realizing other functions.
Concrete, when server shown in Figure 9 is used for realizing the device shown in Fig. 7-Fig. 8 embodiment, the transceiver 901 in this device, be used to receiving the resource information of cloud application, resource information comprises the configuration information of each virtual machine that the cloud application takies.
Wherein, the configuration information of resources of virtual machine comprises at least a in account, agreement, port numbers or the IP address of virtual machine.
Memory 902, be used to preserving the resource information of the cloud application that transceiver 901 receives, and preserve the resource information of cloud application according to the update notifications of processor 903.
Concrete, memory 902 is preserved the resource information of cloud application according to tree data structure, tree data structure comprises the identification nodes of cloud application, the identification nodes that comprises each virtual machine that the cloud application takies under the identification nodes of cloud application, comprise respectively at least a in account node, protocol node, port numbers node or IP address node under the identification nodes of each virtual machine.
Processor 903, in while, for the resources of virtual machine whenever finding the cloud application, change occurring, obtain the modification information of the resources of virtual machine that change occurs, and obtain the subscription range of each feed of having subscribed to the cloud application, the resources of virtual machine of change occurs whether in the subscription range of each feed in judgement, the notice transceiver sends to corresponding feed by the modification information of the resources of virtual machine in subscription range, and the notice memory updating is preserved the resource information of cloud application; Modification information is for instructing feed to carry out the topology change, in the virtual machine that is diverted to the cloud application that business is correct.
Further, transceiver 901, also be applied in be used to receiving cloud the resource information that the resources of virtual machine generation sends after changing, and offer processor 903.
Concrete, processor 903 is applied in resources of virtual machine according to cloud and the resources of virtual machine that the resource information sent after changing finds that the cloud application takies occurs changes, and finding that the resources of virtual machine that the cloud application takies occurs after changing, cloud is applied in to the resource information sent after changing occurs resources of virtual machine and the resource information of preservation compares, modification information using the inconsistent part of resource information that compares with preserve as resources of virtual machine, and notice memory 902 upgrades the resource information of cloud application according to modification information.Then obtain the subscription range of each feed of having subscribed to the cloud application, according to the subscription range judgement of modification information and each feed the resources of virtual machine of change occurs whether in the subscription range of each feed, and notice transceiver 901 sends to corresponding feed by the modification information of the resources of virtual machine in subscription range, modification information is for instructing feed to carry out the topology change, in the virtual machine that is diverted to the cloud application that business is correct.
Transceiver 901, also send to corresponding feed for the notice according to processor 903 by the modification information of the resources of virtual machine in subscription range.
Further, before transceiver 901 receives the resource information of cloud application, transceiver 901, the issue source application request that applies to become issue source also sent be used to receiving the cloud application, and issue source application request is offered to processor 903; Then processor 903 is issue source according to issue source application request by the cloud application records.Wherein, issue source application request comprises the sign of cloud application.
Further, transceiver 901, also, for after at memory 902, preserving the resource information of cloud application, send to feed by the resource information of the cloud of preservation application; Then feed, according to the resource information that transceiver 901 sends, generates subscribe request, and this subscribe request is sent to transceiver 901.Transceiver 901 offers processor 903 by the subscribe request of reception, and processor 903, according to subscribe request, records the subscription range of feed.Wherein, subscribe request comprises the sign of feed, and feed is for the subscription range of the resource information of cloud application.Subscription range is described with the path of resource information in tree data structure of subscribing to.Therefore transceiver 901 is determined the path of modification information in tree data structure, and the information on definite path is sent to corresponding feed.
The embodiment of the present invention can realize automatically completing the interactive cooperation between many application, and the resource of application is carried out to unified management, thereby improves the utilance of computational resource.
The those skilled in the art can be well understood to, for convenience and simplicity of description, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the internal structure that is about to device is divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In several embodiment that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described module or unit, be only that a kind of logic function is divided, during actual the realization, other dividing mode can be arranged, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
Described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, namely can be positioned at a place, or also can be distributed on a plurality of network element.Can select according to the actual needs wherein some or all of unit to realize the purpose of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, also can adopt the form of SFU software functional unit to realize.
If the form of SFU software functional unit of usining described integrated unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Based on such understanding, part or all or part of of this technical scheme that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) carry out all or part of step of the described method of each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CDs.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (14)

1. the method for a management resource information, is characterized in that, comprising:
Server receives and preserves the resource information of cloud application, and described resource information comprises the configuration information of each resources of virtual machine that described cloud application takies;
When the described cloud of described discovering server was applied the resources of virtual machine generation change taken, described server was carried out following operation:
Obtain the modification information of the resources of virtual machine that change occurs;
Obtain the subscription range of each feed of having subscribed to described cloud application, the resources of virtual machine of change occurs whether in the subscription range of each feed in judgement, the modification information of the resources of virtual machine in subscription range is sent to corresponding feed, described modification information is for instructing described feed to carry out the topology change, in the virtual machine that is diverted to described cloud application that business is correct;
Upgrade the resource information of the described cloud application of preserving.
2. the method for management resource information according to claim 1, is characterized in that, the configuration information of described resources of virtual machine comprises at least a in the account of described virtual machine, agreement, port numbers or IP address.
3. the method for management resource information according to claim 1 and 2, is characterized in that, described method also comprises:
Described server receives described cloud and is applied in the resource information that the resources of virtual machine generation sends after changing;
Described server is applied according to described cloud the resource information that resources of virtual machine occurs to send after changing and finds that the resources of virtual machine that described cloud application takies changes;
The described modification information that obtains the resources of virtual machine that change occurs specifically comprises:
Described server is applied in described cloud that the resource information sent after changing occurs resources of virtual machine and the resource information of preservation compares, using that compare and the modification information of the inconsistent part of resource information described preservation as described resources of virtual machine.
4. according to the method for the described management resource information of claim 1-3 any one, it is characterized in that, before at described server, receiving and preserve the resource information of cloud application, described method also comprises:
Described server receives the issue source application request that applies to become issue source that described cloud application sends, and described issue source application request comprises the sign of described cloud application;
Described server is issue source according to described issue source application request by described cloud application records.
5. according to the method for the described management resource information of claim 1-4 any one, it is characterized in that, described method also comprises:
After described server received and preserve the resource information of cloud application, the resource information that the described cloud of preserving is applied sent to described feed;
Described server receives the subscribe request that described feed sends, and described subscribe request comprises the sign of described feed, and described feed is for the subscription range of the resource information of described cloud application;
The subscription range of the described feed of described server record.
6. according to the method for the described management resource information of claim 1-5 any one, it is characterized in that, the resource information of described preservation cloud application specifically comprises: described server is preserved the resource information of described cloud application according to tree data structure, described tree data structure comprises described cloud application node, under described cloud application node, comprise each virtual machine node that the application of described cloud takies, under each virtual machine node, comprise respectively at least a in account node, protocol node, port numbers node or the IP address node of described virtual machine.
7. the method for management resource information according to claim 6, is characterized in that, described subscription range is described with the path of resource information in described tree data structure of subscribing to;
Described modification information by the resources of virtual machine in subscription range sends to corresponding feed specifically to comprise: determine the path of described modification information in described tree data structure, the information on definite path is sent to corresponding feed.
8. the device of a management resource information, is characterized in that, comprising:
Receiver module, be used to receiving the resource information of cloud application, described resource information comprises the configuration information of each virtual machine that described cloud application takies;
Preserve module, be used to preserving the resource information of the described cloud application that described receiver module receives, and the resource information of the described cloud application of having preserved according to the update notifications of processing module;
Described processing module, in while, for the resources of virtual machine whenever finding described cloud application, change occurring, obtain the modification information of the resources of virtual machine that change occurs, and obtain the subscription range of each feed of having subscribed to the application of described cloud, the resources of virtual machine of change occurs whether in the subscription range of each feed in judgement, the notice sending module sends to corresponding feed by the modification information of the resources of virtual machine in subscription range, and the resource information of the described cloud application of notifying described preservation module to upgrade to have preserved; Described modification information is for instructing described feed to carry out the topology change, in the virtual machine that is diverted to described cloud application that business is correct;
Described sending module, send to corresponding feed for the notice according to described processing module by the modification information of the resources of virtual machine in subscription range.
9. the device of management resource information according to claim 8, is characterized in that, the configuration information of described resources of virtual machine comprises at least a in the account of described virtual machine, agreement, port numbers or IP address.
10. according to claim 8 or claim 9 the device of management resource information, is characterized in that,
Described receiver module, also be applied in be used to receiving described cloud the resource information that the resources of virtual machine generation sends after changing, and offer described processing module;
Described processing module specifically comprises:
Find unit, the resources of virtual machine that the resource information sent after changing finds that described cloud application takies occurs changing for according to described cloud, being applied in resources of virtual machine, and is finding that the resources of virtual machine generation that described cloud application takies notifies comparing unit and acquiring unit to process after changing;
Described comparing unit, the resource information sent after changing occurs in resources of virtual machine and the resource information of preservation compares for described cloud is applied in, using that compare and the modification information of the inconsistent part of resource information described preservation as described resources of virtual machine, and described modification information is offered to judging unit, and notify described preservation module according to described modification information, to upgrade the resource information of described cloud application;
Described acquiring unit, be used to obtaining the subscription range of each feed of having subscribed to described cloud application, offer described judging unit by described subscription range;
Described judging unit, for the judgement of the subscription range according to described modification information and each feed the resources of virtual machine of change occurs whether in the subscription range of each feed, and notify described sending module that the modification information of the resources of virtual machine in subscription range is sent to corresponding feed, described modification information is for instructing described feed to carry out the topology change, in the virtual machine that is diverted to described cloud application that business is correct.
11. the device of the described management resource information of according to Claim 8-10 any one, is characterized in that, described device also comprises:
The issue source administration module, the issue source application request that applies to become issue source sent be used to receiving described cloud application, described issue source application request comprises the sign of described cloud application; And by described cloud application records, be issue source according to described issue source application request.
12. the device of the described management resource information of according to Claim 8-11 any one, is characterized in that,
Described sending module, also for after in described preservation module, preserving the resource information of cloud application, the resource information that the described cloud of preserving is applied sends to described feed;
Described device also comprises:
The feed administration module, the subscribe request sent be used to receiving described feed, described subscribe request comprises the sign of described feed, and described feed is for the subscription range of the resource information of described cloud application; And record the subscription range of described feed.
13. the device of the described management resource information of according to Claim 8-12 any one, it is characterized in that, described preservation module is specifically preserved according to tree data structure for the resource information by described cloud application, described tree data structure comprises described cloud application node, under described cloud application node, comprise each virtual machine node that the application of described cloud takies, under each virtual machine node, comprise respectively at least a in account node, protocol node, port numbers node or the IP address node of described virtual machine.
14. the device of management resource information according to claim 13, is characterized in that, described subscription range is described with the path of resource information in described tree data structure of subscribing to;
Described sending module, specifically for the modification information of determining described resources of virtual machine in subscription range in the path of described tree data structure, the information on definite path is sent to corresponding feed.
CN201310351712.3A 2013-08-13 2013-08-13 A kind of method and device managing resource information Active CN103414589B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310351712.3A CN103414589B (en) 2013-08-13 2013-08-13 A kind of method and device managing resource information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310351712.3A CN103414589B (en) 2013-08-13 2013-08-13 A kind of method and device managing resource information

Publications (2)

Publication Number Publication Date
CN103414589A true CN103414589A (en) 2013-11-27
CN103414589B CN103414589B (en) 2016-11-23

Family

ID=49607575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310351712.3A Active CN103414589B (en) 2013-08-13 2013-08-13 A kind of method and device managing resource information

Country Status (1)

Country Link
CN (1) CN103414589B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015154459A1 (en) * 2014-07-14 2015-10-15 中兴通讯股份有限公司 Notification method and device for change of subscribed resource
CN106598734A (en) * 2016-12-12 2017-04-26 武汉烽火信息集成技术有限公司 Topology display method for Openstack virtual resources based on business views
CN106790676A (en) * 2013-12-05 2017-05-31 华为技术有限公司 The implementation method and device of subscribing notification
WO2018113571A1 (en) * 2016-12-19 2018-06-28 中兴通讯股份有限公司 Virtualized network element management method and device, and computer storage medium
CN108347347A (en) * 2017-12-29 2018-07-31 华为技术有限公司 A kind of information processing method, device and system
CN108345496A (en) * 2017-01-23 2018-07-31 华为技术有限公司 A kind of method and device of operation application program
CN108833331A (en) * 2018-04-09 2018-11-16 海信集团有限公司 A kind of creation of resource object, resource object state reporting method and device
CN109218360A (en) * 2017-07-03 2019-01-15 中国电信股份有限公司 Co computer room opens the method and system of cloud resource block to ICP server dynamic
CN110740121A (en) * 2019-09-09 2020-01-31 西安万像电子科技有限公司 Resource subscription system and method
CN111488387A (en) * 2019-01-28 2020-08-04 阿里巴巴集团控股有限公司 Information recording and data inquiry method
CN112804289A (en) * 2020-12-17 2021-05-14 航天信息股份有限公司 Resource synchronization method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101894050A (en) * 2010-07-28 2010-11-24 山东中创软件工程股份有限公司 Method, device and system for flexibly scheduling JEE application resources of cloud resource pool
CN101938416A (en) * 2010-09-01 2011-01-05 华南理工大学 Cloud computing resource scheduling method based on dynamic reconfiguration virtual resources
CN102158535A (en) * 2011-02-10 2011-08-17 浪潮(北京)电子信息产业有限公司 Cloud computing operating system
CN102647452A (en) * 2012-03-20 2012-08-22 广东电子工业研究院有限公司 Self-adaptation resource monitoring system and method based on large-scale cloud computing platform
US20120215919A1 (en) * 2011-02-22 2012-08-23 Intuit Inc. Multidimensional modeling of software offerings

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101894050A (en) * 2010-07-28 2010-11-24 山东中创软件工程股份有限公司 Method, device and system for flexibly scheduling JEE application resources of cloud resource pool
CN101938416A (en) * 2010-09-01 2011-01-05 华南理工大学 Cloud computing resource scheduling method based on dynamic reconfiguration virtual resources
CN102158535A (en) * 2011-02-10 2011-08-17 浪潮(北京)电子信息产业有限公司 Cloud computing operating system
US20120215919A1 (en) * 2011-02-22 2012-08-23 Intuit Inc. Multidimensional modeling of software offerings
CN102647452A (en) * 2012-03-20 2012-08-22 广东电子工业研究院有限公司 Self-adaptation resource monitoring system and method based on large-scale cloud computing platform

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790676B (en) * 2013-12-05 2020-07-07 华为技术有限公司 Method and device for realizing subscription notification
CN106790676A (en) * 2013-12-05 2017-05-31 华为技术有限公司 The implementation method and device of subscribing notification
CN105323743A (en) * 2014-07-14 2016-02-10 中兴通讯股份有限公司 Method and device for subscribing to resource change notices
WO2015154459A1 (en) * 2014-07-14 2015-10-15 中兴通讯股份有限公司 Notification method and device for change of subscribed resource
CN106598734A (en) * 2016-12-12 2017-04-26 武汉烽火信息集成技术有限公司 Topology display method for Openstack virtual resources based on business views
CN106598734B (en) * 2016-12-12 2020-01-14 武汉烽火信息集成技术有限公司 Openstack virtual resource topology display method based on service view
WO2018113571A1 (en) * 2016-12-19 2018-06-28 中兴通讯股份有限公司 Virtualized network element management method and device, and computer storage medium
CN108345496A (en) * 2017-01-23 2018-07-31 华为技术有限公司 A kind of method and device of operation application program
CN108345496B (en) * 2017-01-23 2020-12-15 华为技术有限公司 Method and device for running application program
CN109218360B (en) * 2017-07-03 2021-03-23 中国电信股份有限公司 Method and system for dynamically opening cloud resource block to ICP server by Co machine room
CN109218360A (en) * 2017-07-03 2019-01-15 中国电信股份有限公司 Co computer room opens the method and system of cloud resource block to ICP server dynamic
CN108347347A (en) * 2017-12-29 2018-07-31 华为技术有限公司 A kind of information processing method, device and system
CN108833331B (en) * 2018-04-09 2020-12-08 海信集团有限公司 Resource object creating method and device and resource object state reporting method and device
CN108833331A (en) * 2018-04-09 2018-11-16 海信集团有限公司 A kind of creation of resource object, resource object state reporting method and device
CN111488387A (en) * 2019-01-28 2020-08-04 阿里巴巴集团控股有限公司 Information recording and data inquiry method
CN111488387B (en) * 2019-01-28 2024-03-01 阿里巴巴集团控股有限公司 Information recording and data query method
CN110740121A (en) * 2019-09-09 2020-01-31 西安万像电子科技有限公司 Resource subscription system and method
CN110740121B (en) * 2019-09-09 2023-04-07 西安万像电子科技有限公司 Resource subscription system and method
CN112804289A (en) * 2020-12-17 2021-05-14 航天信息股份有限公司 Resource synchronization method, device, equipment and storage medium
CN112804289B (en) * 2020-12-17 2022-09-02 航天信息股份有限公司 Resource synchronization method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN103414589B (en) 2016-11-23

Similar Documents

Publication Publication Date Title
CN103414589A (en) Method and device for managing resource information
US8050242B2 (en) Method and system for tailoring device provisioning based on device capability information communicated to network
CN105468302A (en) Data processing method, apparatus and system
CN103460203A (en) Cluster unique identifier
CN103647820A (en) Arbitration method and arbitration apparatus for distributed cluster systems
CN105812435A (en) Application upgrading data package processing method and device, electronic equipment, and system
CN103547342A (en) Information sending method, information reading and notifying method, information receiving method and device
CN103475512A (en) Internet of Things remote management platform migration method, device and Internet of Things terminal
CN113127168A (en) Service distribution method, system, device, server and medium
CN104113435A (en) Method and device for generating identifier
CN111654399A (en) Networking method, device and equipment based on SD-WAN and storage medium
CN102111754B (en) Multi-mode equipment and method for upgrading software thereof
WO2021048810A1 (en) System, method, and computer program for transferring subscriber identity module (sim) information for sim card or esim activation
US11075925B2 (en) System and method to enable component inventory and compliance in the platform
CN105763616A (en) Resource-downloading method and device
CN112804099A (en) Parameter batch configuration method and device, computer equipment and readable storage medium
CN104852974A (en) Message processing method in the process of PPPoE authentication and related equipment
CN111182536A (en) SIM card state detection method, device, network equipment and storage medium
EP4195033A1 (en) Method and apparatus for upgrading blockchain system, and terminal device
CN113099431B (en) Communication method and device based on LoRa channel and LoRa host
US20150109945A1 (en) On-demand transmission path providing system and method
US10979287B2 (en) Method and apparatus for receiving a solution when configuration function verification fails in a terminal
KR101251630B1 (en) System and method for providing push service
CN111124445B (en) Home gateway upgrading method and home gateway
CN111629054B (en) Message processing method, device and system, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant