CN105827467B - A kind of registration center's upgrade method, relevant device and system - Google Patents
A kind of registration center's upgrade method, relevant device and system Download PDFInfo
- Publication number
- CN105827467B CN105827467B CN201610379348.5A CN201610379348A CN105827467B CN 105827467 B CN105827467 B CN 105827467B CN 201610379348 A CN201610379348 A CN 201610379348A CN 105827467 B CN105827467 B CN 105827467B
- Authority
- CN
- China
- Prior art keywords
- service
- server
- interface
- registrar
- consumption
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5003—Managing SLA; Interaction between SLA and QoS
- H04L41/5019—Ensuring fulfilment of SLA
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
The embodiment of the invention discloses a kind of registration center's upgrade method, relevant device and systems, this method comprises: control server disposes first kind interface on registrar, service consumption server and service providing server respectively pass through the second class interface communication disposed in advance between registrar;Control server indicates to dispose first kind interface on service consumption server and service providing server to service consumption server and service providing server transmission interface upgrading message, so that service consumption server and service providing server respectively pass through first kind interface communication with registrar.Using the embodiment of the present invention, the risk that can be reduced cost of device, reduce upgrading reduces update time, improves upgrading efficiency.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of registration center's upgrade methods, relevant device and system.
Background technique
Fig. 1 is serviceization circuit theory schematic diagram in micro services, includes registration center 101, service in the service frame
Consumption service device (cluster) 102 and service providing server (cluster) 103, operational process are as follows: the service providing server 103
To 101 registration service of registrar, to inform service type that itself can be provided;The service consumption server 102 to
Registrar 101 sends service discovery request, and it is interested to contain the service consumption server 102 in the service discovery request
Service;Service server 101 inquires which node is capable of providing the service consumption server 102 according to the service discovery request
Interested service is capable of providing the interested clothes of service consumption server 102 when inquiring the service providing server 103
When business, the node address of the service providing server 103 and running state information are sent to the service consumption server 102,
The service consumption server 102 is based on the node address and running state information is taken from the service providing server 103
Business.Currently, the interactive interface between the registrar 101, service consumption server 102 and service providing server 103 is very
Be when more coupling interface, for example, using Zookeeper as registrar when, the registrar 101, service disappear
Take server 102 and 103 interface of service providing server is Zookeeper client, so as to the registrar 101 and is somebody's turn to do
Between service consumption server 102 by the Zookeeper client carry out data communication and the registrar 101 with
Data communication is carried out by the Zookeeper client between the service providing server 103.
In the prior art, there are two types of the update modes of the coupling interface of registrar, the first is to carry out version more
Newly, for example, by 2.1 version updating of Zookeeper client to 2.2 version of Zookeeper client, due to the Zookeeper
Client 2.1 editions is to 2.2 editions compatibilities of Zookeeper client, therefore the service consumption server and the service providing server
Without immediately by 2.1 version updating of Zookeeper client to 2.2 version of Zookeeper client.Second is to carry out interface
Type update (for example, Zookeeper client and Software Development Kit (and English: Software Development Kit,
Referred to as: SDK) client belongs to different interface types), this mode needs to redeploy a set of serviceization frame, such as Fig. 2 institute
Show, registrar 201, consumption service server 202 and service providing server 203 are old service frame, registration clothes
Device 204, consumption service server 205 and service providing server 206 be engaged in for new service frame, in new service frame
The interface type of deployment is different from the interface type that old serviceization frame mid portion is affixed one's name to.
Drawback of the prior art is that registrar is needed if interface is incompatible when updating by old service consumption
In data and business migration to new service consumption server on server, and by the number on old service providing server
According to on business migration to new service providing server, this process complicated and time consumption is longer, and needs newly-increased one times hard
Part resource.
Summary of the invention
The embodiment of the invention discloses a kind of registration center's upgrade method, relevant device and systems, can reduce equipment and open
Pin and the efficiency for improving registration center's upgrading.
In a first aspect, the embodiment of the invention provides a kind of registration center's upgrade methods, this method comprises:
Control server disposes first kind interface, service consumption server and service providing server on registrar
Respectively the second class interface communication between the registrar by disposing in advance;
The control server is indicated to service consumption server and service providing server transmission interface upgrading message
The first kind interface is disposed on the service consumption server and the service providing server, so that the service consumption
Server and the service providing server respectively pass through the first kind interface communication, the clothes between the registrar
Business provides the information registering of destination service that server is used to provide itself to the registrar, the registrar
For when receiving that the service consumption server sends for requesting the service discovery request of the destination service, by institute
The node address for stating service providing server is sent to the service consumption server, and the service consumption server is used for basis
The node address obtains the destination service from the service providing server.
By executing above-mentioned steps, when needing to upgrade the interface in registrar, the control server service disappears
Expense server and the service providing server newly dispose first kind interface, rather than open up new service consumption server and new
Service providing server disposes the first kind interface, avoids and migrates the service consumption server and the service providing server
On data, constantly reduce cost of device also improve upgrade the first kind interface efficiency.
With reference to first aspect, in the first possible implementation of the first aspect, the registrar includes the
One registrar and the second registrar deploy the second class interface on first registrar in advance;Institute
It states control server and disposes first kind interface on registrar and include:
Control server disposes first kind interface on second registrar.
With reference to first aspect or the first possible implementation of first aspect, second in first aspect can
In the implementation of energy, the method also includes:
The control server detects the registrar, the service consumption server and the service offer service
Whether the first kind interface operation of device is normal;
Then the control server is sent to the service consumption server and the service providing server if abnormal,
Switch indicating information, the switch indicating information is used to indicate the service consumption server and the service providing server is logical
The second class interface communication is crossed without by the first kind interface communication.
The possible implementation of second with reference to first aspect, in the third possible implementation of first aspect
In, the method also includes:
If normal, then the control server is unloaded to the service consumption server and service providing server transmission
Instruction message is carried, the unloading instruction message is used to indicate the service consumption server and the service providing server respectively
Unload the second class interface of itself.
Second aspect, the embodiment of the present invention provide a kind of registration center's upgrade method, this method comprises:
Service consumption server receives the interface upgrade message that control server is sent, and the control server is used for institute
It states service consumption server and service providing server sends the interface upgrade message to indicate the service consumption server
First kind interface is disposed with the service providing server, wherein the service consumption server and the service offer service
Device respectively passes through the second class interface communication disposed in advance between the registrar;
Service consumption server first kind interface according to the interface upgrade Message Disposition;
The service consumption server sends service discovery request to the registrar by the first kind interface
With request target service;The destination service that the service providing server is used to provide itself by the first kind interface
Information registering is to the registrar, and the registrar is for receiving the service by the first kind interface
When the service discovery request for being used to request the destination service that consumption service device is sent, by the section of the service providing server
Dot address is sent to the service consumption server;
The service consumption server obtains the target according to the node address from the service providing server
Service.
By executing above-mentioned steps, when needing to upgrade the interface in registrar, the control server service disappears
Expense server and the service providing server newly dispose first kind interface, rather than open up new service consumption server and new
Service providing server disposes the first kind interface, avoids and migrates the service consumption server and the service providing server
On data, constantly reduce cost of device also improve upgrade the first kind interface efficiency.
In conjunction with second aspect, in the first possible implementation of the second aspect, the service consumption server root
Include: according to first kind interface described in the interface upgrade Message Disposition
The service consumption server receives the installation kit for the first kind interface that the control server is sent;
The service consumption server installs the installation kit to dispose the first kind interface.
In conjunction with the possible implementation of the first of second aspect or second aspect, second in second aspect can
In the implementation of energy, the registrar includes the first registrar and the second registrar, first registration
It is deployed in advance on server and disposes the first kind in advance on the second class interface and second registrar and connect
Mouthful;The service consumption server sends service discovery request to the registrar by the first kind interface to request
Destination service includes:
The service consumption server sends service discovery to second registrar by the first kind interface
Request the information registering for the destination service for being also used to provide itself with request target service, the service providing server to institute
State the second registrar.
The third aspect, the embodiment of the present invention provide a kind of registration center's upgrade method, this method comprises:
Service providing server receives the interface upgrade message that control server is sent, and the control server is used for institute
It states service providing server and service consumption service device sends the interface upgrade message to indicate the service consumption server
First kind interface is disposed with the service providing server, wherein the service consumption server and the service offer service
Device respectively passes through the second class interface communication disposed in advance between the registrar;
Service providing server first kind interface according to the interface upgrade Message Disposition;
The information registering for the destination service that the service providing server is provided itself by the first kind interface arrives
The registrar, the registrar is for passing through the first kind interface to the service consumption server
When the service discovery request for being used to request the destination service sent by the first kind interface, connect by the first kind
The node address of the service providing server is sent to the service consumption server by mouth, and the service consumption server is used
In the destination service according to the node address request;
The service providing server provides the destination service for the service consumption server.
By executing above-mentioned steps, when needing to upgrade the interface in registrar, the control server service disappears
Expense server and the service providing server newly dispose first kind interface, rather than open up new service consumption server and new
Service providing server disposes the first kind interface, avoids and migrates the service consumption server and the service providing server
On data, constantly reduce cost of device also improve upgrade the first kind interface efficiency.
In conjunction with the third aspect, in the first possible implementation of the third aspect, the service providing server root
Include: according to first kind interface described in the interface upgrade Message Disposition
The service providing server receives the installation kit for the first kind interface that the control server is sent;
The service providing server installs the installation kit to dispose the first kind interface.
In conjunction with the possible implementation of the first of the third aspect or the third aspect, second in the third aspect can
In the implementation of energy, the registrar includes the first registrar and the second registrar, first registration
It is deployed in advance on server and deploys the first kind in advance on the second class interface and second registrar
Interface;The information registering for the destination service that the service providing server is provided itself by the first kind interface is described in
Registrar includes:
The information registering for the destination service that the service providing server is provided itself by the first kind interface arrives
Second registrar, the service consumption server are used for through the first kind interface to second registration service
Device sends service discovery request to request the destination service.
Fourth aspect, the embodiment of the present invention provide a kind of control server, and the control server includes processor, storage
Device and communication interface, the processor calls the program in the memory, for performing the following operations:
First kind interface is disposed on registrar by the communication interface, service consumption server and service provide
Server respectively passes through the second class interface communication disposed in advance between the registrar;
Referred to by the communication interface to service consumption server and service providing server transmission interface upgrading message
Show and dispose the first kind interface on the service consumption server and the service providing server, so that the service disappears
Take server and the service providing server respectively between the registrar through the first kind interface communication, it is described
The information registering of destination service that service providing server is used to provide itself is to the registrar, the registration service
Device is used for when receiving the service discovery request for being used to request the destination service that the service consumption server is sent, will
The node address of the service providing server is sent to the service consumption server, and the service consumption server is used for root
The destination service is obtained from the service providing server according to the node address.
By executing aforesaid operations, when needing to upgrade the interface in registrar, the control server service disappears
Expense server and the service providing server newly dispose first kind interface, rather than open up new service consumption server and new
Service providing server disposes the first kind interface, avoids and migrates the service consumption server and the service providing server
On data, constantly reduce cost of device also improve upgrade the first kind interface efficiency.
In conjunction with fourth aspect, in the first possible implementation of the fourth aspect, the registrar includes the
One registrar and the second registrar deploy the second class interface on first registrar in advance;Institute
It states processor and first kind interface is disposed on registrar by the communication interface, specifically:
First kind interface is disposed on second registrar by the communication interface.
In conjunction with the possible implementation of the first of fourth aspect or fourth aspect, second in fourth aspect can
In the implementation of energy, processor is also used to:
Detect the first kind of the registrar, the service consumption server and the service providing server
Whether interface operation is normal;
Then the processor is mentioned by the communication interface to the service consumption server and the service if abnormal,
Switch indicating information is sent for server, the switch indicating information is used to indicate the service consumption server and the service
Server is provided by the second class interface communication without passing through the first kind interface communication.
In conjunction with second of possible implementation of fourth aspect, in the third possible implementation of fourth aspect
In, if normal, then the processor is also used to mention by the communication interface to the service consumption server and the service
Unloading instruction message is sent for server, the unloading instruction message is used to indicate the service consumption server and the service
The second class interface of each self-unloading of server itself is provided.
5th aspect, the embodiment of the present invention provide a kind of service consumption server, and the service consumption server includes place
Device and memory are managed, the processor calls the program in the memory, for performing the following operations:
The interface upgrade message that control server is sent is received, the control server is used for the service consumption service
Device and service providing server send the interface upgrade message to indicate that the service consumption server and the service provide
Server disposition first kind interface, wherein the service consumption server, the service providing server respectively take with the registration
The second class interface communication between business device by disposing in advance;
According to first kind interface described in the interface upgrade Message Disposition;
Service discovery request is sent with request target service to the registrar by the first kind interface;It is described
The information registering for the destination service that service providing server is used to provide itself by the first kind interface is to the registration
Server, the registrar are used for through the first kind interface in the use for receiving the service consumption server transmission
When requesting the service discovery request of the destination service, the node address of the service providing server is sent to the clothes
Business consumption service device;
The destination service is obtained from the service providing server according to the node address.
By executing aforesaid operations, when needing to upgrade the interface in registrar, the control server service disappears
Expense server and the service providing server newly dispose first kind interface, rather than open up new service consumption server and new
Service providing server disposes the first kind interface, avoids and migrates the service consumption server and the service providing server
On data, constantly reduce cost of device also improve upgrade the first kind interface efficiency.
In conjunction with the 5th aspect, in the first possible implementation of the 5th aspect, the processor connects according to
Mouth upgrading message disposes the first kind interface, specifically:
Receive the installation kit for the first kind interface that the control server is sent;
The installation kit is installed to dispose the first kind interface.
In conjunction with the first possible implementation of the 5th aspect or the 5th aspect, second at the 5th aspect can
In the implementation of energy, the registrar includes the first registrar and the second registrar, first registration
It is deployed in advance on server and deploys the first kind in advance on the second class interface and second registrar
Interface;The processor is sent service discovery request to the registrar by the first kind interface and is taken with request target
Business, specifically:
Send service discovery request to second registrar by the first kind interface with request target service,
The information registering for the destination service that the service providing server is also used to provide itself is to second registrar.
6th aspect, the embodiment of the present invention provide a kind of service providing server, and the service providing server includes place
Device and memory are managed, the processor calls the program in the memory, for performing the following operations:
The interface upgrade message that control server is sent is received, the control server is used for the service offer service
Device and service consumption service device send the interface upgrade message to indicate the service consumption server, the registrar
First kind interface is disposed with the service providing server, wherein the service consumption server and the service offer service
Device respectively passes through the second class interface communication disposed in advance between the registrar;
According to first kind interface described in the interface upgrade Message Disposition;
The information registering for the destination service for being provided itself by the first kind interface is described to the registrar
Registrar is for passing through the first kind interface to the service consumption server by the first kind interface
When what is sent is used to request the service discovery request of the destination service, the service is provided to clothes by the first kind interface
The node address of business device is sent to the service consumption server, and the service consumption server is used for according to the node address
Request the destination service;
The destination service is provided for the service consumption server.
By executing aforesaid operations, when needing to upgrade the interface in registrar, the control server service disappears
Expense server and the service providing server newly dispose first kind interface, rather than open up new service consumption server and new
Service providing server disposes the first kind interface, avoids and migrates the service consumption server and the service providing server
On data, constantly reduce cost of device also improve upgrade the first kind interface efficiency.
In conjunction with the 6th aspect, in the first possible implementation of the 6th aspect, the processor connects according to
Mouth upgrading message disposes the first kind interface, specifically:
Receive the installation kit for the first kind interface that the control server is sent;
The installation kit is installed to dispose the first kind interface.
In conjunction with the first possible implementation of the 6th aspect or the 6th aspect, second at the 6th aspect can
In the implementation of energy, the registrar includes the first registrar and the second registrar, first registration
It is deployed in advance on server and deploys the first kind in advance on the second class interface and second registrar
Interface;The information registering for the destination service that the processor is provided itself by the first kind interface is to the registration service
Device, specifically:
The information registering for the destination service itself being provided by the first kind interface to second registrar,
The service consumption server is used to send service discovery request to second registrar by the first kind interface
To request the destination service.
7th aspect, the embodiment of the present invention provide a kind of control server, and the control server includes for executing the
On the one hand the functional unit of some or all of step of any implementation.
Eighth aspect, the embodiment of the present invention provide a kind of service consumption server, and the service consumption server includes to use
In the functional unit for some or all of step for executing any implementation of first aspect.
9th aspect, the embodiment of the present invention provide a kind of service providing server, and the service providing server includes to use
In the functional unit for some or all of step for executing any implementation of first aspect.
Tenth aspect, the embodiment of the present invention provides a kind of registration center's upgrade-system, the system comprises control server,
Service consumption server and service providing server, in which:
The control server is described in any implementation of fourth aspect or the 7th any implementation of aspect
Control server;
The service consumption server is retouched by any implementation of the 5th aspect or any implementation of eighth aspect
The service consumption server stated;
The service providing server is retouched by any implementation of the 6th aspect or the 9th any implementation of aspect
The service providing server stated.
By implementing the embodiment of the present invention, when needing to upgrade the interface in registrar, the control server clothes
Business consumption service device and the service providing server newly dispose first kind interface, rather than open up new service consumption server and
New service providing server avoids to dispose the first kind interface and migrates the service consumption server and service offer clothes
The data being engaged on device constantly reduce cost of device and also improve the efficiency for upgrading the first kind interface.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described.
Fig. 1 is a kind of structural schematic diagram of serviceization frame in the prior art;
Fig. 2 is the structural schematic diagram of another serviceization frame in the prior art;
Fig. 3 is a kind of flow diagram of registration center's upgrade method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of serviceization frame provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of control server provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of service consumption server provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of service providing server provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of another control server provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of another service consumption server provided in an embodiment of the present invention;
Figure 10 is the structural schematic diagram of another service providing server provided in an embodiment of the present invention;
Figure 11 is a kind of structural schematic diagram of registration center's upgrade-system provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with attached drawing, technical scheme in the embodiment of the invention is clearly and completely described.
Fig. 3 is referred to, Fig. 3 is a kind of flow diagram of registration center's upgrade method provided in an embodiment of the present invention, should
Method includes but is not limited to following steps.
Step S301: control server disposes first kind interface on registrar.
Fig. 4 is a kind of service block schematic illustration of the embodiment of the present invention, is disappeared in Fig. 4 comprising control server 401, service
Take server 402, service providing server 403 and registrar 404, which includes the first registration service
Device 4041 and the second registrar 4042, control server 401 and service consumption server 402, service providing server 403
Communication connection is established between registrar 404, with realize the control server 401 to service consumption server 402,
The control of service providing server 403 and registrar 404.Wherein, service consumption server 402 and the registrar
By the second class interface communication disposed in advance between 404, and between the service providing server 403 and registrar 404
Can be by the second class interface communication for disposing in advance, the description subsequently with respect to first kind interface and the second class interface is needle
To the communication and the service providing server 403 and registration between service consumption server 402 and the registrar 404
Communication between server 404;Under normal conditions, interface used in each communication between devices under zookeeper environment
Between interface type used in each communication between devices under type, Etcd environment, each equipment under Eureka environment
Interface type etc. used in communicating is all different, and first kind interface described herein, the second class interface are numerous interfaces
One of type, and the interface type of the first kind interface it is different from the interface type of the second class interface or this first
The interface type of class interface is identical as the interface type of the second class interface but the version that uses is different, for example, zookeeper
Interface type used in each communication between devices under environment may have 2.1 versions, 2.2 versions etc..It is succinct in order to describe,
Subsequent descriptions to each equipment will no longer indicate number shown in Fig. 4.
The control server deploys this in the registrar, service consumption server and service providing server in advance
Second class interface, the control server are not disposed on the registrar, service consumption server and service providing server
Before the first kind interface, between the registrar and the service consumption server and the registrar and the service
There is provided between server through the second class interface communication, the process of communication include: the service providing server by this second
The information registering for the destination service that class interface provides itself is to the registrar;The service consumption server by this second
Class interface sends service discovery request to the registrar with request target service;The registrar is passing through second class
The node address of the service providing server is sent to by the second class interface when interface is to the service discovery request
The service consumption server;The service consumption server obtains the target according to the node address from the service providing server
Service.
In embodiments of the present invention, the control server is in registrar, the service consumption for deploying the second class interface
First kind interface is disposed on server and service providing server.Wherein, specifically deployed on the first registrar this
Two class interfaces, the control server are disposed the first kind interface on the registrar and are specifically referred in second registration service
The first kind interface is disposed on device;In a kind of optional scheme, first registrar and second registrar are
The same registrar, in another optional scheme, first registrar and second registrar are two
A different registrar, in another optional scheme, which is with second registrar
Two different virtual servers on same server apparatus.It should be noted that service described in the invention provides clothes
Business device and server consumption service device can be respectively two virtual servers on same server apparatus.
The control server sends the program installation kit of the first kind interface to the registrar, or indicates the registration
Server obtains the program installation kit of the first kind interface from some equipment or the control server directly takes in the registration
The program installation kit of the first kind interface is installed on business device;Correspondingly, which transports after getting the program installation kit
The row program installation kit, the successful deployment first kind interface if the program installation kit is installed successfully.
Step S302: the control server is to service consumption server and service providing server transmission interface upgrading message
To indicate to dispose the first kind customer interface.
Step S303: the service consumption server and the service providing server according to the interface upgrade Message Disposition this
A kind of interface.
In a kind of optional scheme, which not only indicates and to dispose the first kind interface and further comprise
The program installation kit of the first kind interface;In another optional scheme, which not only indicates and to dispose
The first kind interface further indicates node where the program installation kit of the first kind interface, so as to the service consumption server and is somebody's turn to do
Service providing server obtains the program installation kit of the first kind interface from the node.For example, can be in the service consumption service
Plug-in unit is installed in advance in device and the service providing server, which, which can be used for receiving the interface upgrade message and obtain, is somebody's turn to do
The program installation kit of first kind interface.
Correspondingly, the service consumption server and the service providing server obtain the program installation kit and run the program
Installation kit, the successful deployment first kind interface if the program installation kit is installed successfully.
Step S304: the information registering for the destination service that the service providing server provides itself to the registration service
Device.
Specifically, which has also been sent to the service for the information of second registrar and provides service
Device, so that the service providing server knows that second registrar may be used to provide service discovery;The service provides clothes
The information registering for the destination service that itself is capable of providing by the first kind interface by business device to second registrar, so as to
Second registrar knows which service the service providing server can provide, which is registered to this
Information on second registrar includes the node address of the service providing server, the agreement of the service of offer, service etc.
Grade agreement (English: Service-Level Agreement, referred to as: SLA) etc..It should be noted that if the first registration clothes
Business device and second registrar belong to the same registrar, then or else the service providing server can mention itself
The information registering of the destination service of confession is to second registrar, because registered before this.
Step S305: the service consumption server sends service discovery to the registration service by the first kind interface and asks
It asks.
Step S306: the registrar is sent the node address of the service providing server by the first kind interface
Give the service consumption server;
Specifically, which passes through first kind interface to the service consumption
After the service discovery request that server is sent, which kind of service judge the service discovery request is, then should if it is destination service
The node address of the service providing server is sent to the service consumption server by the first kind interface by registrar,
The registrar can also be believed by agreement, the SLA of service etc. that the first kind interface provides the service providing server
Breath is sent to the service consumption server.
Step S307: the service consumption server obtains the target from the service providing server according to the node address and takes
Business.
In a kind of optional scheme, which detects the registrar, the service consumption server and is somebody's turn to do
Whether the first kind interface operation of service providing server is normal;If abnormal, then the control server to the service consumption
Server and the service providing server send switch indicating information, which is used to indicate the service consumption service
Device and the service providing server pass through the second class interface communication without passing through the first kind interface communication.
In other words, if the registrar, service consumption server and the service providing server can not be by these
First kind interface is normally communicated, then the registrar, the service consumption server and the service providing server
Or it is communicated by the second class interface, i.e. execution rollback operation.It optionally, can't when just having disposed first kind interface
By the first kind interface communication, but still by the second class interface communication, which needs to the first kind
Interface is checked that, to judge whether the parameters of the first kind interface are normal, the control centre disappears to service if normal
Expense server and service providing server send switching command with indicate the service consumption server and service providing server from
Second class interface is switched to first kind interface, i.e., by the first kind interface communication without passing through the second class interface communication.
Further, if the control server detects that the registrar, the service consumption server and the service mention
For server can by the first kind interface normal communication (found within one section of observation period first interface communication it is normal,
Related service is normal), then the control server sends unloading instruction to the service consumption server and the service providing server
Message, what which was used to indicate the service consumption server and each self-unloading of the service providing server itself should
Second class interface, optionally, the control server are the industry between the service consumption server and the service providing server
Business just sends the unloading instruction message after being finished, in order to avoid cause traffic lost;Correspondingly, the registrar is (specific
For the first registrar), second class of the service consumption server and each self-unloading of the service providing server itself connects
Mouthful.
In the method depicted in fig. 3, when needing to upgrade the interface in registrar, the control server is in the clothes
Business consumption service device and the service providing server newly dispose first kind interface, rather than open up new service consumption server and
New service providing server avoids to dispose the first kind interface and migrates the service consumption server and service offer clothes
The data being engaged on device constantly reduce cost of device and also improve the efficiency for upgrading the first kind interface.
It is above-mentioned to illustrate the method for the embodiment of the present invention, for the ease of better implementing the above-mentioned of the embodiment of the present invention
Correspondingly the device of the embodiment of the present invention is provided below in scheme.
Fig. 5 is referred to, Fig. 5 is a kind of control server 50 provided in an embodiment of the present invention, and the control server 50 is
Including processor 501 (quantity of processor 501 can be one or more, in Fig. 5 by taking a processor 501 as an example), memory
502 and communication interface 503, in some embodiments of the invention, processor 501, memory 502 and communication interface 503 can lead to
It crosses bus or other way connects, in Fig. 5 for being connected by bus.
First kind interface, service consumption server and service are disposed on registrar by the communication interface 503
Second class interface communication of the server respectively between the registrar by disposing in advance is provided;
By the communication interface 503 to service consumption server and service providing server transmission interface upgrading message come
The first kind interface is disposed in instruction on the service consumption server and the service providing server, so that the service
Consumption service device and the service providing server respectively pass through the first kind interface communication, institute between the registrar
The information registering of destination service of the service providing server for providing itself is stated to the registrar, the registration takes
Business device is used for when receiving the service discovery request for being used to request the destination service that the service consumption server is sent,
The node address of the service providing server is sent to the service consumption server, the service consumption server is used for
The destination service is obtained from the service providing server according to the node address.
By executing aforesaid operations, when needing to upgrade the interface in registrar, the control server 50 service
Consumption service device and the service providing server newly dispose first kind interface, rather than open up new service consumption server and new
Service providing server dispose the first kind interface, avoid and migrate the service consumption server and the service provides service
Data on device constantly reduce cost of device and also improve the efficiency for upgrading the first kind interface.
In a kind of optional scheme, the registrar includes the first registrar and the second registrar,
The second class interface is deployed on first registrar in advance;The processor 501 passes through the communication interface 503
First kind interface is disposed on registrar, specifically:
First kind interface is disposed on second registrar by the communication interface 503.
In another optional scheme, processor 501 is also used to:
Detect the first kind of the registrar, the service consumption server and the service providing server
Whether interface operation is normal;
If abnormal, then the processor 501 by the communication interface 503 to the service consumption server and described
Service providing server sends switch indicating information, and the switch indicating information is used to indicate the service consumption server and institute
Service providing server is stated by the second class interface communication without by the first kind interface communication.
In another optional scheme, if normal, then the processor 501 is also used to through the communication interface 503
Unloading instruction message is sent to the service consumption server and the service providing server, the unloading instruction message is used for
Indicate the second class interface of the service consumption server and each self-unloading of the service providing server itself.
It should be noted that the specific implementation of control server 50 shown in fig. 5 can also be to should refer to side shown in Fig. 3
The realization of method embodiment.
In control server 50 shown in Fig. 5, when needing to upgrade the interface in registrar, the control server
The 50 service consumption servers and the service providing server newly dispose first kind interface, rather than open up new service consumption clothes
Business device and new service providing server dispose the first kind interface, avoid and migrate the service consumption server and the service
Data on server are provided, constantly reduces cost of device and also improves the efficiency for upgrading the first kind interface.
Fig. 6 is referred to, Fig. 6 is a kind of service consumption server 60 provided in an embodiment of the present invention, the service consumption clothes
Business device 60 be include processor 601 (quantity of processor 601 can be one or more, take a processor as an example in Fig. 6) and
Memory 602, in some embodiments of the invention, processor 601 and memory 602 can be connected by bus or other way
It connects, in Fig. 6 for being connected by bus.
The interface upgrade message that control server is sent is received, the control server is used for the service consumption service
Device 60 and service providing server send the interface upgrade message to indicate the service consumption server 60 and the service
There is provided server disposition first kind interface, wherein the service consumption server 60 and the service providing server are respectively and institute
State the second class interface communication between registrar by disposing in advance;
According to first kind interface described in the interface upgrade Message Disposition;
Service discovery request is sent with request target service to the registrar by the first kind interface;It is described
The information registering for the destination service that service providing server is used to provide itself by the first kind interface is to the registration
Server, the registrar are used to receive what the service consumption server 60 was sent by the first kind interface
When for requesting the service discovery request of the destination service, the node address of the service providing server is sent to described
Service consumption server 60;
The destination service is obtained from the service providing server according to the node address.
By executing aforesaid operations, when needing to upgrade the interface in registrar, the control server service disappears
Expense server 60 and the service providing server newly dispose first kind interface, rather than open up new 60 He of service consumption server
New service providing server avoids to dispose the first kind interface and migrates the service consumption server 60 and service offer
Data on server constantly reduce cost of device and also improve the efficiency for upgrading the first kind interface.
In a kind of optional scheme, the processor 601 first kind according to the interface upgrade Message Disposition is connect
Mouthful, specifically:
Receive the installation kit for the first kind interface that the control server is sent;
The installation kit is installed to dispose the first kind interface.
In another optional scheme, the registrar includes the first registrar and the second registration service
Device deploys on first registrar on the second class interface and second registrar in advance in advance
Deploy the first kind interface;The processor 601 is sent to the registrar by the first kind interface and is serviced
It was found that request with request target service, specifically:
Send service discovery request to second registrar by the first kind interface with request target service,
The information registering for the destination service that the service providing server is also used to provide itself is to second registrar.
It should be noted that the specific implementation of service consumption server 60 shown in fig. 6 can be square shown in Fig. 3 to should refer to
The realization of method embodiment.
In service consumption server 60 shown in Fig. 6, when needing to upgrade the interface in registrar, control clothes
Business device service consumption server 60 and the service providing server newly dispose first kind interface, rather than open up new service and disappear
Take server 60 and new service providing server to dispose the first kind interface, avoids and migrate the service consumption server 60
With the data on the service providing server, constantly reduces cost of device and also improve the efficiency for upgrading the first kind interface.
Fig. 7 is referred to, Fig. 7 is a kind of service providing server 70 provided in an embodiment of the present invention, and the service provides clothes
Business device 70 be include processor 701 (quantity of processor 701 can be one or more, take a processor as an example in Fig. 7) and
Memory 702, in some embodiments of the invention, processor 701 and memory 702 can be connected by bus or other way
It connects, in Fig. 7 for being connected by bus.
The interface upgrade message that control server is sent is received, the control server is used for the service offer service
Device 70 and service consumption service device send the interface upgrade message to indicate that the service consumption server and the service mention
First kind interface is disposed for server 70, wherein the service consumption server and the service providing server 70 are respectively and institute
State the second class interface communication between registrar by disposing in advance;
According to first kind interface described in the interface upgrade Message Disposition;
The information registering for the destination service for being provided itself by the first kind interface is described to the registrar
Registrar is for passing through the first kind interface to the service consumption server by the first kind interface
When what is sent is used to request the service discovery request of the destination service, the service is provided to clothes by the first kind interface
The node address of business device 70 is sent to the service consumption server, and the service consumption server is for according to the node
Request the destination service in location;
The destination service is provided for the service consumption server.
By executing aforesaid operations, when needing to upgrade the interface in registrar, the control server service disappears
Take server and the service providing server 70 newly deployment first kind interface, rather than opens up new service consumption server and new
Service providing server 70 dispose the first kind interface, avoid and migrate the service consumption server and the service provides clothes
The data being engaged on device 70 constantly reduce cost of device and also improve the efficiency for upgrading the first kind interface.
In a kind of optional scheme, the processor 701 first kind according to the interface upgrade Message Disposition is connect
Mouthful, specifically:
Receive the installation kit for the first kind interface that the control server is sent;
The installation kit is installed to dispose the first kind interface.
In another optional scheme, the registrar includes the first registrar and the second registration service
Device deploys on first registrar on the second class interface and second registrar in advance in advance
Deploy the first kind interface;The letter for the destination service that the processor 701 is provided itself by the first kind interface
Breath is registered to the registrar, specifically:
The information registering for the destination service itself being provided by the first kind interface to second registrar,
The service consumption server is used to send service discovery request to second registrar by the first kind interface
To request the destination service.
It should be noted that the specific implementation of service providing server 70 shown in Fig. 7 can also be to should refer to shown in Fig. 3
The realization of embodiment of the method.
In service providing server 70 shown in Fig. 7, when needing to upgrade the interface in registrar, control clothes
Being engaged in, the device service consumption server and the service providing server 70 are new to dispose first kind interface, rather than opens up new service and disappear
Expense server and new service providing server 70 dispose the first kind interface, avoid migrate the service consumption server and
Data on the service providing server 70 constantly reduce cost of device and also improve the efficiency for upgrading the first kind interface.
Fig. 8 is referred to, Fig. 8 is the structural schematic diagram of another control server 80 provided in an embodiment of the present invention, the control
Control server 80 may include deployment unit 801 and transmission unit 802, wherein each unit is described in detail as follows.
Deployment unit 801 is used to dispose first kind interface on registrar, and service consumption server and service provide
Server respectively passes through the second class interface communication disposed in advance between the registrar;
Transmission unit 802 is indicated to service consumption server and service providing server transmission interface upgrading message in institute
It states and disposes the first kind interface on service consumption server and the service providing server, so that the service consumption service
Respectively between the registrar through the first kind interface communication, the service is mentioned for device and the service providing server
To the registrar, the registrar is used for the information registering of destination service for being used to provide itself for server
When receiving the service discovery request for being used to request the destination service that the service consumption server is sent, by the clothes
The node address that business provides server is sent to the service consumption server, and the service consumption server is used for according to
Node address obtains the destination service from the service providing server.
By running said units, when needing to upgrade the interface in registrar, the control server 80 service
Consumption service device and the service providing server newly dispose first kind interface, rather than open up new service consumption server and new
Service providing server dispose the first kind interface, avoid and migrate the service consumption server and the service provides service
Data on device constantly reduce cost of device and also improve the efficiency for upgrading the first kind interface.
In a kind of optional scheme, the registrar includes the first registrar and the second registrar,
The second class interface is deployed on first registrar in advance;The control server 80 is on registrar top
Affixing one's name to first kind interface includes:
Control server 80 disposes first kind interface on second registrar.
In another optional scheme, the method also includes:
The control server 80 detects the registrar, the service consumption server and the service and provides clothes
Whether the first kind interface operation of business device is normal;
Then the control server is sent to the service consumption server and the service providing server if abnormal,
Switch indicating information, the switch indicating information is used to indicate the service consumption server and the service providing server is logical
The second class interface communication is crossed without by the first kind interface communication.
In another optional scheme, the method also includes:
If normal, then the control server is unloaded to the service consumption server and service providing server transmission
Instruction message is carried, the unloading instruction message is used to indicate the service consumption server and the service providing server respectively
Unload the second class interface of itself.
It should be noted that the specific implementation of each unit shown in Fig. 8 can also be real to should refer to method shown in Fig. 3
Apply the realization of example.
In the control server 80 described in Fig. 8, when needing to upgrade the interface in registrar, the control service
The service consumption server of device 80 and the service providing server newly dispose first kind interface, rather than open up new service consumption
Server and new service providing server dispose the first kind interface, avoid and migrate the service consumption server and the clothes
Business provides the data on server, constantly reduces cost of device and also improves the efficiency for upgrading the first kind interface.
Fig. 9 is referred to, Fig. 9 is the structural schematic diagram of another service consumption server 90 provided in an embodiment of the present invention,
The service consumption server 90 may include receiving unit 901, upgrade unit 902, transmission unit 903 and request unit 904,
In, each unit is described in detail as follows.
Receiving unit 901 be used for receive control server transmission interface upgrade message, the control server be used for
The service consumption server 90 and service providing server send the interface upgrade message to indicate the service consumption clothes
Business device 90 and the service providing server dispose first kind interface, wherein the service consumption server 90 and the service
Second class interface communication of the server respectively between the registrar by disposing in advance is provided;
Upgrade unit 902 is used for the first kind interface according to the interface upgrade Message Disposition;
Transmission unit 903 is used to send service discovery request to the registrar by the first kind interface to ask
Seek destination service;The information for the destination service that the service providing server is used to provide itself by the first kind interface
It is registered to the registrar, the registrar is used to receive the service consumption by the first kind interface
When the service discovery request for being used to request the destination service that server 90 is sent, by the node of the service providing server
Address is sent to the service consumption server 90;
Request unit 904 from the service providing server for obtaining the target clothes according to the node address
Business.
By running said units, when needing to upgrade the interface in registrar, the control server service disappears
Expense server 90 and the service providing server newly dispose first kind interface, rather than open up new 90 He of service consumption server
New service providing server avoids to dispose the first kind interface and migrates the service consumption server 90 and service offer
Data on server constantly reduce cost of device and also improve the efficiency for upgrading the first kind interface.
In a kind of optional scheme, the upgrade unit 902 is specifically used for:
Receive the installation kit for the first kind interface that the control server is sent;
The installation kit is installed to dispose the first kind interface.
In another optional scheme, the registrar includes the first registrar and the second registration service
Device deploys on first registrar on the second class interface and second registrar in advance in advance
Deploy the first kind interface;Transmission unit 903 is specifically used for:
Send service discovery request to second registrar by the first kind interface with request target service,
The information registering for the destination service that the service providing server is also used to provide itself is to second registrar.
It should be noted that the specific implementation of each unit shown in Fig. 9 can also be real to should refer to method shown in Fig. 3
Apply the realization of example.
In the service consumption server 90 described in Fig. 9, when needing to upgrade the interface in registrar, the control
The server service consumption server 90 and the service providing server newly dispose first kind interface, rather than open up new service
Consumption service device 90 and new service providing server dispose the first kind interface, avoid and migrate the service consumption server
90 and the service providing server on data, constantly reduce cost of device also improve upgrade the first kind interface effect
Rate.
0, Figure 10 is the structural representation of another service providing server 100 provided in an embodiment of the present invention referring to Figure 1
Figure, the service providing server 100 may include that receiving unit 1001, deployment unit 1002, registering unit 1003 and service are single
Member 1004, wherein each unit is described in detail as follows.
Receiving unit 1001 be used for receive control server transmission interface upgrade message, the control server be used for
The service providing server 100 and service consumption service device send the interface upgrade message to indicate the service consumption clothes
Business device and the service providing server 100 dispose first kind interface, wherein the service consumption server and the service mention
Respectively pass through the second class interface communication disposed in advance between the registrar for server 100;
Deployment unit 1002 is used for the first kind interface according to the interface upgrade Message Disposition;
The information registering for the destination service that registering unit 1003 is used to provide itself by the first kind interface is to institute
Registrar is stated, the registrar is used for logical to the service consumption server by the first kind interface
When crossing the service discovery request for being used to request the destination service that the first kind interface is sent, pass through the first kind interface
The node address of the service providing server 100 is sent to the service consumption server, the service consumption server
For the destination service according to the node address request;
Service unit 1004 is used to provide the destination service for the service consumption server.
By running said units, when needing to upgrade the interface in registrar, the control server service disappears
Take server and the service providing server 100 newly deployment first kind interface, rather than open up new service consumption server and
New service providing server 100 disposes the first kind interface, avoids and migrates the service consumption server and the service mentions
For the data on server 100, constantly reduces cost of device and also improve the efficiency for upgrading the first kind interface.
In a kind of optional scheme, the deployment unit 1002 is specifically used for:
Receive the installation kit for the first kind interface that the control server is sent;
The installation kit is installed to dispose the first kind interface.
In another optional scheme, the registrar includes the first registrar and the second registration service
Device deploys on first registrar on the second class interface and second registrar in advance in advance
Deploy the first kind interface;Registering unit 1003 is specifically used for:
The information registering for the destination service itself being provided by the first kind interface to second registrar,
The service consumption server is used to send service discovery request to second registrar by the first kind interface
To request the destination service.
It should be noted that the specific implementation of each unit shown in Fig. 10 can also be to should refer to method shown in Fig. 3
The realization of embodiment.
In the service providing server 100 described in Figure 10, when needing to upgrade the interface in registrar, the control
The control server service consumption server and the service providing server 100 newly dispose first kind interface, rather than open up new
Service consumption server and new service providing server 100 dispose the first kind interface, avoid and migrate the service consumption
Data on server and the service providing server 100, constantly reduce cost of device and also improve and upgrade the first kind and connect
The efficiency of mouth.
1, Figure 11 is a kind of structural representation of registration center's upgrade-system 110 provided in an embodiment of the present invention referring to Figure 1
Figure, registration center's upgrade-system 110 may include that control server 1101, service consumption server 1102 and service provide clothes
Business device 1103, in which:
The control server 1101 is control server 50 shown in fig. 5 or control server shown in Fig. 8 80;Institute
Stating service consumption server 1102 is service consumption server 60 shown in fig. 6 or service consumption server 90 shown in Fig. 9;
The service providing server 1103 is service providing server 70 shown in Fig. 7 or service providing server shown in Fig. 10
100。
In conclusion by implementing the embodiment of the present invention, when needing to upgrade the interface in registrar, control clothes
Business device service consumption server and the service providing server newly dispose first kind interface, rather than open up new service consumption
Server and new service providing server dispose the first kind interface, avoid and migrate the service consumption server and the clothes
Business provides the data on server, constantly reduces cost of device and also improves the efficiency for upgrading the first kind interface.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.And storage medium above-mentioned include: ROM,
The various media that can store program code such as RAM, magnetic or disk.
Above embodiments only disclose preferred embodiment in the present invention, and the scope of the invention cannot be limited thereby,
Those skilled in the art can understand all or part of the processes for realizing the above embodiment, and according to the claims in the present invention institute
The equivalent variations of work, still belongs to the scope covered by the invention.
Claims (15)
1. a kind of registration center's upgrade method characterized by comprising
Control server disposes first kind interface on registrar, service consumption server and service providing server respectively with
The second class interface communication between the registrar by disposing in advance;
The control server is indicated to service consumption server and service providing server transmission interface upgrading message in institute
It states and disposes the first kind interface on service consumption server and the service providing server, so that the service consumption service
Respectively between the registrar through the first kind interface communication, the service is mentioned for device and the service providing server
To the registrar, the registrar is used for the information registering of destination service for being used to provide itself for server
When receiving the service discovery request for being used to request the destination service that the service consumption server is sent, by the clothes
The node address that business provides server is sent to the service consumption server, and the service consumption server is used for according to
Node address obtains the destination service from the service providing server;
The method also includes:
The control server detects the registrar, the service consumption server and the service providing server
Whether the first kind interface operation is normal;
Then the control server switches to the service consumption server and service providing server transmission if abnormal,
Instruction message, the switch indicating information is used to indicate the service consumption server and the service providing server passes through institute
The second class interface communication is stated without by the first kind interface communication.
2. the method according to claim 1, wherein the registrar includes the first registrar and the
Two registrar deploy the second class interface on first registrar in advance;The control server is being infused
Deployment first kind interface includes: on volume server
Control server disposes first kind interface on second registrar.
3. method according to claim 1 or 2, which is characterized in that the method also includes:
If normal, then the control server refers to the service consumption server and service providing server transmission unloading
Show that message, the unloading instruction message are used to indicate the service consumption server and each self-unloading of the service providing server
The the second class interface of itself.
4. a kind of registration center's upgrade method characterized by comprising
Service consumption server receives the interface upgrade message that control server is sent, and the control server is used for the clothes
Business consumption service device and service providing server send the interface upgrade message to indicate the service consumption server and institute
State service providing server deployment first kind interface, wherein the service consumption server and the service providing server are each
The second class interface communication between registrar by disposing in advance;
Service consumption server first kind interface according to the interface upgrade Message Disposition;
The service consumption server sends service discovery request to the registrar by the first kind interface to ask
Seek destination service;The information for the destination service that the service providing server is used to provide itself by the first kind interface
It is registered to the registrar, the registrar is used to receive the service consumption by the first kind interface
When the service discovery request for being used to request the destination service that server is sent, by the node of the service providing server
Location is sent to the service consumption server;
The service consumption server obtains the destination service according to the node address from the service providing server;
Service consumption server first kind interface according to the interface upgrade Message Disposition includes:
The service consumption server receives the installation kit for the first kind interface that the control server is sent;
The service consumption server installs the installation kit to dispose the first kind interface.
5. according to the method described in claim 4, it is characterized in that, the registrar includes the first registrar and the
Two registrar deploy the second class interface and the second registration clothes on first registrar in advance
The first kind interface is deployed in advance on business device;The service consumption server is by the first kind interface to the registration
Server sends service discovery request with request target service
The service consumption server sends service discovery request to second registrar by the first kind interface
With request target service, the information registering of the destination service that the service providing server is also used to provide itself to described
Two registrar.
6. a kind of registration center's upgrade method characterized by comprising
Service providing server receives the interface upgrade message that control server is sent, and the control server is used for the clothes
Business provides server and service consumption service device sends the interface upgrade message to indicate the service consumption server and institute
State service providing server deployment first kind interface, wherein the service consumption server and the service providing server are each
The second class interface communication between registrar by disposing in advance;
Service providing server first kind interface according to the interface upgrade Message Disposition;
The information registering for the destination service that the service providing server is provided itself by the first kind interface is described in
Registrar, the registrar by the first kind interface to the service consumption server for being passed through
It, will by the first kind interface when service discovery request for being used to request the destination service that the first kind interface is sent
The node address of the service providing server is sent to the service consumption server, and the service consumption server is used for root
According to destination service described in the node address request;
The service providing server provides the destination service for the service consumption server;
Service providing server first kind interface according to the interface upgrade Message Disposition includes:
The service providing server receives the installation kit for the first kind interface that the control server is sent;
The service providing server installs the installation kit to dispose the first kind interface.
7. according to the method described in claim 6, it is characterized in that, the registrar includes the first registrar and the
Two registrar deploy the second class interface and the second registration clothes on first registrar in advance
The first kind interface is deployed in advance on business device;The service providing server is provided itself by the first kind interface
The information registering of destination service include: to the registrar
The information registering for the destination service that the service providing server is provided itself by the first kind interface is described in
Second registrar, the service consumption server by the first kind interface to second registrar for being sent out
Service discovery request is sent to request the destination service.
8. a kind of control server, which is characterized in that the control server includes processor, memory and communication interface, institute
It states processor and calls program in the memory, for performing the following operations:
First kind interface, service consumption server and service offer service are disposed on registrar by the communication interface
Device respectively passes through the second class interface communication disposed in advance between the registrar;
It is indicated by the communication interface to service consumption server and service providing server transmission interface upgrading message
The first kind interface is disposed on the service consumption server and the service providing server, so that the service consumption takes
Business device and the service providing server respectively pass through the first kind interface communication, the service between the registrar
The information registering of destination service that server is used to provide itself is provided to the registrar, the registrar use
It, will be described in when receiving that the service consumption server sends for requesting the service discovery request of the destination service
The node address of service providing server is sent to the service consumption server, and the service consumption server is used for according to institute
It states node address and obtains the destination service from the service providing server;
Processor is also used to:
Detect the first kind interface of the registrar, the service consumption server and the service providing server
It whether normal runs;
Then the processor by the communication interface provides clothes to the service consumption server and the service if abnormal,
Business device sends switch indicating information, and the switch indicating information is used to indicate the service consumption server and the service provides
Server is by the second class interface communication without passing through the first kind interface communication.
9. control server according to claim 8, which is characterized in that the registrar includes the first registration service
Device and the second registrar deploy the second class interface on first registrar in advance;The processor is logical
It crosses the communication interface and disposes first kind interface on registrar, specifically:
First kind interface is disposed on second registrar by the communication interface.
10. control server according to claim 8 or claim 9, which is characterized in that if normal, then the processor is also used to
Unloading instruction message is sent to the service consumption server and the service providing server by the communication interface, it is described
Unloading instruction message is used to indicate the described of the service consumption server and each self-unloading of the service providing server itself
Second class interface.
11. a kind of service consumption server, which is characterized in that the service consumption server includes processor and memory, institute
It states processor and calls program in the memory, for performing the following operations:
Receive the interface upgrade message that control server is sent, the control server be used for the service consumption server and
Service providing server sends the interface upgrade message to indicate the service consumption server and the service offer service
Device disposes first kind interface, wherein the service consumption server and the service providing server respectively with registrar it
Between pass through the second class interface communication for disposing in advance;
According to first kind interface described in the interface upgrade Message Disposition;
Service discovery request is sent with request target service to the registrar by the first kind interface;The service
Provide the information registering of the destination service that server is used to itself is provided by the first kind interface to the registration service
Device, the registrar are used to be used to ask receive that the service consumption server sends by the first kind interface
When seeking the service discovery request of the destination service, the node address of the service providing server is sent to the service and is disappeared
Take server;
The destination service is obtained from the service providing server according to the node address;
Processor first kind interface according to the interface upgrade Message Disposition, specifically:
Receive the installation kit for the first kind interface that the control server is sent;
The installation kit is installed to dispose the first kind interface.
12. service consumption server according to claim 11, which is characterized in that the registrar includes the first note
Volume server and the second registrar deploys the second class interface, Yi Jisuo on first registrar in advance
It states and deploys the first kind interface on the second registrar in advance;The processor is by the first kind interface to described
Registrar sends service discovery request with request target service, specifically:
It is described by the first kind interface to second registrar transmission service discovery request with request target service
The information registering for the destination service that service providing server is also used to provide itself is to second registrar.
13. a kind of service providing server, which is characterized in that the service providing server includes processor and memory, institute
It states processor and calls program in the memory, for performing the following operations:
Receive the interface upgrade message that control server is sent, the control server be used for the service providing server and
Service consumption server sends the interface upgrade message to indicate the service consumption server and the service offer service
Device disposes first kind interface, wherein the service consumption server and the service providing server respectively with registrar it
Between pass through the second class interface communication for disposing in advance;
According to first kind interface described in the interface upgrade Message Disposition;
The information registering of the destination service itself provided by the first kind interface is to the registrar, the registration
Server by the first kind interface to the service consumption server by the first kind interface for being sent
For requesting the service discovery request of the destination service when, by the first kind interface by the service providing server
Node address be sent to the service consumption server, the service consumption server is used for according to the node address request
The destination service;
The destination service is provided for the service consumption server;
Processor first kind interface according to the interface upgrade Message Disposition, specifically:
Receive the installation kit for the first kind interface that the control server is sent;
The installation kit is installed to dispose the first kind interface.
14. service providing server according to claim 13, which is characterized in that the registrar includes the first note
Volume server and the second registrar deploys the second class interface, Yi Jisuo on first registrar in advance
It states and deploys the first kind interface on the second registrar in advance;The processor by the first kind interface by itself
The information registering of the destination service of offer to the registrar, specifically:
The information registering for the destination service for being provided itself by the first kind interface is described to second registrar
Service consumption server is used to send service discovery request to second registrar by the first kind interface to ask
Seek the destination service.
15. a kind of registration center's upgrade-system, which is characterized in that the system comprises control servers, service consumption server
And service providing server, in which:
The control server is the described in any item control servers of claim 8~10;
The service consumption server is service consumption server described in claim 11 or 12;
The service providing server is service providing server described in claim 13 or 14.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610379348.5A CN105827467B (en) | 2016-05-31 | 2016-05-31 | A kind of registration center's upgrade method, relevant device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610379348.5A CN105827467B (en) | 2016-05-31 | 2016-05-31 | A kind of registration center's upgrade method, relevant device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105827467A CN105827467A (en) | 2016-08-03 |
CN105827467B true CN105827467B (en) | 2019-07-12 |
Family
ID=56532622
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610379348.5A Active CN105827467B (en) | 2016-05-31 | 2016-05-31 | A kind of registration center's upgrade method, relevant device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105827467B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106790059B (en) * | 2016-12-20 | 2020-07-17 | Tcl科技集团股份有限公司 | Service calling method and system for cloud system of smart television L aunch |
CN112910943B (en) * | 2019-12-04 | 2024-03-05 | 华为云计算技术有限公司 | Service providing method, device and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101223811A (en) * | 2005-05-27 | 2008-07-16 | 诺基亚公司 | Mobile node, method and computer program product for handing off from one type of network to another type of network |
CN102624921A (en) * | 2012-04-06 | 2012-08-01 | 厦门大学 | Web service-based intelligent community value added service platform |
CN105141452A (en) * | 2015-08-07 | 2015-12-09 | 北京思特奇信息技术股份有限公司 | High-performance service system and method based on CXF |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6578198B2 (en) * | 1998-08-13 | 2003-06-10 | Koninklijke Philips Electronics N.V. | Personal computer upgrade |
-
2016
- 2016-05-31 CN CN201610379348.5A patent/CN105827467B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101223811A (en) * | 2005-05-27 | 2008-07-16 | 诺基亚公司 | Mobile node, method and computer program product for handing off from one type of network to another type of network |
CN102624921A (en) * | 2012-04-06 | 2012-08-01 | 厦门大学 | Web service-based intelligent community value added service platform |
CN105141452A (en) * | 2015-08-07 | 2015-12-09 | 北京思特奇信息技术股份有限公司 | High-performance service system and method based on CXF |
Also Published As
Publication number | Publication date |
---|---|
CN105827467A (en) | 2016-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9207929B2 (en) | Integrated system and firmware update method | |
EP3125117B1 (en) | Update management system and update management method | |
KR20060051932A (en) | Updating software while it is running | |
EP2696532A2 (en) | Method, server and system for starting application | |
CN108780405B (en) | Management method and device for application in network function virtualization environment | |
CN106301829A (en) | A kind of method and apparatus of Network dilatation | |
CN105812171A (en) | Virtualized network function VNF control method and device | |
US20150120818A1 (en) | Multi-tenant saas platform and method for automated deployment of connector application, and tenant and service provider using virtual machine | |
CN106797670A (en) | Initialized using the physical switches for characterizing state transfer service | |
CN102622229A (en) | Fusion method, fusion system and fusion device of development frameworks of different types | |
CN106502717A (en) | application program operation method and device | |
CN105827467B (en) | A kind of registration center's upgrade method, relevant device and system | |
CN115328752A (en) | Cluster simulation method and system for Kubernetes control plane test | |
CN110489305B (en) | Server management method and device | |
CN111966374A (en) | Container-based energy controller terminal software deployment and management method | |
CN113342456A (en) | Connection method, device, equipment and storage medium | |
CN113193981B (en) | Configuration issuing method and device and network system | |
WO2017193285A1 (en) | Software management method and apparatus | |
CN113886731A (en) | Method for routing page jump based on iOS platform and application | |
JP6564067B2 (en) | Service management method and apparatus | |
CN110198225A (en) | A kind of management method and management server of more clusters | |
CN109450713B (en) | Virtualization platform based on gateway and cloud platform management method, device and medium | |
CN109936462A (en) | Disaster recovery method and device | |
KR20150088462A (en) | Method for linking network device in cloud environment and apparatus therefor | |
CN110389791B (en) | Component scheduling method, device, equipment and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |