CN107104846A - A kind of method for realizing resource distribution, device and resource distribution center - Google Patents

A kind of method for realizing resource distribution, device and resource distribution center Download PDF

Info

Publication number
CN107104846A
CN107104846A CN201710407334.4A CN201710407334A CN107104846A CN 107104846 A CN107104846 A CN 107104846A CN 201710407334 A CN201710407334 A CN 201710407334A CN 107104846 A CN107104846 A CN 107104846A
Authority
CN
China
Prior art keywords
micro services
resource
resource distribution
identification information
distribution center
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.)
Pending
Application number
CN201710407334.4A
Other languages
Chinese (zh)
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.)
Beijing VRV Software Corp Ltd
Original Assignee
Beijing VRV Software Corp 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 Beijing VRV Software Corp Ltd filed Critical Beijing VRV Software Corp Ltd
Priority to CN201710407334.4A priority Critical patent/CN107104846A/en
Publication of CN107104846A publication Critical patent/CN107104846A/en
Pending legal-status Critical Current

Links

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/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Abstract

The present invention proposes a kind of method for realizing resource distribution, and applied to micro services, this method includes:To all identification informations of resource distribution center broadcasts first;Wherein, first identification information is and the unique corresponding identification information of the micro services;Receive the asset data information that resource distribution center corresponding with the micro services is sent;Wherein, the asset data information be resource distribution center corresponding with the micro services after the first identification information that the micro services are sent is received, be the data message of the resource of the micro services distribution.The resource distribution of the automation between micro services and resource distribution center can be realized using above-mentioned technical proposal, beneficial to mitigation O&M burden.

Description

A kind of method for realizing resource distribution, device and resource distribution center
Technical field
The present invention relates to distributed application technique field, more particularly to a kind of method for realizing resource distribution, device and money Source configuration center.
Background technology
Micro services are a new technologies that application and service is disposed in cloud.Micro services technology is around business scope component To create application, these applications independently can be developed and managed, and micro services cloud framework peace is used in scattered component Platform can make deployment, the delivery of management and service function become simpler.
Micro services are in networking work, it is necessary to complete resource distribution, micro services root by itself corresponding resource distribution center Complete to start according to the resource of oneself is distributed to.The conventional method for realizing resource distribution is, when micro services are needed in resource distribution It is the IP address that micro services configure resource distribution center first by operation maintenance personnel, micro services are according to IP address when the heart configures resource Resource distribution center is connected to, resource is applied for resource distribution center.For larger application system, it is included in incognito Quantity of being engaged in can be a lot, if configuring the IP address at resource distribution center when each micro services networks for it, undoubtedly increase O&M burden.
The content of the invention
Defect and deficiency based on above-mentioned prior art, the present invention propose a kind of method for realizing resource distribution, device and Resource distribution center, can realize the resource distribution of the automation between micro services and resource distribution center.
First aspect present invention proposes a kind of method for realizing resource distribution, and applied to micro services, this method includes:To institute Some identification informations of resource distribution center broadcasts first;Wherein, first identification information is uniquely corresponding with the micro services Identification information;Receive the asset data information that resource distribution center corresponding with the micro services is sent;Wherein, the resource Data message is that resource distribution center corresponding with the micro services is receiving the first identification information that the micro services are sent Afterwards, it is the data message for the resource that the micro services are distributed.It can be seen that, using above-mentioned technical proposal, realize micro services and resource Automatic identification and resource distribution between configuration center, eliminate the processing for the IP address that resource distribution center is configured for micro services Process, alleviates O&M burden.
Second aspect of the present invention proposes a kind of device for realizing resource distribution, and applied to micro services, the device includes:Broadcast Unit, for all identification informations of resource distribution center broadcasts first;Wherein, first identification information be with it is described micro- The unique corresponding identification information of service;Data receipt unit, for receiving resource distribution center hair corresponding with the micro services The asset data information sent;Wherein, the asset data information is that resource distribution center corresponding with the micro services is being received It is the data message of the resource of the micro services distribution after the first identification information sent to the micro services.
In one implementation, to after all identification informations of resource distribution center broadcasts first, this method is also wrapped Include:Receive the second identification information that resource distribution center is sent;Wherein, second identification information is corresponding with the micro services Resource distribution center for the micro services configuration resource after, to the micro services send self identification information;According to described Second identification information, confirms to send the port address at the resource distribution center of second identification information;With accessing the port Location, the asset data information for distributing to the micro services is obtained from the resource distribution center.
In one implementation, after the second flag information that resource distribution center is sent is received, this method also includes: According to second identification information, judge to send the resource distribution center of second identification information, if be with it is described in incognito It is engaged in corresponding resource distribution center;If the resource distribution center for sending second identification information is corresponding with the micro services Resource distribution center, then according to second identification information, confirm to send the resource distribution center of second identification information Port address.
In one implementation, this method also includes:Receive the newly-increased available resource information that resource distribution center is sent; Response message is sent to the resource distribution center for sending the newly-increased available resource information.
Third aspect present invention proposes a kind of method for realizing resource distribution, applied to resource distribution center, this method bag Include:Receive the first identification information;Wherein, first identification information is micro services broadcast, uniquely corresponding with the micro services Identification information;Whether according to first identification information, it is corresponding with the resource distribution center to judge the micro services Micro services;If the micro services are micro services corresponding with the resource distribution center, resource is configured for the micro services; By the data message of the resource configured for the micro services, the micro services are sent to.Such scheme is realized in resource distribution The heart, automatically according to the request of micro services, is micro services configuration resource, is eliminated when micro services ask resource, is micro services configuration The processing procedure of the IP address at resource distribution center, reduces O&M burden.
Fourth aspect present invention proposes a kind of resource distribution center, including:Information receiving unit, is identified for receiving first Information;Wherein, first identification information is micro services broadcast, with the unique corresponding identification information of the micro services;Judge Processing unit, for according to first identification information, judging whether the micro services are corresponding with the resource distribution center Micro services;Resource configuration unit, for when it is described judgement processing unit judge the micro services be with the resource distribution It is the micro services configuration resource during the corresponding micro services of the heart;Information transmitting unit, for the money that will be configured for the micro services The data message in source, is sent to the micro services.
In one implementation, the data message by the resource configured for the micro services, is sent to described micro- Service, including:According to first identification information, confirm to send the port address of the micro services of first identification information;Visit The port address of the micro services is asked, and the data message of the resource configured for the micro services is sent to the micro services.
In one implementation, after for micro services configuration resource, this method also includes:Sent out to the micro services The second identification information is sent, makes the micro services according to second identification information, accesses the resource distribution center;Wherein, institute State the identification information that the second identification information is the resource distribution center itself;When the acquisition money for receiving the micro services transmission During the request of source data information, the asset data information for distributing to the micro services is exported to the micro services.
In one implementation, this method also includes:Receive the newly-increased available resource information that micro services are sent;Will be described Newly-increased available resource information, is broadcast to all micro services corresponding with the resource distribution center.
In one implementation, this method also includes:Receive the response message that micro services are sent;Wherein, the response Information is the response message that micro services are sent after the newly-increased available resource information is received;According to the response message of reception, Judge whether all micro services corresponding with the resource distribution center all receive the newly-increased available resource information;If there is The micro services of the newly-increased available resource information are not received, then again to the micro services for not receiving the newly-increased available resource information Send the newly-increased available resource information.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of method for realizing resource distribution provided in an embodiment of the present invention;
Fig. 2 is error control mechanism schematic diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of device for realizing resources control provided in an embodiment of the present invention;
Fig. 4 is the structural representation of another device for realizing resources control provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation at resource distribution center provided in an embodiment of the present invention.
Embodiment
In distribution application system, it is necessary to by resource distribution center be each Distributed Application, such as each micro services, Resource distribution is completed, each micro services starts according to the resource of itself is distributed to.Micro services, which network, lacks standard, each software factory Family all realizes the Client Agent of oneself, the agency by with the resource distribution center to center communications such as Zookeeper and obtain available Resource.Distribution application system is in large scale, and numerous micro services are distributed in the entire system, and arranges multiple moneys accordingly Source configuration center is all micro services configuration resources.
It is in large scale based on distribution application system, the characteristics of micro services and numerous resource distribution center, when O&M is whole , it is necessary to be that micro services configure corresponding resource distribution center by operation maintenance personnel when micro services need request resource during system IP address so that micro services can be correctly to corresponding resource distribution center requests resource.For operation maintenance personnel, this nothing It is suspected to be a cumbersome and heavy O&M burden.
Based on above-mentioned present situation, the embodiment of the present invention is proposed in a kind of method for realizing resource distribution, device and resource distribution The heart, can make to realize resource distribution between micro services and resource distribution center automatically, mitigate O&M burden.
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 carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
As shown in figure 1, the method for realizing resource distribution that the embodiment of the present invention is proposed, including:
S101, micro services are to all resource distribution center broadcasts and itself unique corresponding first identification information;
Specifically, in distribution application system, for the ease of distinguishing each micro services and each resource distribution center, It is that each micro services and each resource distribution center set unique identification information respectively.For the ease of distinguishing, the present invention is implemented The identification information of micro services is set to the first identification information by example, and the identification information at resource distribution center is set into the second mark Information.When micro services need to apply for resource to resource distribution center, marked first to all resource distribution center broadcasts itself Know information, i.e. the first identification information.
Micro services realize the broadcast of the first identification information using udp protocol.Udp protocol is a kind of connectionless transmission association View, therefore the IP address that need not configure resource distribution center for micro services can just realize micro services to resource distribution center Information is broadcasted.In udp protocol, data message is sent in the form of packet, but udp protocol do not provide packet packet, Assembling, it is impossible to be ranked up to packet, that is to say, that after message is sent, it is impossible to learn its whether safe and complete arrival, Therefore, udp protocol provides insecure data transfer.
In order to ensure the reliability of broadcast communication, the embodiment of the present invention is that broadcast communication increases on the basis of udp protocol Error control mechanism.Specifically as shown in Fig. 2 after data sender's broadcast transmission packet, data receiver completely receives During to packet, the acknowledgement character response information that characterize data bag has been collected is sent to data sender;Data sender is receiving After acknowledgement character response information, the acknowledgement character response information that characterize data bag is sent is sent to data receiver;It is understood that such as Fruit data receiver does not have complete received data packet, then data receiver direction data sender can be set to send characterize data bag The NACK response messages not collected, inform that data sender resends and implement above-mentioned Error Control in packet, retransmission process Mechanism.
It should be noted that in embodiments of the present invention, in the way of plug-in unit, be former distribution application system it is each in incognito The function of resource distribution is realized in business addition.That is, in the form of plug-in unit, technology of the embodiment of the present invention is realized instead of micro services Scheme, such as broadcast data information, acquisition asset data information.It is understood that can also collect directly in micro services Into the function of realizing technical scheme of the embodiment of the present invention, the embodiment of the present invention is not to implementing technical scheme of the embodiment of the present invention Form do any restriction.
S102, resource distribution center are received after the first identification information, according to the first identification information, judge above-mentioned micro services Whether it is micro services corresponding with itself;
Specifically, in distribution application system, each micro services is all assigned corresponding resource distribution center, when in incognito When business needs request resource, request is sent to corresponding resource distribution center.Again by micro services are in a broadcast manner to institute Some identification informations of resource distribution center broadcasts first, it is therefore desirable to resource distribution center identification first identification information, judge Whether it is the corresponding micro services in resource distribution center itself.
Specific recognition methods can store the mark of all micro services corresponding with itself in resource distribution central interior Know information, i.e. the first identification information.When resource distribution center receives the first identification information of micro services broadcast, by reception First identification information is contrasted with the first identification information stored, if the first identification information received, is itself storage First identification information, then the micro services that explanation sends above-mentioned first identification information are micro services corresponding with itself;Otherwise, explanation The micro services for sending above-mentioned first identification information are not micro services corresponding with itself, and place is refused to the first identification information of reception Reason.
If resource distribution center judges that above-mentioned micro services are micro services corresponding with itself, perform step S103, be Above-mentioned micro services configure resource;
If specifically, resource distribution center confirm send the first identification information micro services be it is corresponding with itself in incognito Business, then be configured to the resource started for the micro services.Specific collocation method, it is identical with conventional resource allocation method, this Place is repeated no more.
The resource at resource distribution center includes two classes:Give tacit consent to assignable resource and authorize the resource that could be distributed.Acquiescence Assignable resource, can be distributed directly to micro services.When micro services ask to authorize the resource that could be distributed, in resource distribution The heart will also verify the authority of micro services, could be that micro services distribution needs to authorize and could divided only when micro services ownership is prescribed a time limit The resource matched somebody with somebody.
S104, resource distribution center confirm to send the micro- of above-mentioned first identification information according to the first identification information of reception The port address of service;
Specifically, first identification information of the resource distribution centrally through reception, can confirm that transmission first identification information Micro services port address.It by way of being pre-configured with storage, can specifically store the port of all corresponding micro services Address, when receiving the first identification information, by the way that the first identification information of reception and the micro services port address of storage are believed Breath is contrasted, and can confirm that the port address for the micro services for sending identification information.
S105, resource distribution center access the port address of above-mentioned micro services, by the resource configured for above-mentioned micro services Data message is sent to above-mentioned micro services;
Specifically, resource distribution center is accessed after confirming to send the port address of micro services of the first identification information The port address, that is, communication connection is set up with corresponding micro services, and the data of the resource configured for the micro services are believed Breath is sent to the micro services.
Accordingly, micro services perform step S106, receive the asset data information of above-mentioned resource distribution center side;
Specifically, when resource distribution center actively accesses micro services, and asset data information is sent to micro services, micro services Receive information.
It should be noted that because the embodiment of the present invention is that on the basis of the former micro services, additional plug-ins are realized in incognito Resource distribution between business and resource distribution center, therefore, above-mentioned resource distribution center send asset data information to micro services Actually asset data information is sent to the plug-in unit of micro services;And above-mentioned micro services receive asset data information, actually It is that micro services receive asset data information by plug-in unit.
Optionally, when resource distribution center is that micro services configure resource, and confirm after the port address of micro services, can be with Selection directly performs step S107, sends self identification information, i.e. the second identification information to above-mentioned micro services;
Accordingly, above-mentioned micro services are received after the second identification information, performed step S108, are believed according to the second of reception the mark Breath, whether the resource distribution center for judging to send above-mentioned second identification information is resource distribution center corresponding with itself;
Specifically, inside micro services, the identification information at resource distribution center corresponding with itself is stored, if micro services The second identification information received, is exactly the identification information of itself storage, then illustrates that above-mentioned resource distribution center is corresponding with itself Resource distribution center;If the second identification information that micro services are received, it is not the identification information of itself storage, then illustrates above-mentioned Resource distribution center is not resource distribution center corresponding with itself.
If the resource distribution center that micro services confirm to send above-mentioned second flag information is that resource corresponding with itself is matched somebody with somebody Center is put, then performs step S109, according to above-mentioned second identification information, confirms to send the resource distribution of above-mentioned second identification information The port address at center;
Specifically, confirm that the method for the port address of micro services is identical with the resource distribution center of above-mentioned introduction, micro services The port address at the resource distribution center of the second identification information of transmission is confirmed using identical method.
S110, micro services access the port address at above-mentioned resource distribution center, and send acquisition money to resource distribution center Source data information is asked;
Resource distribution center is received after the request of acquisition asset data information of micro services transmission, execution step S111, The asset data information for distributing to above-mentioned micro services is exported to above-mentioned micro services;
Micro services have got from corresponding resource distribution center and have distributed to the asset data information of itself.
Further, micro services can also as distribution application system resource, used for other micro services.When new Micro services start when, equivalent to new resource is added in distribution application system, now resource distribution center can be received Newly-increased available resource information;And if micro services are closed, then the resource that the micro services are provided cannot also use, now resource Configuration center can receive available resources closing information.
The upstate of micro services influences whether the health status of whole distribution application system, if some micro services should With there is a problem, then other micro services applications cannot initiate business processing request to the application again.So resource is matched somebody with somebody The center of putting needs to monitor the health status of each micro services.Specifically, micro services timing is sent to corresponding resource distribution center Online information, if resource distribution center is not received by the heartbeat message of micro services transmission within a period of time, illustrates this Micro services are unavailable.Resource distribution center broadcasts inform that other micro services micro services are unavailable, and change the money of the micro services Source state.
When resource distribution center receives the newly-increased available resource information of micro services transmission, step S112 is performed, by newly Increase available resource information, broadcast transmission gives itself corresponding all micro services;
Micro services are received after the newly-increased available resource information of resource distribution center broadcasts, perform step S113, to transmission The resource distribution center of above-mentioned newly-increased available resource information sends response message;
Resource distribution center according to the response message of reception, perform step S114, judge whether it is all corresponding with itself Micro services all receive above-mentioned newly-increased available resource information;
If there is the micro services for the above-mentioned newly-increased available resource information not received, then S115 is performed, again to not receiving Micro services to above-mentioned newly-increased available resource information send above-mentioned newly-increased available resource information.
By above-mentioned visible to introducing for technical scheme of the embodiment of the present invention, technical scheme of the embodiment of the present invention, realize Between micro services and corresponding resource distribution center, automatic resource distribution can simplify the management operation of operation maintenance personnel, subtract Light O&M burden.
Fig. 3 is a kind of structural representation of device for realizing resource distribution provided in an embodiment of the present invention, the device application In micro services.Including:Radio unit 301, for all identification informations of resource distribution center broadcasts first;Wherein, it is described First identification information is and the unique corresponding identification information of the micro services;Data receipt unit 302, for receive with it is described micro- Service the asset data information that corresponding resource distribution center is sent;Wherein, the asset data information is and the micro services Corresponding resource distribution center is the money of the micro services distribution after the first identification information that the micro services are sent is received The data message in source.
Specifically, the specific works content of the unit of the device for realizing resource distribution shown in Fig. 3, is referred to above-mentioned The content of embodiment of the method, here is omitted.
Fig. 4 is the structural representation of another device for realizing resource distribution provided in an embodiment of the present invention, the device Data receipt unit 302 is additionally operable to receive the second identification information that resource distribution center is sent;Wherein, second identification information After being micro services configuration resource for resource distribution center corresponding with the micro services, sent to the micro services itself Identification information;The device also includes:Analysis and processing unit 303, for according to second identification information, confirming to send described the The port address at the resource distribution center of two identification informations;Information acquisition unit 304, for accessing the port address, from institute State resource distribution center and obtain the asset data information for distributing to the micro services.
Specifically, the specific works content of the unit of the device for realizing resource distribution shown in Fig. 4, is referred to above-mentioned The content of the embodiment of method, here is omitted.
Fig. 5 is a kind of structural representation at resource distribution center provided in an embodiment of the present invention, pericardium in the resource distribution Include:Information receiving unit 501, for receiving the first identification information;Wherein, first identification information is micro services broadcast, With the unique corresponding identification information of the micro services;Processing unit 502 is judged, for according to first identification information, judging Whether the micro services are micro services corresponding with the resource distribution center;Resource configuration unit 503, for judging when described Processing unit judges the micro services when being micro services corresponding with the resource distribution center, is the micro services configuration money Source;Information transmitting unit 504, for the data message for the resource that will be configured for the micro services, is sent to the micro services.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or using the present invention. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (18)

1. a kind of method for realizing resource distribution, it is characterised in that applied to micro services, this method includes:
To all identification informations of resource distribution center broadcasts first;Wherein, first identification information is and the micro services Unique corresponding identification information;
Receive the asset data information that resource distribution center corresponding with the micro services is sent;Wherein, the number of resources it is believed that Cease be resource distribution center corresponding with the micro services after the first identification information that the micro services are sent is received, be institute State the data message of the resource of micro services distribution.
2. according to the method described in claim 1, it is characterised in that believe being identified to all resource distribution center broadcasts first After breath, this method also includes:
Receive the second identification information that resource distribution center is sent;Wherein, second identification information is and the micro services pair The resource distribution center answered is that the micro services are configured after resource, the self identification information sent to the micro services;
According to second identification information, confirm to send the port address at the resource distribution center of second identification information;
The port address is accessed, the asset data information for distributing to the micro services is obtained from the resource distribution center.
3. method according to claim 2, it is characterised in that receiving the second flag information that resource distribution center is sent Afterwards, this method also includes:
According to second identification information, judge to send the resource distribution center of second identification information, if be with it is described The corresponding resource distribution center of micro services;
If the resource distribution center for sending second identification information is resource distribution center corresponding with the micro services, According to second identification information, confirm to send the port address at the resource distribution center of second identification information.
4. according to the method described in claim 1, it is characterised in that this method also includes:
Receive the newly-increased available resource information that resource distribution center is sent;
Response message is sent to the resource distribution center for sending the newly-increased available resource information.
5. a kind of method for realizing resource distribution, it is characterised in that applied to resource distribution center, this method includes:
Receive the first identification information;Wherein, first identification information is micro services broadcast, uniquely corresponding with the micro services Identification information;
Whether according to first identification information, it is micro services corresponding with the resource distribution center to judge the micro services;
If the micro services are micro services corresponding with the resource distribution center, resource is configured for the micro services;
By the data message of the resource configured for the micro services, the micro services are sent to.
6. method according to claim 5, it is characterised in that the data by the resource configured for the micro services are believed Breath, is sent to the micro services, including:
According to first identification information, confirm to send the port address of the micro services of first identification information;
The port address of the micro services is accessed, and the data message of the resource configured for the micro services is sent to described micro- Service.
7. method according to claim 5, it is characterised in that after for micro services configuration resource, this method is also wrapped Include:
The second identification information is sent to the micro services, makes the micro services according to second identification information, accesses the money Source configuration center;Wherein, second identification information is the identification information at the resource distribution center itself;
When receiving the request for the acquisition asset data information that the micro services are sent, the resource of the micro services will be distributed to Data message is exported to the micro services.
8. method according to claim 5, it is characterised in that this method also includes:
Receive the newly-increased available resource information that micro services are sent;
By the newly-increased available resource information, all micro services corresponding with the resource distribution center are broadcast to.
9. method according to claim 8, it is characterised in that this method also includes:
Receive the response message that micro services are sent;Wherein, the response message is that micro services are receiving the newly-increased available money The response message sent after source information;
According to the response message of reception, judge whether all micro services corresponding with the resource distribution center all receive described new Increase available resource information;
If there is the micro services for not receiving the newly-increased available resource information, then again to not receiving the newly-increased available resources The micro services of information send the newly-increased available resource information.
10. a kind of device for realizing resource distribution, it is characterised in that applied to micro services, the device includes:
Radio unit, for all identification informations of resource distribution center broadcasts first;Wherein, first identification information is With the unique corresponding identification information of the micro services;
Data receipt unit, for receiving the asset data information that resource distribution center corresponding with the micro services is sent;Its In, the asset data information is resource distribution center corresponding with the micro services in receive that the micro services send the It is the data message of the resource of the micro services distribution after one identification information.
11. device according to claim 10, it is characterised in that the data receipt unit is additionally operable to receive resource distribution The second identification information that center is sent;Wherein, second identification information is resource distribution center corresponding with the micro services After micro services configuration resource, the self identification information sent to the micro services;
The device also includes:
Analysis and processing unit, for according to second identification information, confirming to send the resource distribution of second identification information The port address at center;
Information acquisition unit, for accessing the port address, obtains from the resource distribution center and distributes to the micro services Asset data information.
12. device according to claim 11, it is characterised in that the device also includes:
Judging unit, for according to second identification information, judging to send the resource distribution center of second identification information, Whether it is resource distribution center corresponding with the micro services;
If the resource distribution center for sending second identification information is resource distribution center corresponding with the micro services, Control the analysis and processing unit according to second identification information, confirm to send in the resource distribution of second identification information The port address of the heart.
13. device according to claim 10, it is characterised in that the data receipt unit is additionally operable to:Resource is received to match somebody with somebody Put the newly-increased available resource information of center transmission;Response is sent to the resource distribution center for sending the newly-increased available resource information Information.
14. a kind of resource distribution center, it is characterised in that including:
Information receiving unit, for receiving the first identification information;Wherein, first identification information is micro services broadcast, with The unique corresponding identification information of the micro services;
Judge processing unit, for according to first identification information, judge the micro services whether be and the resource distribution The corresponding micro services in center;
Resource configuration unit, for judging that the micro services are corresponding with the resource distribution center when the judgement processing unit Micro services when, be micro services configuration resource;
Information transmitting unit, for the data message for the resource that will be configured for the micro services, is sent to the micro services.
15. resource distribution center according to claim 14, it is characterised in that described information transmitting element will be described micro- The data message of the resource of service configuration, when being sent to the micro services, specifically for:
According to first identification information, confirm to send the port address of the micro services of first identification information;Access described The port address of micro services, and the data message of the resource configured for the micro services is sent to the micro services.
16. resource distribution center according to claim 14, it is characterised in that described information transmitting element is additionally operable to:
The second identification information is sent to the micro services, makes the micro services according to second identification information, accesses the money Source configuration center;Wherein, second identification information is the identification information at the resource distribution center itself;
When receiving the request for the acquisition asset data information that the micro services are sent, the resource of the micro services will be distributed to Data message is exported to the micro services.
17. resource distribution center according to claim 14, it is characterised in that described information receiving unit is additionally operable to:
Receive the newly-increased available resource information that micro services are sent;
Described information transmitting element is additionally operable to:By the newly-increased available resource information, it is broadcast to and the resource distribution center pair All micro services answered.
18. resource distribution center according to claim 17, it is characterised in that described information receives unit and is additionally operable to:
Receive the response message that micro services are sent;Wherein, the response message is that micro services are receiving the newly-increased available money The response message sent after source information;
According to the response message of reception, judge whether all micro services corresponding with the resource distribution center all receive described new Increase available resource information;
If there is the micro services for not receiving the newly-increased available resource information, then again to not receiving the newly-increased available resources The micro services of information send the newly-increased available resource information.
CN201710407334.4A 2017-06-02 2017-06-02 A kind of method for realizing resource distribution, device and resource distribution center Pending CN107104846A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710407334.4A CN107104846A (en) 2017-06-02 2017-06-02 A kind of method for realizing resource distribution, device and resource distribution center

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710407334.4A CN107104846A (en) 2017-06-02 2017-06-02 A kind of method for realizing resource distribution, device and resource distribution center

Publications (1)

Publication Number Publication Date
CN107104846A true CN107104846A (en) 2017-08-29

Family

ID=59659825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710407334.4A Pending CN107104846A (en) 2017-06-02 2017-06-02 A kind of method for realizing resource distribution, device and resource distribution center

Country Status (1)

Country Link
CN (1) CN107104846A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108540529A (en) * 2018-03-07 2018-09-14 江苏电力信息技术有限公司 Do not restart dynamic parameter method for refreshing under a kind of framework based on micro services
CN109669703A (en) * 2018-12-25 2019-04-23 鼎信信息科技有限责任公司 Micro services information configuring methods, device, computer equipment and storage medium
CN110661662A (en) * 2019-09-26 2020-01-07 北京北信源软件股份有限公司 Lightweight microservice configuration method
CN110971623A (en) * 2018-09-28 2020-04-07 中兴通讯股份有限公司 Micro-service instance elastic scaling method and device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123482A (en) * 2010-01-07 2011-07-13 杭州华三通信技术有限公司 Method and equipment for accessing zero-configuration MP (Mesh Point) into Mesh network
US20160112475A1 (en) * 2014-10-21 2016-04-21 Twilio, Inc. System and method for providing a micro-services communication platform
CN106254423A (en) * 2016-07-20 2016-12-21 普元信息技术股份有限公司 The method realizing Restful service release quickly based on micro services framework
CN106533929A (en) * 2016-12-30 2017-03-22 北京中电普华信息技术有限公司 Micro-service development platform, generation method, deployment method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123482A (en) * 2010-01-07 2011-07-13 杭州华三通信技术有限公司 Method and equipment for accessing zero-configuration MP (Mesh Point) into Mesh network
US20160112475A1 (en) * 2014-10-21 2016-04-21 Twilio, Inc. System and method for providing a micro-services communication platform
CN106254423A (en) * 2016-07-20 2016-12-21 普元信息技术股份有限公司 The method realizing Restful service release quickly based on micro services framework
CN106533929A (en) * 2016-12-30 2017-03-22 北京中电普华信息技术有限公司 Micro-service development platform, generation method, deployment method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108540529A (en) * 2018-03-07 2018-09-14 江苏电力信息技术有限公司 Do not restart dynamic parameter method for refreshing under a kind of framework based on micro services
CN110971623A (en) * 2018-09-28 2020-04-07 中兴通讯股份有限公司 Micro-service instance elastic scaling method and device and storage medium
CN110971623B (en) * 2018-09-28 2023-02-17 中兴通讯股份有限公司 Micro-service instance elastic scaling method and device and storage medium
CN109669703A (en) * 2018-12-25 2019-04-23 鼎信信息科技有限责任公司 Micro services information configuring methods, device, computer equipment and storage medium
CN110661662A (en) * 2019-09-26 2020-01-07 北京北信源软件股份有限公司 Lightweight microservice configuration method
CN110661662B (en) * 2019-09-26 2022-04-05 北京北信源软件股份有限公司 Lightweight microservice configuration method

Similar Documents

Publication Publication Date Title
US11134543B2 (en) Interworking LPWAN end nodes in mobile operator network
US7502855B2 (en) Wireless classroom system allowing user to access a particular classroom by selecting corresponding network from a list of wireless networks
US8650311B2 (en) Client device configured to connect with a home network
CN107104846A (en) A kind of method for realizing resource distribution, device and resource distribution center
CN108141751A (en) For supporting the method for the Lawful Interception to long-range adjacent service UE in a network
CN1819593B (en) Information processor and data transmission system and method
WO2015131831A1 (en) Communication method and device
KR20180079475A (en) Service layer interworking using mqtt protocol
US20170201411A1 (en) Layered management server delegation
CN114422473B (en) IP address allocation method and device
CN108259164A (en) The identity identifying method and equipment of a kind of internet of things equipment
US10050823B2 (en) System and method for providing device management service to electronic device having no broadband communication module
CN107615791A (en) Apparatus and method for adding M2M services
CN108306938A (en) A kind of method, apparatus and gateway of Internet of Things product automatic networking
CN107005430A (en) A kind of communication means based on data link layer, equipment and system
CN105721509B (en) A kind of server system
CN106331197A (en) Method for managing Internet protocol host, broadband access server and management server
US7218714B2 (en) Method of calling service among devices in home network
CN112468549B (en) Method, equipment and storage medium for reverse communication and management of server
CN109246690A (en) Method for network access, device, storage medium and processor
CN105959292A (en) Device using authority identification method and system, and management server
TWI474731B (en) Wimax client and mothed for setting parameters of wimax client
CN106304071B (en) A kind of network access verifying method, access authentication equipment and system
CN110120932A (en) Multipath method for building up and device
CN103746887A (en) Method for activating locomotive access network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170829