CN110113187A - A kind of configuration update method, device, configuration server and configuration system - Google Patents
A kind of configuration update method, device, configuration server and configuration system Download PDFInfo
- Publication number
- CN110113187A CN110113187A CN201910317551.3A CN201910317551A CN110113187A CN 110113187 A CN110113187 A CN 110113187A CN 201910317551 A CN201910317551 A CN 201910317551A CN 110113187 A CN110113187 A CN 110113187A
- Authority
- CN
- China
- Prior art keywords
- licensing
- latest edition
- information
- configuration
- configuration information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
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
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention provides a kind of configuration update methods, apparatus and system, comprising: receives the configuration that the business to be configured server in multiple service servers is sent and updates request;The preset quantity pre-established corresponding with latest edition configuration information is extracted with the first licensing in the licensing of timestamp information;If current time be later than or equal to the first licensing timestamp information, to business to be configured server send latest edition configuration information;One new the second licensing corresponding with latest edition configuration information of creation, the timestamp information of the second licensing are to add prefixed time interval at the time of sending latest edition configuration information to business to be configured server;It is updated if current time earlier than the timestamp information of the first licensing, creates a new third licensing corresponding with latest edition configuration information and stops configuration, the timestamp information of third licensing is the timestamp information of the first licensing.The occurrence of service function is unavailable can be reduced.
Description
Technical field
The present invention relates to net application technology fields, more particularly to a kind of configuration update method, device, configuration server
And configuration system.
Background technique
In the service server connecting with the client communication where application program, it is usually mounted with service program,
For providing various service functions for client, be it is convenient for safeguarding, under normal circumstances, a service program provides a kind of service
Function, as soon as it opens a secondary program for service program and generates a service program example.Such as: with certain
In the service server of client communication connection where short video application, multiple service programs are installed, are used respectively
Yu Weiqi provides the service functions such as video recommendations, broadcasting and comment, and corresponding with each service program, can have multiple
For providing the service program example of the service function.
It when being influenced by factors such as application demands, needs to be updated certain configuration informations of service program, join
See that Fig. 1, Fig. 1 are existing configuration system structure diagram, configuration system includes: that configuration server 110 and operation are provided with together
Multiple service servers 120 of the service program example of one service function, configuration update usually require its dynamic and come into force, need
Again the object inside program is destroyed and is reinitialized.Generally by service program example to configuration server
It periodically sends configuration and updates what request was realized.It is dynamically coming into force in this period, the service program in service server can be temporary
When lose externally provide service ability.In some circumstances, this process takes a long time, it may be desirable to one to two points
Clock.
Need to expend certain time length since latest configuration comes into force in service program example, during this period of time, service
Property program example be temporarily lost with externally provide service function ability.If in a certain period of time, providing same service function
All service servers simultaneously carry out configuration update, then will appear during this period of time, the not available situation of the service function.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of configuration update method, device, configuration server and configuration system,
To reduce the occurrence of service function is unavailable.Specific technical solution is as follows:
In a first aspect, the embodiment of the invention provides a kind of configuration update methods, which is characterized in that be applied to configuration system
In configuration server, the configuration system, further includes: multiple service servers of same service function, the method are provided
Include:
It receives the configuration that the business to be configured server in the multiple service server is sent and updates request;
Preset quantity corresponding with latest edition configuration information is extracted with first in the licensing of timestamp information
Licensing;First licensing is the smallest licensing of timestamp information in the preset quantity licensing;It is described default
The initial time stamp information of quantity licensing is the generation time of the latest edition configuration information;The preset quantity is small
In the total quantity of the business to be configured server;The preset quantity corresponding with latest edition configuration information has the time
The licensing for stabbing information is generated and is saved when obtaining the latest version information;
Judge current time whether be later than or equal to first licensing timestamp information;
If current time be later than or equal to first licensing timestamp information, Xiang Suoshu business to be configured service
Device sends the latest edition configuration information, so that the business to be configured server carries out configuration update;
New the second licensing corresponding with the latest edition configuration information of creation one, second licensing when
Between stamp information be at the time of sending the latest edition configuration information to the business to be configured server plus between preset time
Every;
If current time is less than the timestamp information of first licensing, creates one and new match with the latest edition
Confidence ceases corresponding third licensing and stops configuration and updates, and the timestamp information of the third licensing is first license
The timestamp information of card.
Further, operation has one or more service program examples to be configured in the business to be configured server;
The preset quantity is less than the total quantity of the service program example to be configured run in the business to be configured server;
The configuration that the business to be configured server received in the multiple service server is sent updates the step of request
Suddenly, comprising:
It receives the configuration that service program example to be configured is sent and updates request;
If the current time be later than or equal to first licensing timestamp information, Xiang Suoshu business to be configured
Server sends the latest edition configuration information, so that the business to be configured server carries out the step of configuration updates, packet
It includes:
If current time be later than or equal to first licensing timestamp information, to the service journey to be configured
Sequence example sends the latest edition configuration information, so that the service program example to be configured carries out configuration update;
One new the second licensing corresponding with the latest edition configuration information of the creation, second licensing
Timestamp information be at the time of sending the latest edition configuration information to the business to be configured server plus it is default when
Between the step of being spaced, comprising:
New the second licensing corresponding with the latest edition configuration information of creation one, second licensing when
Between stamp information be at the time of sending the latest edition configuration information to the service program example to be configured plus it is default when
Between be spaced.
Further, the configuration updates the current version in request comprising the service program example to be configured and configures
Information;
It is described to extract preset quantity corresponding with latest edition configuration information in the licensing of timestamp information
The step of first licensing, comprising:
The latest edition for being higher than the service program example current version configuration to be configured is judged whether there is with confidence
Breath;
When there is the latest edition configuration information for being higher than the service program example current version configuration to be configured, mention
Take preset quantity corresponding with the latest edition configuration information with the first licensing in the licensing of timestamp information.
Further, licensing corresponding with the latest edition configuration information has same expired time, when arrival institute
When stating expired time, each licensing corresponding with the latest edition configuration information is deleted;
It is described to extract licensing of the preset quantity with timestamp information corresponding with the latest edition configuration information
In the first licensing the step of, comprising:
Judge whether there is licensing corresponding with the latest edition configuration information;
Licensing corresponding with the latest edition configuration information if it does not exist, to the service program example to be configured
The latest edition configuration information is sent, so that the service program example to be configured carries out configuration update;
Licensing corresponding with the latest edition configuration information if it exists extracts and the latest edition configuration information pair
The preset quantity answered is with the first licensing in the licensing of timestamp information.
Further, the configuration system further include: cache server;It is described corresponding with latest edition configuration information pre-
If quantity is stored in the cache server with the licensing of timestamp information;
It is described to extract licensing of the preset quantity with timestamp information corresponding with the latest edition configuration information
In the first licensing the step of, comprising:
License obtainment request is sent to the cache server, so that the cache server extracts and the latest edition
The corresponding preset quantity of this configuration information takes with the first licensing in the licensing of timestamp information, and to the configuration
Business device returns to first licensing;
One new the second licensing corresponding with the latest edition configuration information of the creation, second licensing
Timestamp information be at the time of sending the latest edition configuration information to the service program example to be configured plus pre-
If the step of time interval, comprising:
Send the first newly-built license request to the cache server so that the cache server create one it is new
The second licensing corresponding with the latest edition configuration information, the timestamp information of second licensing are to described wait match
It sets at the time of service program example sends the latest edition configuration information plus prefixed time interval;
One new third licensing corresponding with the latest edition configuration information of the creation simultaneously stops configuration update,
The step of timestamp information of the third licensing is the timestamp information of first licensing, comprising:
The second newly-built license request is sent to the cache server and stops configuration and is updated, so that the buffer service
Device creates a new third licensing corresponding with the latest edition configuration information, the timestamp letter of the third licensing
Breath is the timestamp information of first licensing.
Further, what the licensing was stored in that the cache server pre-establishes has Priority Queues expired time
Priority Queues in, when reaching the Priority Queues expired time, the Priority Queues is deleted by the cache server;
It is described to the cache server send license obtainment request so that the cache server extract with it is described most
The corresponding preset quantity of new version configuration information is matched with the first licensing in the licensing of timestamp information to described
Set the step of server returns to first licensing, comprising:
The license obtainment request for being directed to the latest edition configuration information is sent to the cache server, so that described
Cache server judges current time with the presence or absence of Priority Queues corresponding with the latest edition configuration information;If it exists, it mentions
The first licensing in the Priority Queues pre-established corresponding with the latest edition configuration information is taken, and is taken to the configuration
Business device returns to first licensing;If it does not exist, Xiang Suoshu configuration server sends to be not present and configure with the latest edition
The notice of the corresponding Priority Queues of information;
It is described to send the first newly-built license request to the cache server, so that the cache server creates one
New the second licensing corresponding with the latest edition configuration information, the timestamp information of second licensing are Xiang Suoshu
The step of service program example to be configured adds prefixed time interval at the time of sending the latest edition configuration information, packet
It includes:
The first newly-built license request is sent to the cache server, so that the cache server is in the preferential team
New second licensing corresponding with the latest edition configuration information, the timestamp of second licensing are created in column
Information is at the time of sending the latest edition configuration information to the service program example to be configured plus between preset time
Every;
It is described to send the second newly-built license request to the cache server and stop configuration update, so that the caching
Server creates a new third licensing corresponding with the latest edition configuration information, the time of the third licensing
The step of stabbing the timestamp information that information is first licensing, comprising:
The second newly-built license request is sent to the cache server and stops configuration and is updated, so that the buffer service
Device creates a new third licensing corresponding with the latest edition configuration information, the third in the Priority Queues
The timestamp information of licensing is the timestamp information of first licensing;
The method, further includes:
Receiving that the cache server sends, there is no Priority Queues corresponding with latest edition configuration information
After notice, the latest edition configuration information is sent to the service program example to be configured, so that the service to be configured
Property program example carries out configuration update.
Second aspect, the embodiment of the invention provides a kind of configuration update methods, which is characterized in that is applied to configuration system
In cache server, the configuration system, further includes: configuration server and operation are provided with the service of same service function
Multiple service servers of program example, which comprises
The license obtainment request that the configuration server is sent is received, the license obtainment request is in the configuration
What the configuration update that server receives service program example transmission to be configured was sent when requesting, the service journey to be configured
Sequence example is the service that the pending configuration run in the business to be configured server in the multiple service server updates
Property program example;
Preset quantity corresponding with latest edition configuration information is extracted with first in the licensing of timestamp information
Licensing;First licensing is the smallest licensing of timestamp information in the preset quantity licensing;It is described default
The initial time stamp information of quantity licensing is the generation time of the latest edition configuration information;The preset quantity is small
In the total quantity of the service program example to be configured;The preset quantity corresponding with latest edition configuration information has
The licensing of timestamp information is generated and is saved when obtaining the latest version information;
First licensing is sent to the configuration server, so that whether the configuration server judges current time
If being later than the timestamp information current time perhaps equal to first licensing to be later than or equal to first licensing
Timestamp information, Xiang Suoshu service program example sends the latest edition configuration information, so that the service to be configured
Program example carries out configuration update, and sends the first newly-built license request to the cache server, if current time earlier than
The timestamp information of first licensing stops configuration and updates and ask to the cache server the second newly-built licensing of transmission
It asks;
When receiving the first newly-built license request that the configuration server is sent, create one it is new with it is described most
Corresponding second licensing of new version configuration information, the timestamp information of second licensing are to the service to be configured
Program example adds prefixed time interval at the time of sending the latest edition configuration information;Alternatively,
When receiving the second newly-built license request that the configuration server is sent, create one it is new with it is described most
The corresponding third licensing of new version configuration information, the timestamp information of the third licensing be first licensing when
Between stab information.
Further, described to extract preset quantity corresponding with the latest edition configuration information with timestamp information
Licensing in the first licensing the step of, comprising:
The first licensing in the Priority Queues pre-established corresponding with the latest edition configuration information is extracted, it is described
First licensing is the licensing positioned at the Priority Queues stem, includes that the preset quantity has in the Priority Queues
The licensing of timestamp information;
One new the second licensing corresponding with the latest edition configuration information of the creation, second licensing
Timestamp information be at the time of sending the latest edition configuration information to the service program example to be configured plus pre-
If the step of time interval, comprising:
New second licensing corresponding with the latest edition configuration information, institute are created in the Priority Queues
The timestamp information for stating the second licensing is to send the latest edition configuration information to the service program example to be configured
At the time of add prefixed time interval;
One new third licensing corresponding with the latest edition configuration information of the creation, the third licensing
Timestamp information be first licensing timestamp information the step of, comprising:
A new third licensing corresponding with the latest edition configuration information, institute are created in the Priority Queues
The timestamp information for stating third licensing is the timestamp information of first licensing.
Further, the Priority Queues has Priority Queues expired time;When the arrival Priority Queues expired time
When, the Priority Queues is deleted by the cache server;
First licensing extracted in the Priority Queues pre-established corresponding with the latest edition configuration information
The step of, comprising:
Judge current time with the presence or absence of Priority Queues corresponding with the latest edition configuration information;
Priority Queues corresponding with the latest edition configuration information if it exists extracts and the latest edition configuration information
The first licensing in the corresponding Priority Queues pre-established;
The method also includes:
Priority Queues corresponding with the latest edition configuration information if it does not exist, the transmission of Xiang Suoshu configuration server are not deposited
In the notice of Priority Queues corresponding with the latest edition configuration information, so that the configuration server is to the clothes to be configured
Business property program example sends the latest edition configuration information, so that the service program example to be configured is configured more
Newly.
The third aspect, the embodiment of the invention provides a kind of configuration updating devices, which is characterized in that is applied to configuration system
In configuration server, the configuration system, further includes: multiple service servers of same service function, described device are provided
Include:
Configuration updates request receiving module, for receiving the hair of the business to be configured server in the multiple service server
The configuration sent updates request;
First licensing extraction module has the time for extracting preset quantity corresponding with latest edition configuration information
Stab the first licensing in the licensing of information;First licensing is timestamp information in the preset quantity licensing
The smallest licensing;The initial time stamp information of the preset quantity licensing is the life of the latest edition configuration information
At the time;The preset quantity is less than the total quantity of the business to be configured server;Described and latest edition configuration information pair
Licensing of the preset quantity with timestamp information answered is generated and is saved when obtaining the latest version information;
First judgment module, for judge current time whether be later than or equal to first licensing timestamp believe
Breath;
First latest edition configuration information sending module, if be later than for current time or first licensing when
Between stab information, Xiang Suoshu business to be configured server sends the latest edition configuration information, so that the business to be configured takes
Business device carries out configuration update;
First license creation module, if being greater than the timestamp information of first licensing for current time, creation
One new the second licensing corresponding with the latest edition configuration information, the timestamp information of second licensing be to
The business to be configured server adds prefixed time interval at the time of sending the latest edition configuration information;
Second license creation module, if the timestamp information for current time earlier than first licensing, creation
One new third licensing corresponding with the latest edition configuration information simultaneously stops configuration update, the third licensing
Timestamp information is the timestamp information of first licensing.
Further, operation has one or more service program examples to be configured in the business to be configured server;
The preset quantity is less than the total quantity of the service program example to be configured run in the business to be configured server;
The configuration updates request receiving module, specifically for receiving the configuration of service program example transmission to be configured more
New request;
The first latest edition configuration information sending module, if being later than or being equal to described the specifically for current time
The timestamp information of one licensing sends the latest edition configuration information to the service program example to be configured, so that
The service program example to be configured carries out configuration update;
First license creation module, it is new corresponding with the latest edition configuration information specifically for creation one
The second licensing, the timestamp information of second licensing be sent to the service program example to be configured it is described most
Prefixed time interval is added at the time of new version configuration information.
Further, the configuration updates the current version in request comprising the service program example to be configured and configures
Information;
The first licensing extraction module includes: version judging submodule and the first extracting sub-module;
The version judging submodule is higher than the current version of service program example to be configured for judging whether there is
The latest edition configuration information of this configuration;
First extracting sub-module, for when in the presence of higher than the service program example current-configuration version to be configured
Latest edition configuration information when, extract corresponding with latest edition configuration information preset quantity with timestamp information
Licensing in the first licensing.
Further, licensing corresponding with the latest edition configuration information has same expired time, when arrival institute
When stating expired time, each licensing corresponding with the latest edition configuration information is deleted;
The first licensing extraction module includes: corresponding licensing judging submodule, the transmission of latest edition configuration information
Submodule and the second extracting sub-module;
The corresponding licensing judging submodule, for judging that current time whether there is with the latest edition with confidence
Cease corresponding licensing;
The latest edition configuration information sending submodule, for corresponding with the latest edition configuration information if it does not exist
Licensing, the latest edition configuration information is sent to the service program example to be configured, so that the clothes to be configured
Business property program example carries out configuration update;
Second extracting sub-module is extracted for licensing corresponding with the latest edition configuration information if it exists
The preset quantity pre-established corresponding with the latest edition configuration information is with the in the licensing of timestamp information
One licensing.
Further, the configuration system further include: cache server;It is described corresponding with latest edition configuration information pre-
If quantity is stored in the cache server with the licensing of timestamp information;
The first licensing extraction module is specifically used for sending license obtainment request to the cache server, with
So that the cache server is extracted the preset quantity pre-established corresponding with the latest edition configuration information has the time
The first licensing in the licensing of information is stabbed, and returns to first licensing to the configuration server;
First license creation module is asked specifically for sending the first newly-built licensing to the cache server
It asks, so that the cache server creates a new licensing corresponding with the latest edition configuration information, it is newly created
The timestamp information of licensing is at the time of sending the latest edition configuration information to the service program example to be configured
In addition prefixed time interval;
Second license creation module is specifically used for sending the second newly-built license request to the cache server
And stop configuration and update, so that the cache server creates a new third corresponding with the latest edition configuration information
Licensing, the timestamp information of the third licensing are the timestamp information of first licensing.
Further, what the licensing was stored in that the cache server pre-establishes has Priority Queues expired time
Priority Queues in, when reaching the Priority Queues expired time, the Priority Queues is deleted by the cache server;
The first licensing extraction module is matched specifically for sending to the cache server for the latest edition
The license obtainment request of confidence breath is matched so that the cache server judges that current time whether there is with the latest edition
Confidence ceases corresponding Priority Queues;If it exists, the preferential team pre-established corresponding with the latest edition configuration information is extracted
The first licensing in column, and first licensing is returned to the configuration server;If it does not exist, it is serviced to the configuration
Device sends the notice that Priority Queues corresponding with the latest edition configuration information is not present;
First license creation module is asked specifically for sending the first newly-built licensing to the cache server
Ask so that the cache server created in the Priority Queues one it is new corresponding with the latest edition configuration information
Second licensing, the timestamp information of second licensing are described newest to the service program example transmission to be configured
Prefixed time interval is added at the time of version configuration information;
Second license creation module is specifically used for sending the second newly-built license request to the cache server
And stop configuration update so that the cache server create in the Priority Queues one newly match with the latest edition
Confidence ceases corresponding third licensing, and the timestamp information of the third licensing is that the timestamp of first licensing is believed
Breath;
Described device further include:
Second latest edition configuration information sending module, for receive that the cache server sends there is no with
After the notice of the corresponding Priority Queues of latest edition configuration information, sent to the service program example to be configured described newest
Version configuration information, so that the service program example to be configured carries out configuration update.
Fourth aspect, the embodiment of the invention provides a kind of configuration updating devices, which is characterized in that is applied to configuration system
In cache server, the configuration system, further includes: configuration server and operation are provided with the service of same service function
Multiple service servers of program example, described device include:
License obtainment request receiving module, the license obtainment request sent for receiving the configuration server, institute
Stating license obtainment request is to receive the configuration update that service program example to be configured is sent in the configuration server to ask
It is sent when asking, the service program example to be configured is the business to be configured server in the multiple service server
The service program example that the pending configuration of middle operation updates;
Second licensing extraction module has the time for extracting preset quantity corresponding with latest edition configuration information
Stab the first licensing in the licensing of information;First licensing is timestamp information in the preset quantity licensing
The smallest licensing;The initial time stamp information of the preset quantity licensing is the life of the latest edition configuration information
At the time;The preset quantity is less than the total quantity of the service program example to be configured;It is described to match confidence with latest edition
Ceasing licensing of the corresponding preset quantity with timestamp information is generated and protects when obtaining the latest version information
It deposits;
Licensing sending module, for sending first licensing to the configuration server, so that the configuration takes
If business device judge the timestamp information current time whether current time is later than perhaps equal to first licensing be later than or
Equal to the timestamp information of first licensing, Xiang Suoshu service program example sends the latest edition configuration information,
So that the service program example to be configured carries out configuration update, and the first newly-built licensing is sent to the cache server
Request, if current time earlier than the timestamp information of first licensing, stops configuration and updates and to the cache server
Send the second newly-built license request;
Third license creation module, for when the first newly-built license request for receiving the configuration server transmission
When, create new second licensing corresponding with the latest edition configuration information, the timestamp of second licensing
Information is at the time of sending the latest edition configuration information to the service program example to be configured plus between preset time
Every;
4th license creation module, for when the second newly-built license request for receiving the configuration server transmission
When, create a new third licensing corresponding with the latest edition configuration information, the timestamp of the third licensing
Information is the timestamp information of first licensing.
Further, the second licensing extraction module is specifically used for extracting and the latest edition configuration information pair
The first licensing in the Priority Queues pre-established answered, first licensing are to be permitted positioned at the Priority Queues stem
It can demonstrate,prove, include licensing of the preset quantity with timestamp information in the Priority Queues;
The third license creation module is permitted specifically for creating when receive the configuration server transmission first
When can demonstrate,prove request, new second license corresponding with the latest edition configuration information is created in the Priority Queues
Card, the timestamp information of second licensing are that the latest edition configuration is sent to the service program example to be configured
Prefixed time interval is added at the time of information;
4th license creation module is permitted specifically for creating when receive the configuration server transmission second
When can demonstrate,prove request, new third corresponding with a latest edition configuration information license is created in the Priority Queues
Card, the timestamp information of the third licensing are the timestamp information of first licensing.
Further, the Priority Queues has Priority Queues expired time;When the arrival Priority Queues expired time
When, the Priority Queues is deleted by the cache server;
The second licensing extraction module is specifically used for judging that current time whether there is and latest edition configuration
The corresponding Priority Queues of information;Priority Queues corresponding with the latest edition configuration information if it exists, extract with it is described newest
The first licensing in the corresponding Priority Queues pre-established of version configuration information;
Described device further include: notice sending module;
The notice sending module is used for Priority Queues corresponding with the latest edition configuration information if it does not exist, to
The configuration server sends the notice that Priority Queues corresponding with the latest edition configuration information is not present, so that described match
It sets server and sends the latest edition configuration information to the service program example to be configured, so that the service to be configured
Property program example carries out configuration update.
5th aspect, the embodiment of the invention provides a kind of configuration servers, including processor and memory, wherein
The memory, for storing computer program;
The processor when for executing the program stored on the memory, is realized above-mentioned applied to configuration service
The configuration update method of device.
6th aspect, the embodiment of the invention provides a kind of cache servers, including processor and memory, wherein
The memory, for storing computer program;
The processor when for executing the program stored on the memory, is realized any of the above-described applied to caching
The dial testing method of server.
7th aspect, the embodiment of the invention provides a kind of configuration systems, including providing multiple industry of same service function
Business server and configuration server.
Further, the quantity of the configuration server is multiple.
Further, the system also includes cache servers.
Further, the quantity of the cache server is multiple.
Eighth aspect, it is described computer-readable to deposit the embodiment of the invention also provides a kind of computer readable storage medium
Instruction is stored in storage media, when run on a computer, so that computer executes any of the above-described configuration update method.
A kind of configuration update method, device, configuration server and configuration system provided in an embodiment of the present invention, configuration service
The configuration that device receives the transmission of the business to be configured server in the multiple service server updates request;Extraction and latest edition
The corresponding preset quantity of configuration information is with the first licensing in the licensing of timestamp information;Whether judge current time
Be later than or equal to first licensing timestamp information;If current time is later than or equal to first licensing
Timestamp information, Xiang Suoshu business to be configured server sends the latest edition configuration information, so that the business to be configured
Server carries out configuration update;One new the second licensing corresponding with the latest edition configuration information of creation, second is permitted
The timestamp information that can be demonstrate,proved is at the time of sending the latest edition configuration information to the business to be configured server plus pre-
If time interval;If current time earlier than the timestamp information of first licensing, create one it is new with the latest edition
The corresponding third licensing of this configuration information simultaneously stops configuration update, and the timestamp information of third licensing is first license
The timestamp information of card.In the embodiment of the present invention, when the configuration for receiving the transmission of business to be configured server updates request, match
It sets server and does not instead of directly send latest edition configuration information to the business to be configured server, extract the first licensing,
In timestamp information of the current time earlier than the first licensing, show to request that configuration updates wait match within a preset time interval
Purchase of property business number of servers has reached preset quantity, at this point, not to the business to be configured server for sending configuration update request
Carry out configuration update, only current time be later than or equal to first licensing timestamp information when, to described wait match
It sets service server and sends the latest edition configuration information, so that the business to be configured server carries out configuration update.Cause
This, can be matched simultaneously within a preset time interval to avoid because of all business to be configured servers for providing same service function
Update is set, and the not available situation of the service function occurs, it can reduces the occurrence of service function is unavailable.
Certainly, implement any of the products of the present invention or method it is not absolutely required at the same reach all the above excellent
Point.
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 existing configuration system structure diagram;
Fig. 2 is the configuration service that configuration update method provided in an embodiment of the present invention is applied in configuration system described in Fig. 1
A kind of flow diagram of device;
Fig. 3 is a kind of structural schematic diagram of configuration system provided in an embodiment of the present invention;
Fig. 4 is the configuration service that configuration update method provided in an embodiment of the present invention is applied in configuration system shown in Fig. 3
A kind of flow diagram of device;
Fig. 5 is the buffer service that configuration update method provided in an embodiment of the present invention is applied in configuration system shown in Fig. 3
A kind of flow diagram of device;
Fig. 6 is a specific example interaction diagrams of configuration update method provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram for configuring updating device provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of another configuration updating device provided in an embodiment of the present invention;
Fig. 9 is a kind of structural schematic diagram of configuration server provided in an embodiment of the present invention;
Figure 10 is a kind of structural schematic diagram of cache server provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description.
To reduce the occurrence of service function is unavailable, the embodiment of the invention provides a kind of configuration update methods, dress
Set, configuration server, cache server and configuration system, be described in detail separately below.
With the rise of micro services application architecture, for the application program with multiple functions, in corresponding business
Multiple service programs can be corresponding in server, each service program provides different functions for above-mentioned application program,
For example, there can be multiple service programs to the short-sighted frequency application program of Mr. Yu, video recommendations are provided respectively, video is thumbed up and regarded
Frequency comment etc..Using micro services application architecture, different service programs can be split, to improve service program
Efficiency of research and development.
Configuration update method, device, configuration server, cache server and configuration system provided in an embodiment of the present invention,
It can be applied to the configuration system in micro services framework, to reduce the occurrence of service function is unavailable.
Referring to fig. 2, Fig. 2 is the configuration that configuration update method provided in an embodiment of the present invention is applied in Fig. 1 configuration system
A kind of flow diagram of server;
The above method specifically comprises the following steps:
Step 201, it receives the configuration that the business to be configured server in multiple service servers is sent and updates request.
Business to be configured server periodically can send configuration update to configuration server and ask according to a certain preset duration
It asks, is also possible to sporadically send configuration update request as needed.
Further, one or more service program examples to be configured can have been run in business to be configured server.
Receive the step of configuration that the business to be configured server in the multiple service server is sent updates request, comprising: receive
The configuration that service program example to be configured is sent updates request.
Specifically, may include the current-configuration version information of service program example to be configured in configuration update request
Deng in order to which configuration server sends the latest edition for being higher than current-configuration version with confidence to service program example to be configured
Breath.
Step 202, extracting the preset quantity pre-established corresponding with latest edition configuration information has timestamp letter
The first licensing in the licensing of breath.
Wherein, the first licensing is the licensing that timestamp information is earliest in preset quantity licensing;Preset quantity
The initial time stamp information of licensing is the generation time of latest edition configuration information;Preset quantity takes less than business to be configured
The total quantity of business device.Preset quantity corresponding with latest edition configuration information can be with the licensing of timestamp information
It when configuration server obtains the latest version information, is generated by configuration server and is saved, be also possible to be taken by configuration
Device be engaged in the transmission request of other servers, and then generated and saved by other servers.
Step 203, judge current time whether be later than or equal to first licensing timestamp information.
If current time be later than or equal to first licensing timestamp information, execute step 204;If when current
The timestamp information earlier than first licensing is carved, step 206 is executed.
Step 204, to business to be configured server send latest edition configuration information so that business to be configured server into
Row configuration updates.
It is corresponding with step 201, since one or more services to be configured can have been run in business to be configured server
Property program example, if current time be greater than the first licensing timestamp information, to service program example to be configured send institute
Latest edition configuration information is stated, so that service program example to be configured carries out configuration update.
Step 205, create new second licensing corresponding with latest edition configuration information, the second licensing when
Between stamp information be to business to be configured server send latest edition configuration information at the time of add prefixed time interval.
Correspondingly, new second licensing corresponding with latest edition configuration information, the second licensing can be created
Timestamp information be at the time of sending latest edition configuration information to service program example to be configured plus between preset time
Every.
For example, being on April 1st, 2019 at the time of if sending latest edition configuration information to service program example to be configured
Morning 7:00, prefixed time interval are 1 minute, then the timestamp information of the second licensing is the morning 7 on April 1st, 2019:
01。
Step 206, it if current time is earlier than the timestamp information of the first licensing, creates one and new matches with latest edition
Confidence ceases corresponding third licensing and stops configuration and updates, and the timestamp information of third licensing is the time of the first licensing
Stab information.
The initial time stamp information of licensing is the generation time of latest edition configuration information, it follows that licensing
Initial time stamp information configures the current time of update request earlier than receiving, meanwhile, the total quantity of licensing is less than industry to be configured
The total quantity of business server, also, in the present embodiment, every primary configuration of reception, which updates, requests, and will extract a timestamp letter
The first earliest licensing of breath.
If receive configuration update request current time be later than or equal to the first licensing timestamp information, example
Such as: the timestamp information of licensing is initial time stamp information, then shows to take before this configures and updates request to configuration
The quantity that business device is transmitted across the business to be configured server that latest edition configuration information was requested and obtained in configuration update, which is less than, to be permitted
Total quantity can be demonstrate,proved, at this point it is possible to update the business to be configured server transmission latest edition configuration requested to this configuration is sent
Information.Meanwhile in order to prevent within a preset time interval, when sent configuration update request and obtain latest edition configuration information
Business to be configured number of servers reach licensing total quantity after, there are also send configuration update request business to be configured clothes
Device of being engaged in obtains latest edition configuration information, can create the second license for prolonging the prefixed time interval after a timestamp information
Card does not send latest edition configuration to service program example corresponding with second licensing in the prefixed time interval
Information.
If receiving configuration updates the current time requested earlier than the timestamp information of the first licensing, show when default
Between interval in, this configure update request before, had quantity business to be configured service identical as licensing total quantity
Device configuration server has sent configuration and updates request, and obtains latest edition configuration information.At this point it is possible to stop configuration more
Newly, it is configured more simultaneously in same time interval to avoid all business to be configured servers for providing same service function
Newly, there is the not available situation of the service function.Meanwhile in order to after prefixed time interval, restart to match to transmission
The business to be configured server transmission latest edition configuration information for updating request is set, can create a timestamp information is this
The third licensing of the timestamp information of the first licensing extracted.
As seen from the above-described embodiment, in embodiments of the present invention, the business to be configured clothes in service server are being received
When the configuration that business device is sent updates request, configuration server is not directly to send latest edition to business to be configured server to configure
Information, but extract the first licensing and show in timestamp information of the current time earlier than the first licensing in preset time
The business to be configured server that request configuration updates in being spaced has reached preset quantity, asks at this point, not updating to transmission configuration
The business to be configured server asked carries out configuration update, it can thus be avoided because providing all to be configured of same service function
Service server carries out configuration update simultaneously within a preset time interval, and the not available situation of the service function occurs
To reduce the occurrence of service function is unavailable.
Referring to Fig. 3, the present embodiment additionally provides a kind of configuration system.As shown in figure 3, this configuration system is shown in Fig. 1 matches
On the basis of setting system, increase cache server 130, for store it is corresponding with configuration version pre-establish have the time
The licensing of information is stabbed, and in the creation license request for receiving configuration server, according to above-mentioned request, carried out corresponding
License creation operation.
Referring to fig. 4, Fig. 4 is that configuration update method provided in an embodiment of the present invention is applied in configuration system shown in Fig. 3
A kind of flow diagram of configuration server;Specific step is as follows:
Step 401, it receives the configuration that service program example to be configured is sent and updates request.
Step 402, the latest edition judged whether there is higher than service program example current version to be configured configuration is matched
Confidence breath.If there is no the latest edition configuration information for being higher than service program example current version to be configured configuration, then hold
Row step 403;If there is the latest edition configuration information for being higher than service program example current version to be configured configuration, execute
Step 404.
Step 403, stop configuration updating.
Step 404, the license obtainment request for being directed to latest edition configuration information is sent to cache server, so that caching
Server judges current time with the presence or absence of Priority Queues corresponding with latest edition configuration information;Match if it exists with latest edition
Confidence ceases corresponding Priority Queues, and first extracted in the Priority Queues pre-established corresponding with latest edition configuration information is permitted
It can demonstrate,prove, and return to the first licensing to configuration server;Priority Queues corresponding with latest edition configuration information if it does not exist, to
Configuration server sends the notice that Priority Queues corresponding with latest edition configuration information is not present.
When receive cache server transmission there is no the notices of Priority Queues corresponding with latest edition configuration information
When, execute step 405;When receiving the first licensing of cache server return, step 406 is executed.
Specifically, when there is configuration update, can be generated one in configuration server and uniquely match with this version
Confidence ceases corresponding version number, and sends Priority Queues to cache server and establish request, may include version number in the request
With the generation time of latest edition configuration information, cache server receive the Priority Queues comprising version number establish request when,
It can establish one corresponding with the version number Priority Queues with expired time, and be inserted into present count in the Priority Queues
Measuring initial time stamp information is the licensing that latest edition configuration information generates the time.If configuration server judges exist
Higher than service program example current version to be configured configuration latest edition configuration information when, can be sent to cache server
The license obtainment request of version number comprising latest configuration version.
Simultaneously as Priority Queues has Priority Queues expired time, when reaching Priority Queues expired time, preferential team
Column can be buffered server deletion, and therefore, in the license obtainment request for receiving configuration server, cache server can
First to judge current time with the presence or absence of Priority Queues corresponding with latest edition configuration information.
In the present embodiment, can also by the way of distributed caching to the licensing in Priority Queues and Priority Queues into
Row relevant operation, it may be assumed that cache server can have more, when the number of licenses for needing to establish is more, can pass through distribution
The mode of formula caching improves the total capacity of cache server, at the same time it can also to each Priority Queues and licensc e data progress
Backup, to prevent the data loss problem because caused by breaking down certain cache server.
Step 405, when receive cache server transmission there is no preferential team corresponding with latest edition configuration information
When the notice of column, latest edition configuration information is sent to service program example to be configured, so that service program to be configured is real
Example carries out configuration update.
In a certain period of time, it provides in each service program example of same service function, it may be also partially real
Example is updated without completing configuration, can be to excellent to avoid above-mentioned each service program example from configuring inconsistent overlong time
Expired time is arranged in first queue, when Priority Queues is expired, can send latest edition to service program example to be configured and match
Confidence breath, so that service program example to be configured carries out configuration update.
Step 406, when receive cache server return the first licensing when, judge current time whether be later than or
Equal to the timestamp information of first licensing.If current time be later than or equal to the first licensing timestamp information,
Execute step 407;If current time earlier than the timestamp information of the first licensing, executes step 409.
Step 407, latest edition configuration information is sent to service program example to be configured, so that service journey to be configured
Sequence example carries out configuration update.
Step 408, the first newly-built license request is sent to cache server, so that cache server is in Priority Queues
One new the second licensing corresponding with latest edition configuration information of creation, the timestamp information of the second licensing are to wait match
It sets at the time of service program example sends latest edition configuration information plus prefixed time interval.
Step 409, the second newly-built license request is sent to cache server licensing and stop configuration and updated, so that slow
It deposits server and creates a new third licensing corresponding with latest edition configuration information, third licensing in Priority Queues
Timestamp information be the first licensing timestamp information.
Service program to be configured can be distributed deployment, that is to say, that operation is provided with same service function
The service server of service program example can have more, also, cache server can also have more, at this point, by drawing
Enter Priority Queues corresponding with latest edition configuration information, judges whether current time is later than or is equal to first licensing
Timestamp information, and then be newly created license sets timestamp information mode, the concentration to licensing may be implemented
Management, and then limit the quantity that the service example of configuration update can be carried out in prefixed time interval.
In embodiments of the present invention, licensing is left concentratedly in cache server, when due to providing same service function
Can all service program examples quantity is more or the type of service function is more and cause the total quantity of licensing compared with
It, can be in order to the centralized management to licensing when more.Meanwhile it is real receiving the service program to be configured in service server
When the configuration that example is sent updates request, configuration server is not directly to send latest edition to service program example to be configured to match
Confidence breath, but extract the first licensing and show when default in timestamp information of the current time earlier than the first licensing
Between be spaced in request configuration update service program example quantity have reached preset quantity, at this point, not to send configuration more
The service program example to be configured newly requested carries out configuration update, it can thus be avoided because providing the institute of same service function
There is service program example within a preset time interval while carrying out configuration update, and the not available feelings of the service function occurs
Condition, it can reduce the occurrence of service function is unavailable.
Referring to Fig. 5, Fig. 5 is that configuration update method provided in an embodiment of the present invention is applied in configuration system shown in Fig. 3
A kind of flow diagram of cache server, the specific steps are as follows:
Step 501, the license obtainment request that configuration server is sent is received.
Wherein, license obtainment request is the service program to be configured received in service server in configuration server
It is sent when the configuration update request that example is sent.
Step 502, licensing of the preset quantity with timestamp information corresponding with latest edition configuration information is extracted
In the first licensing.
Wherein, the first licensing is the licensing that timestamp information is earliest in preset quantity licensing;Preset quantity
The initial time stamp information of licensing is the generation time of latest edition configuration information;Preset quantity is less than service to be configured
The total quantity of program example.The licensing of preset quantity corresponding with latest edition configuration information with timestamp information be
It when obtaining latest version information, sends and requests from configuration server to cache server, and then generated simultaneously by cache server
It saves.
For example, in configuration server, when there is configuration and updating, can be generated one it is uniquely corresponding with this update
Version number, and send licensing to cache server and establish request, may include version number in the request, cache server connects
When receiving the licensing foundation request comprising version number, can establish preset quantity corresponding with the version number has timestamp
The licensing of information further may include the generation time of latest edition configuration information, cache server can in the request
Using the version number as key assignments, to establish a Priority Queues, and preset quantity initial time stamp is inserted into the Priority Queues
Information is the licensing that latest edition configuration information generates the time.
Step 503, the first licensing is sent to configuration server, so that configuration server judges whether current time is later than
If the timestamp information current time equal to first licensing is later than or believes equal to the timestamp of the first licensing
Breath sends latest edition configuration information to service program example to be configured, so that service program example to be configured is matched
Update is set, and sends the first newly-built license request to cache server, if current time is earlier than the timestamp of the first licensing
Information stops configuration and updates and send the second newly-built license request to cache server.
Step 504, when receiving the first newly-built license request of configuration server transmission, create one it is new with most
Corresponding second licensing of new version configuration information, the timestamp information of the second licensing are to service program example to be configured
Prefixed time interval is added at the time of sending latest edition configuration information.
Step 505, when receiving the second newly-built license request of configuration server transmission, create one it is new with most
The corresponding third licensing of new version configuration information, the timestamp information of third licensing are that the timestamp of the first licensing is believed
Breath.
In embodiments of the present invention, after sending the first licensing to configuration server, when configuration server is judged to work as
The preceding moment earlier than the first licensing timestamp information when, the service journey that shows to request configuration to update within a preset time interval
Sequence example quantity has reached preset quantity, at this point, configuration server is not to the service to be configured for sending configuration update request
Program example carries out configuration update, it can thus be avoided because all service program examples for providing same service function are pre-
If carrying out configuration update simultaneously in time interval, and there is the not available situation of the service function, it can reduce service function
The occurrence of unavailable.
It is the embodiment of the present invention referring to Fig. 6, Fig. 6 for the interaction flow for embodying each equipment room in configuration system shown in Fig. 3
One specific example interaction diagrams of the configuration update method of offer, specific steps include:
Step 601, the service program example to be configured in business to be configured server sends to configuration server and configures
Update request.
Specifically, it may include the letters such as the current version configuration of service program example to be configured in request that configuration, which updates,
Breath, in order to which configuration server sends the latest edition for being higher than current version configuration with confidence to service program example to be configured
Breath.
Step 602, configuration server is judged whether there is higher than service program example current version to be configured configuration
Latest edition configuration information.The latest edition for being higher than service program example current version to be configured configuration if it exists matches confidence
Breath executes step 603.
Step 603, configuration server is asked to cache server transmission for the license obtainment of latest edition configuration information
It asks.
Step 604, cache server judges current time with the presence or absence of preferential team corresponding with latest edition configuration information
Column.Priority Queues corresponding with latest edition configuration information if it does not exist executes step 605;It is configured if it exists with latest edition
The corresponding Priority Queues of information executes step 608.
In configuration server, when occur configuration update when, can be generated one uniquely with this version configuration information
Corresponding version number, and send Priority Queues to cache server and establish request may include version number and newest in the request
The generation time of version configuration information, when cache server receives the foundation request of the Priority Queues comprising version number, Ke Yijian
Vertical one corresponding with the version number Priority Queues with expired time, and in the Priority Queues at the beginning of insertion preset quantity
Beginning timestamp information is the licensing that latest edition configuration information generates the time.If configuration server judge exist be higher than to
When configuring the latest edition configuration information of service program example current version configuration, it can send to cache server comprising most
The license obtainment request of the version number of new configuration version.
Simultaneously as Priority Queues has Priority Queues expired time, when reaching Priority Queues expired time, preferential team
Column can be buffered server deletion, and therefore, in the license obtainment request for receiving configuration server, cache server can
First to judge current time with the presence or absence of Priority Queues corresponding with latest edition configuration information.
In the present embodiment, can also by the way of distributed caching to the licensing in Priority Queues and Priority Queues into
Row relevant operation, it may be assumed that cache server can have more, when the number of licenses for needing to establish is more, can pass through distribution
The mode of formula caching improves the total capacity of cache server, at the same time it can also to each Priority Queues and licensc e data progress
Backup, to prevent the data loss problem because caused by breaking down certain cache server.
Step 605, there is no corresponding with latest edition configuration information preferential to configuration server transmission for cache server
The notice of queue.
Step 606, configuration server sends latest edition configuration information to service program example to be configured.
Step 607, service program example to be configured carries out configuration update.
Step 608, cache server extracts in the Priority Queues pre-established corresponding with latest edition configuration information
First licensing, and the first licensing is returned to configuration server.
Step 609, configuration server judge whether to be later than or equal to first licensing timestamp information.If working as
The preceding moment be later than or equal to the first licensing timestamp information, execute step 610;If current time is earlier than the first licensing
Timestamp information, execute step 614.
Step 610, configuration server sends latest edition configuration information to service program example to be configured.
Step 611, service program example to be configured carries out configuration update.
Step 612, configuration server sends the first newly-built license request to cache server.
Step 613, cache server creates one new corresponding with latest edition configuration information the in Priority Queues
Two licensings, the timestamp information of the second licensing are to send latest edition configuration information to service program example to be configured
Moment adds prefixed time interval.
Step 614, configuration server sends the second newly-built license request to cache server and stops configuration and updates.
Step 615, cache server creates one new corresponding with latest edition configuration information the in Priority Queues
Three licensings, the timestamp information of third licensing are the timestamp information of the first licensing.
In embodiments of the present invention, configuration server is updated in the configuration for receiving service program example transmission to be configured
When request, first extract the first licensing, and judge current time whether be later than or equal to the first licensing timestamp information,
In timestamp information of the current time earlier than the first licensing, show the service for requesting configuration to update within a preset time interval
Property program example quantity have reached preset quantity, at this point, to send configure update request service program to be configured it is real
Example carries out configuration update, it can thus be avoided because all service program examples for providing same service function are in preset time
Configuration update is carried out simultaneously in interval, and the not available situation of the service function occurs, it can it is unavailable to reduce service function
The occurrence of.
Based on the same inventive concept, the configuration update method provided according to that above embodiment of the present invention, correspondingly, the present invention
One embodiment additionally provides a kind of configuration updating device, applied to the configuration server in configuration system, configures system, also wraps
Include: multiple service servers of same service function be provided, the structural schematic diagram of the device as shown in fig. 7, comprises:
Configuration updates request receiving module 701, for receiving the hair of the business to be configured server in multiple service servers
The configuration sent updates request;
First licensing extraction module 702, for extract it is corresponding with latest edition configuration information pre-establish it is default
Quantity is with the first licensing in the licensing of timestamp information;First licensing is the time in preset quantity licensing
Stab the earliest licensing of information;The initial time stamp information of preset quantity licensing is the generation of latest edition configuration information
Time;Preset quantity is less than the total quantity of business to be configured server;Preset quantity corresponding with latest edition configuration information
Licensing with timestamp information is generated and is saved when obtaining latest version information;
First judgment module 703, for judge current time whether be later than or equal to first licensing time
Stab information;
First latest edition configuration information sending module 704, if being later than or being equal to the first licensing for current time
Timestamp information, to business to be configured server send latest edition configuration information so that business to be configured server carry out
Configuration updates;
First license creation module 705, if being later than for current time or believing equal to the timestamp of the first licensing
Breath, creates new second licensing corresponding with latest edition configuration information, the timestamp information of the second licensing be to
Business to be configured server adds prefixed time interval at the time of sending latest edition configuration information;
Second license creation module 706, if the timestamp information for current time earlier than the first licensing, creation one
A new third licensing corresponding with latest edition configuration information simultaneously stops configuration update, the timestamp information of third licensing
For the timestamp information of the first licensing.
Further, operation has one or more service program examples to be configured in business to be configured server;It is default
Quantity is less than the total quantity of the service program example to be configured run in business to be configured server;
Configuration updates request receiving module 701, specifically for receiving the configuration of service program example transmission to be configured more
New request;
First latest edition configuration information sending module 704, if being later than specifically for current time or being permitted equal to first
The timestamp information that can be demonstrate,proved sends latest edition configuration information to service program example to be configured, so that service to be configured
Program example carries out configuration update;
First license creation module 705, specifically for creation one new corresponding with latest edition configuration information the
Two licensings, the timestamp information of the second licensing are to send latest edition configuration information to service program example to be configured
Moment adds prefixed time interval.
Further, configuration updates the current version configuration information in request comprising service program example;
First licensing extraction module 702 includes: version judging submodule and the first extracting sub-module;
Version judging submodule is higher than service program example current version to be configured configuration for judging whether there is
Latest edition configuration information;
First extracting sub-module, for when in the presence of the latest edition for being higher than service program example current version to be configured configuration
When this configuration information, the preset quantity pre-established corresponding with latest edition configuration information is extracted with timestamp information
The first licensing in licensing.
Further, licensing corresponding with latest edition configuration information has same expired time, when reaching expired
Between when, each licensing corresponding with latest edition configuration information be deleted;
First licensing extraction module 702 includes: corresponding licensing judging submodule, latest edition configuration information transmission
Module and the second extracting sub-module;
Corresponding licensing judging submodule, for judging current time with the presence or absence of corresponding with latest edition configuration information
Licensing;
Latest edition configuration information sending submodule is used for license corresponding with latest edition configuration information if it does not exist
Card sends latest edition configuration information to service program example to be configured, so that service program example to be configured is matched
Set update;
Second extracting sub-module, for licensing corresponding with latest edition configuration information if it exists, extraction and latest edition
The corresponding preset quantity pre-established of this configuration information is with the first licensing in the licensing of timestamp information.
Further, system is configured further include: cache server;Preset quantity corresponding with latest edition configuration information
Licensing with timestamp information is stored in cache server;
First licensing extraction module 702 is specifically used for sending license obtainment request to cache server, so that caching
Server extracts licensing of the preset quantity pre-established with timestamp information corresponding with latest edition configuration information
In the first licensing, and to configuration server return the first licensing;
First license creation module 705 is specifically used for sending the first newly-built license request to cache server, so that
Cache server creates new second licensing corresponding with latest edition configuration information, the timestamp letter of the second licensing
Plus prefixed time interval at the time of breath is sends latest edition configuration information to service program example to be configured;
Second license creation module 706, specifically for sending the second newly-built license request to cache server and stopping
Only configuration updates, so that cache server creates a new third licensing corresponding with latest edition configuration information, third
The timestamp information of licensing is the timestamp information of the first licensing.
Further, licensing is stored in the preferential team with Priority Queues expired time that cache server pre-establishes
In column, when reaching Priority Queues expired time, Priority Queues is buffered server and deletes;
First licensing extraction module 702, specifically for sending to cache server for latest edition configuration information
License obtainment request, so that cache server judges current time with the presence or absence of corresponding with latest edition configuration information preferential
Queue;If it exists, the first licensing in the extraction Priority Queues pre-established corresponding with latest edition configuration information, and to
Configuration server returns to the first licensing;If it does not exist, it sends and is not present and latest edition configuration information pair to configuration server
The notice for the Priority Queues answered;
First license creation module 705 is specifically used for sending the first newly-built license request to cache server, so that
Cache server creates new second licensing corresponding with latest edition configuration information, licensing in Priority Queues
Timestamp information be at the time of sending latest edition configuration information to service program example to be configured plus between preset time
Every;
Second license creation module 706, specifically for sending the second newly-built license request to cache server and stopping
Only configuration updates, so that cache server creates a new third corresponding with latest edition configuration information in Priority Queues
Licensing, the timestamp information of third licensing are the timestamp information of the first licensing;
Device further include:
Second latest edition configuration information sending module, for receive cache server transmission there is no with it is newest
After the notice of the corresponding Priority Queues of version configuration information, latest edition is sent to service program example to be configured and matches confidence
Breath, so that service program example to be configured carries out configuration update.
In the embodiment of the present invention, configuration updates request receiving module 701 and is receiving the service journey in service server
The configuration that sequence example is sent updates request, and the first licensing extraction module 702 extracts the first licensing, first judgment module 703
Judge current time whether be later than or equal to first licensing timestamp information, current time earlier than first license
When the timestamp information of card, show that the service program example quantity for requesting configuration to update within a preset time interval has reached
Preset quantity, at this point, configuration update is not carried out to the service program example for sending configuration update request, it can thus be avoided
All service program examples because providing same service function carry out configuration update simultaneously within a preset time interval, and occur
The not available situation of the service function, it can reduce the occurrence of service function is unavailable.
Based on the same inventive concept, the configuration update method provided according to that above embodiment of the present invention, correspondingly, the present invention
One embodiment additionally provides another configuration updating device, applied to the cache server in configuration system, configures system, also
It include: multiple service servers that configuration server is provided with the service program example of same service function with operation, the dress
The structural schematic diagram set is as shown in Figure 8, comprising:
License obtainment request receiving module 801, for receiving the license obtainment request of configuration server transmission, license
Card acquisition request is to receive when the configuration that service program example to be configured is sent updates request to send in configuration server,
Service program example to be configured is the pending configuration run in the business to be configured server in multiple service servers
The service program example of update;
Second licensing extraction module 802, for extract it is corresponding with latest edition configuration information pre-establish it is default
Quantity is with the first licensing in the licensing of timestamp information;First licensing is the time in preset quantity licensing
Stab the earliest licensing of information;The initial time stamp information of preset quantity licensing is the generation of latest edition configuration information
Time;Preset quantity is less than the total quantity of service program example to be configured;Present count corresponding with latest edition configuration information
Licensing of the amount with timestamp information is generated and is saved when obtaining latest version information;
Licensing sending module 803, for sending the first licensing to configuration server, so that configuration server judgement is worked as
If the timestamp information the current time whether preceding moment is later than perhaps equal to first licensing is later than or is permitted equal to first
The timestamp information that can be demonstrate,proved sends latest edition configuration information to service program example to be configured, so that service to be configured
Program example carries out configuration update, and sends the first newly-built license request to cache server, if current time is earlier than first
The timestamp information of licensing stops configuration and updates and send the second newly-built license request to cache server;
Third license creation module 804, for when the first newly-built license request for receiving configuration server transmission
When, create new second licensing corresponding with latest edition configuration information, the timestamp information of the second licensing be to
Service program example to be configured adds prefixed time interval at the time of sending latest edition configuration information;
4th license creation module 805, for when the second newly-built license request for receiving configuration server transmission
When, create a new third licensing corresponding with latest edition configuration information, the timestamp information of third licensing is the
The timestamp information of one licensing.
Further, the second licensing extraction module 802 is specifically used for extracting corresponding with latest edition configuration information pre-
The first licensing in the Priority Queues first established, the first licensing are the licensing positioned at Priority Queues stem, Priority Queues
In include the licensing of preset quantity with timestamp information;
Third license creation module 804, specifically for when the first newly-built licensing for receiving configuration server transmission
When request, new second licensing corresponding with latest edition configuration information, the second licensing are created in Priority Queues
Timestamp information be at the time of sending latest edition configuration information to service program example to be configured plus between preset time
Every;
4th license creation module 805, specifically for when the second newly-built licensing for receiving configuration server transmission
When request, a new third licensing corresponding with latest edition configuration information, third licensing are created in Priority Queues
Timestamp information be the first licensing timestamp information.
Further, Priority Queues has Priority Queues expired time;When reaching Priority Queues expired time, preferential team
It arranges and is buffered server deletion;
Second licensing extraction module 802 is configured specifically for judging whether current time whether there is with latest edition
The corresponding Priority Queues of information;Priority Queues corresponding with latest edition configuration information if it exists is extracted and is configured with latest edition
The first licensing in the corresponding Priority Queues pre-established of information;
Device further include: notice sending module;
It notifies sending module, for Priority Queues corresponding with latest edition configuration information if it does not exist, is serviced to configuration
Device sends the notice that Priority Queues corresponding with latest edition configuration information is not present, so that configuration server is to service to be configured
Property program example send latest edition configuration information so that service program example to be configured carries out configuration update.
In the embodiment of the present invention, after licensing sending module 803 sends the first licensing to configuration server, work as configuration
When server judges timestamp information of the current time earlier than the first licensing, show to request to configure within a preset time interval
The service program example quantity of update has reached preset quantity, at this point, configuration server, which does not configure transmission, updates request
Service program example to be configured carry out configuration update, it can thus be avoided because providing all services of same service function
Property program example carry out configuration update simultaneously within a preset time interval, and there is the not available situation of the service function
To reduce the occurrence of service function is unavailable.
The embodiment of the invention also provides a kind of configuration servers, as shown in figure 9, including processor 901, communication interface
902, memory 903 and communication bus 904, wherein processor 901, communication interface 902, memory 903 pass through communication bus
904 complete mutual communication,
Memory 903, for storing computer program;
Processor 901 when for executing the program stored on memory 903, realizes following steps:
It receives the configuration that the business to be configured server in multiple service servers is sent and updates request;
Extract license of the preset quantity pre-established with timestamp information corresponding with latest edition configuration information
The first licensing in card;First licensing is the licensing that timestamp information is earliest in preset quantity licensing;Present count
The initial time stamp information for measuring a licensing is the generation time of latest edition configuration information;Preset quantity is less than industry to be configured
The total quantity of business server;
Judge current time whether be later than or equal to first licensing timestamp information;
If current time be later than or equal to the first licensing timestamp information, to business to be configured server send most
New version configuration information, so that business to be configured server carries out configuration update;
One new the second licensing corresponding with latest edition configuration information of creation, the timestamp information of the second licensing
To add prefixed time interval at the time of sending latest edition configuration information to business to be configured server;
If current time less than the timestamp information of the first licensing, create one it is new with latest edition configuration information pair
The third licensing answered simultaneously stops configuration and updates, and the timestamp information of third licensing is the timestamp information of the first licensing.
The embodiment of the invention also provides a kind of cache servers, as shown in Figure 10, including processor 1001, communication interface
1002, memory 1003 and communication bus 1004, wherein processor 1001, communication interface 1002, memory 1003 pass through communication
Bus 1004 completes mutual communication,
Memory 1003, for storing computer program;
Processor 1001 when for executing the program stored on memory 1003, realizes following steps:
The license obtainment request that configuration server is sent is received, license obtainment request is received in configuration server
It is sent when the configuration update request that service program example to be configured is sent, service program example to be configured is in multiple industry
The service program example that the pending configuration run in business to be configured server in business server updates;
Extract license of the preset quantity pre-established with timestamp information corresponding with latest edition configuration information
The first licensing in card;First licensing is the licensing that timestamp information is earliest in preset quantity licensing;Present count
The initial time stamp information for measuring a licensing is the generation time of latest edition configuration information;Preset quantity is less than service journey
The total quantity of sequence example;
The first licensing is sent to configuration server, so that configuration server judges whether current time is later than or is equal to
The timestamp information of first licensing, if current time be later than or equal to the first licensing timestamp information, to
It configures service program example and sends latest edition configuration information, so that service program example to be configured carries out configuration update,
And the first newly-built license request is sent to cache server, if current time earlier than the timestamp information of the first licensing, stops
Only configuration updates and sends the second newly-built license request to cache server;
When receiving the first newly-built license request of configuration server transmission, creates one and new match with latest edition
Confidence ceases corresponding second licensing, and the timestamp information of the second licensing is newest to service program example to be configured transmission
Prefixed time interval is added at the time of version configuration information;Alternatively,
When receiving the second newly-built license request of configuration server transmission, creates one and new match with latest edition
Confidence ceases corresponding third licensing, and the timestamp information of third licensing is the timestamp information of the first licensing.
The communication bus that above-mentioned configuration server and cache server are mentioned can be Peripheral Component Interconnect standard
(Peripheral Component Interconnect, abbreviation PCI) bus or expanding the industrial standard structure (Extended
Industry Standard Architecture, abbreviation EISA) bus etc..The communication bus can be divided into address bus, number
According to bus, control bus etc..Only to be indicated with a thick line in figure, it is not intended that an only bus or one convenient for indicating
The bus of seed type.
Communication interface is for the communication between above-mentioned configuration server and cache server and other equipment.
Memory may include random access memory (Random Access Memory, abbreviation RAM), also may include
Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
Abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor
(Digital Signal Processing, abbreviation DSP), specific integrated circuit (Application Specific
Integrated Circuit, abbreviation ASIC), field programmable gate array (Field-Programmable Gate Array,
Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can
Read storage medium in be stored with instruction, when run on a computer so that computer execute it is any in above-described embodiment
Configure update method.
In another embodiment provided by the invention, a kind of computer program product comprising instruction is additionally provided, when it
When running on computers, so that computer executes configuration update method any in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.Computer program product
Including one or more computer instructions.When loading on computers and executing computer program instructions, all or part of real estate
Raw process or function according to the embodiment of the present invention.Computer can be general purpose computer, special purpose computer, computer network,
Or other programmable devices.Computer instruction may be stored in a computer readable storage medium, or from a computer
Readable storage medium storing program for executing to another computer readable storage medium transmit, for example, computer instruction can from a web-site,
Computer, server or data center by wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as
Infrared, wireless, microwave etc.) mode transmitted to another web-site, computer, server or data center.Computer
Readable storage medium storing program for executing can be any usable medium or include one or more usable medium collection that computer can access
At the data storage devices such as server, data center.Usable medium can be magnetic medium, (for example, floppy disk, hard disk, magnetic
Band), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device,
For configuration server, cache server and configuration system embodiment, since it is substantially similar to the method embodiment, so description
It is fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (18)
1. a kind of configuration update method, which is characterized in that applied to the configuration server in configuration system, the configuration system,
Further include: multiple service servers of same service function are provided, which comprises
It receives the configuration that the business to be configured server in the multiple service server is sent and updates request;
Preset quantity corresponding with latest edition configuration information is extracted with the first license in the licensing of timestamp information
Card;First licensing is the licensing that timestamp information is earliest in the preset quantity licensing;The preset quantity
The initial time stamp information of a licensing is the generation time of the latest edition configuration information;The preset quantity is less than institute
State the total quantity of business to be configured server;The preset quantity corresponding with latest edition configuration information has timestamp letter
The licensing of breath is generated and is saved when obtaining the latest version information;
Judge current time whether be later than or equal to first licensing timestamp information;
If current time be later than or equal to first licensing timestamp information, Xiang Suoshu business to be configured server hair
The latest edition configuration information is sent, so that the business to be configured server carries out configuration update;
One new the second licensing corresponding with the latest edition configuration information of creation, the timestamp of second licensing
Information is to add prefixed time interval at the time of sending the latest edition configuration information to the business to be configured server;
If current time, which earlier than the timestamp information of first licensing, creates one, new matches confidence with the latest edition
It ceases corresponding third licensing and stops configuration and update, the timestamp information of the third licensing is first licensing
Timestamp information.
2. the method according to claim 1, wherein operation has one or more in the business to be configured server
A service program example to be configured;The preset quantity is less than the service to be configured run in the business to be configured server
The total quantity of property program example;
The step of configuration that the business to be configured server received in the multiple service server is sent updates request, packet
It includes:
It receives the configuration that service program example to be configured is sent and updates request;
If the current time be later than or equal to first licensing timestamp information, Xiang Suoshu business to be configured service
Device sends the latest edition configuration information, so that the business to be configured server carries out the step of configuration updates, comprising:
If current time be later than or equal to first licensing timestamp information, it is real to the service program to be configured
Example sends the latest edition configuration information, so that the service program example to be configured carries out configuration update;
New the second licensing corresponding with the latest edition configuration information of the creation one, second licensing when
Between stamp information be at the time of sending the latest edition configuration information to the business to be configured server plus between preset time
Every the step of, comprising:
One new the second licensing corresponding with the latest edition configuration information of creation, the timestamp of second licensing
Information is at the time of sending the latest edition configuration information to the service program example to be configured plus between preset time
Every.
3. according to the method described in claim 2, it is characterized in that, it includes the service to be configured in request that the configuration, which updates,
The current version configuration information of property program example;
It is described to extract preset quantity corresponding with latest edition configuration information with first in the licensing of timestamp information
The step of licensing, comprising:
Judge whether there is the latest edition configuration information for being higher than the service program example current version configuration to be configured;
When there is the latest edition configuration information for being higher than the service program example current version to be configured configuration, extract with
The corresponding preset quantity of the latest edition configuration information is with the first licensing in the licensing of timestamp information.
4. according to the method in claim 2 or 3, which is characterized in that license corresponding with the latest edition configuration information
Card has same expired time, when reaching the expired time, each license corresponding with the latest edition configuration information
Card is deleted;
It is described to extract preset quantity corresponding with the latest edition configuration information in the licensing of timestamp information
The step of first licensing, comprising:
Judge whether there is licensing corresponding with the latest edition configuration information;
Licensing corresponding with the latest edition configuration information if it does not exist is sent to the service program example to be configured
The latest edition configuration information, so that the service program example to be configured carries out configuration update;
Licensing corresponding with the latest edition configuration information if it exists extracts corresponding with the latest edition configuration information
Preset quantity is with the first licensing in the licensing of timestamp information.
5. according to the method in claim 2 or 3, which is characterized in that the configuration system further include: cache server;Institute
It states preset quantity corresponding with latest edition configuration information and is stored in the buffer service with the licensing of timestamp information
In device;
It is described to extract preset quantity corresponding with the latest edition configuration information in the licensing of timestamp information
The step of first licensing, comprising:
License obtainment request is sent to the cache server, so that cache server extraction is matched with the latest edition
Confidence ceases corresponding preset quantity with the first licensing in the licensing of timestamp information, and to the configuration server
Return to first licensing;
New the second licensing corresponding with the latest edition configuration information of the creation one, second licensing when
Between stamp information be at the time of sending the latest edition configuration information to the service program example to be configured plus it is default when
Between the step of being spaced, comprising:
Send the first newly-built license request to the cache server so that the cache server create one it is new with institute
Corresponding second licensing of latest edition configuration information is stated, the timestamp information of second licensing is to the clothes to be configured
Business property program example adds prefixed time interval at the time of sending the latest edition configuration information;
One new third licensing corresponding with the latest edition configuration information of the creation simultaneously stops configuration update, described
The step of timestamp information of third licensing is the timestamp information of first licensing, comprising:
The second newly-built license request is sent to the cache server and stops configuration and is updated, so that the cache server is created
A new third licensing corresponding with the latest edition configuration information is built, the timestamp information of the third licensing is
The timestamp information of first licensing.
6. according to the method described in claim 5, it is characterized in that, the licensing is stored in the cache server builds in advance
In the vertical Priority Queues with Priority Queues expired time, when reaching the Priority Queues expired time, the preferential team
Column are deleted by the cache server;
It is described to send license obtainment request to the cache server, so that the cache server extracts and the latest edition
The corresponding preset quantity of this configuration information takes with the first licensing in the licensing of timestamp information, and to the configuration
The step of business device returns to first licensing, comprising:
The license obtainment request for being directed to the latest edition configuration information is sent to the cache server, so that the caching
Server judges current time with the presence or absence of Priority Queues corresponding with the latest edition configuration information;If it exists, extract with
The first licensing in the corresponding Priority Queues pre-established of the latest edition configuration information, and to the configuration server
Return to first licensing;If it does not exist, Xiang Suoshu configuration server, which is sent, is not present and the latest edition configuration information
The notice of corresponding Priority Queues;
It is described to send the first newly-built license request to the cache server so that the cache server create one it is new
The second licensing corresponding with the latest edition configuration information, the timestamp information of second licensing are to described wait match
The step of setting at the time of service program example sends the latest edition configuration information plus prefixed time interval, comprising:
The first newly-built license request is sent to the cache server, so that the cache server is in the Priority Queues
One new the second licensing corresponding with the latest edition configuration information of creation, the timestamp information of second licensing
To add prefixed time interval at the time of sending the latest edition configuration information to the service program example to be configured;
It is described to send the second newly-built license request to the cache server and stop configuration update, so that the buffer service
Device creates a new third licensing corresponding with the latest edition configuration information, the timestamp letter of the third licensing
The step of breath is the timestamp information of first licensing, comprising:
The second newly-built license request is sent to the cache server and stops configuration and is updated, so that the cache server exists
The licensing of a new third corresponding with the latest edition configuration information, the third license are created in the Priority Queues
The timestamp information of card is the timestamp information of first licensing;
The method, further includes:
Receive that the cache server sends there is no the notices of Priority Queues corresponding with latest edition configuration information
Afterwards, the latest edition configuration information is sent to the service program example to be configured, so that the service journey to be configured
Sequence example carries out configuration update.
7. a kind of configuration update method, which is characterized in that applied to the cache server in configuration system, the configuration system,
Further include: configuration server is provided with multiple service servers of the service program example of same service function, institute with operation
The method of stating includes:
The license obtainment request that the configuration server is sent is received, the license obtainment request is serviced in the configuration
What the configuration update that device receives service program example transmission to be configured was sent when requesting, the service program to be configured is real
Example is the service journey that the pending configuration run in the business to be configured server in the multiple service server updates
Sequence example;
Preset quantity corresponding with latest edition configuration information is extracted with the first license in the licensing of timestamp information
Card;First licensing is the licensing that timestamp information is earliest in the preset quantity licensing;The preset quantity
The initial time stamp information of a licensing is the generation time of the latest edition configuration information;The preset quantity is less than institute
State the total quantity of service program example to be configured;The preset quantity corresponding with latest edition configuration information has the time
The licensing for stabbing information is generated and is saved when obtaining the latest version information;
First licensing is sent to the configuration server, so that the configuration server judges whether current time is later than
If the timestamp information current time equal to first licensing be later than or equal to first licensing time
Information is stabbed, the latest edition configuration information is sent to the service program example to be configured, so that the service to be configured
Property program example carry out configuration update, and the first newly-built license request is sent to the cache server, if current time is early
In the timestamp information of first licensing, stops configuration and update and send the second newly-built licensing to the cache server
Request;
When receiving the first newly-built license request that the configuration server is sent, create one it is new with the latest edition
Corresponding second licensing of this configuration information, the timestamp information of second licensing are to the service program to be configured
Example adds prefixed time interval at the time of sending the latest edition configuration information;Alternatively,
When receiving the second newly-built license request that the configuration server is sent, create one it is new with the latest edition
The corresponding third licensing of this configuration information, the timestamp information of the third licensing are the timestamp of first licensing
Information.
8. the method according to the description of claim 7 is characterized in that the extraction is corresponding with the latest edition configuration information
Preset quantity has the step of the first licensing in the licensing of timestamp information, comprising:
The first licensing in the extraction Priority Queues pre-established corresponding with the latest edition configuration information, described first
Licensing is the licensing positioned at the Priority Queues stem, includes that the preset quantity has the time in the Priority Queues
Stab the licensing of information;
New the second licensing corresponding with the latest edition configuration information of the creation one, second licensing when
Between stamp information be at the time of sending the latest edition configuration information to the service program example to be configured plus it is default when
Between the step of being spaced, comprising:
Create new second licensing corresponding with the latest edition configuration information in the Priority Queues, described the
The timestamp information of two licensings be to the service program example to be configured send the latest edition configuration information when
It carves and adds prefixed time interval;
The new third licensing corresponding with the latest edition configuration information of the creation one, the third licensing when
Between stamp information be first licensing timestamp information the step of, comprising:
Create a new third licensing corresponding with the latest edition configuration information in the Priority Queues, described the
The timestamp information of three licensings is the timestamp information of first licensing.
9. according to the method described in claim 8, it is characterized in that, the Priority Queues has Priority Queues expired time;When
When reaching the Priority Queues expired time, the Priority Queues is deleted by the cache server;
The step for extracting the first licensing in the Priority Queues pre-established corresponding with the latest edition configuration information
Suddenly, comprising:
Judge current time with the presence or absence of Priority Queues corresponding with the latest edition configuration information;
Priority Queues corresponding with the latest edition configuration information if it exists extracts corresponding with the latest edition configuration information
The Priority Queues pre-established in the first licensing;
The method also includes:
Priority Queues corresponding with the latest edition configuration information if it does not exist, Xiang Suoshu configuration server send there is no with
The notice of the corresponding Priority Queues of the latest edition configuration information, so that the configuration server is to the service to be configured
Program example sends the latest edition configuration information, so that the service program example to be configured carries out configuration update.
10. a kind of configuration updating device, which is characterized in that applied to the configuration server in configuration system, the configuration system,
Further include: multiple service servers of same service function are provided, described device includes:
Configuration updates request receiving module, for receiving the transmission of the business to be configured server in the multiple service server
Configuration updates request;
First licensing extraction module has timestamp letter for extracting preset quantity corresponding with latest edition configuration information
The first licensing in the licensing of breath;First licensing is that timestamp information is earliest in the preset quantity licensing
Licensing;When the initial time stamp information of the preset quantity licensing is the generation of the latest edition configuration information
Between;The preset quantity is less than the total quantity of the business to be configured server;It is described corresponding with latest edition configuration information
Licensing of the preset quantity with timestamp information is generated and is saved when obtaining the latest version information;
First judgment module, for judge current time whether be later than or equal to first licensing timestamp information;
First latest edition configuration information sending module, if being later than for current time or the timestamp of first licensing
Information, Xiang Suoshu business to be configured server sends the latest edition configuration information, so that the business to be configured server
Carry out configuration update;
First license creation module, if being later than for current time or the timestamp information of first licensing, creation
One new the second licensing corresponding with the latest edition configuration information, the timestamp information of second licensing be to
The business to be configured server adds prefixed time interval at the time of sending the latest edition configuration information;
Second license creation module creates one if the timestamp information for current time earlier than first licensing
New third licensing corresponding with the latest edition configuration information simultaneously stops configuration update, the time of the third licensing
Stab the timestamp information that information is first licensing.
11. device according to claim 10, which is characterized in that in the business to be configured server operation have one or
Multiple service program examples to be configured;The preset quantity is less than the clothes to be configured run in the business to be configured server
The total quantity of business property program example;
The configuration updates request receiving module, asks specifically for receiving the configuration update that service program example to be configured is sent
It asks;
The first latest edition configuration information sending module, if being later than specifically for current time or being permitted equal to described first
The timestamp information that can be demonstrate,proved sends the latest edition configuration information to the service program example to be configured, so that described
Service program example to be configured carries out configuration update;
First license creation module, specifically for creation one new corresponding with the latest edition configuration information the
Two licensings, the timestamp information of second licensing are to send the latest edition to the service program example to be configured
Prefixed time interval is added at the time of this configuration information.
12. device according to claim 11, which is characterized in that it includes the clothes to be configured in request that the configuration, which updates,
The current version configuration information of business property program example;
The first licensing extraction module includes: version judging submodule and the first extracting sub-module;
The version judging submodule is matched for judging whether there is higher than the service program example current version to be configured
The latest edition configuration information set;
First extracting sub-module, for when in the presence of most higher than the service program example current-configuration version to be configured
When new version configuration information, extracts preset quantity corresponding with the latest edition configuration information and permitted with timestamp information
The first licensing in can demonstrate,proving.
13. device according to claim 11 or 12, which is characterized in that corresponding with the latest edition configuration information to be permitted
Can demonstrate,prove with same expired time, when reaching the expired time, it is each it is corresponding with the latest edition configuration information permitted
It can demonstrate,prove deleted;
The first licensing extraction module includes: corresponding licensing judging submodule, latest edition configuration information transmission submodule
Block and the second extracting sub-module;
The corresponding licensing judging submodule, for judging that current time whether there is and the latest edition configuration information pair
The licensing answered;
The latest edition configuration information sending submodule is permitted for corresponding with the latest edition configuration information if it does not exist
It can demonstrate,prove, the latest edition configuration information be sent to the service program example to be configured, so that the service to be configured
Program example carries out configuration update;
Second extracting sub-module, for licensing corresponding with the latest edition configuration information if it exists, extraction and institute
The corresponding preset quantity pre-established of latest edition configuration information is stated to be permitted with first in the licensing of timestamp information
It can demonstrate,prove.
14. device according to claim 11 or 12, which is characterized in that the configuration system further include: cache server;
The preset quantity corresponding with latest edition configuration information is stored in the caching clothes with the licensing of timestamp information
It is engaged in device;
The first licensing extraction module is specifically used for sending license obtainment request to the cache server, so that institute
It states cache server and extracts the preset quantity pre-established corresponding with the latest edition configuration information with timestamp letter
The first licensing in the licensing of breath, and first licensing is returned to the configuration server;
First license creation module is specifically used for sending the first newly-built license request to the cache server, with
The cache server is set to create new second licensing corresponding with the latest edition configuration information, described second is permitted
The timestamp information that can be demonstrate,proved is to add at the time of sending the latest edition configuration information to the service program example to be configured
Upper prefixed time interval;
Second license creation module, specifically for sending the second newly-built license request to the cache server and stopping
Only configuration updates, so that the cache server creates new third corresponding with a latest edition configuration information license
Card, the timestamp information of the third licensing are the timestamp information of first licensing.
15. device according to claim 14, which is characterized in that it is preparatory that the licensing is stored in the cache server
It is described preferential when reaching the Priority Queues expired time in the Priority Queues with Priority Queues expired time established
Queue is deleted by the cache server;
The first licensing extraction module is specifically used for sending to the cache server and matches confidence for the latest edition
The license obtainment request of breath, so that the cache server judges that current time whether there is with the latest edition with confidence
Cease corresponding Priority Queues;If it exists, it extracts in the Priority Queues pre-established corresponding with the latest edition configuration information
The first licensing, and return to first licensing to the configuration server;If it does not exist, Xiang Suoshu configuration server is sent out
Send the notice there is no Priority Queues corresponding with the latest edition configuration information;
First license creation module is specifically used for sending the first newly-built license request to the cache server, with
Make the cache server created in the Priority Queues one it is new with the latest edition configuration information corresponding second
Licensing, the timestamp information of second licensing are to send the latest edition to the service program example to be configured
Prefixed time interval is added at the time of configuration information;
Second license creation module, specifically for sending the second newly-built license request to the cache server and stopping
Only configuration updates, so that the cache server create one in the Priority Queues new matches confidence with the latest edition
Corresponding third licensing is ceased, the timestamp information of the third licensing is the timestamp information of first licensing;
Described device further include:
Second latest edition configuration information sending module, for receive that the cache server sends there is no with it is newest
After the notice of the corresponding Priority Queues of version configuration information, the latest edition is sent to the service program example to be configured
Configuration information, so that the service program example to be configured carries out configuration update.
16. a kind of configuration updating device, which is characterized in that applied to the cache server in configuration system, the configuration system,
Further include: configuration server is provided with multiple service servers of the service program example of same service function, institute with operation
Stating device includes:
License obtainment request receiving module, the license obtainment request sent for receiving the configuration server are described to be permitted
It is when the configuration server receives the configuration that service program example to be configured is sent and updates request that acquisition request, which can be demonstrate,proved,
It sends, the service program example to be configured is to transport in the business to be configured server in the multiple service server
The service program example that capable pending configuration updates;
Second licensing extraction module has timestamp letter for extracting preset quantity corresponding with latest edition configuration information
The first licensing in the licensing of breath;First licensing is that timestamp information is minimum in the preset quantity licensing
Licensing;When the initial time stamp information of the preset quantity licensing is the generation of the latest edition configuration information
Between;The preset quantity is less than the total quantity of the service program example to be configured;Described and latest edition configuration information pair
Licensing of the preset quantity with timestamp information answered is generated and is saved when obtaining the latest version information;
Licensing sending module, for sending first licensing to the configuration server, so that the configuration server
If the timestamp information current time for judging whether current time is later than perhaps equal to first licensing is later than or is equal to
The timestamp information of first licensing sends the latest edition to the service program example to be configured and matches confidence
Breath so that the service program example to be configured carries out configuration update, and sends first and creates and permitted to the cache server
Request can be demonstrate,proved, if current time earlier than the timestamp information of first licensing, stops configuration and updates and take to the caching
Business device sends the second newly-built license request;
Third license creation module, for when receiving the first newly-built license request that the configuration server is sent,
One new the second licensing corresponding with the latest edition configuration information of creation, the timestamp information of second licensing
To add prefixed time interval at the time of sending the latest edition configuration information to the service program example to be configured;
4th license creation module, for when receiving the second newly-built license request that the configuration server is sent,
One new third licensing corresponding with the latest edition configuration information of creation, the timestamp information of the third licensing
For the timestamp information of first licensing.
17. device according to claim 16, which is characterized in that
The second licensing extraction module, specifically for extracting pre-establish with the latest edition configuration information corresponding
The first licensing in Priority Queues, first licensing are the licensing positioned at the Priority Queues stem, described preferential
It include licensing of the preset quantity with timestamp information in queue;
The third license creation module, specifically for when the first newly-built licensing for receiving the configuration server transmission
When request, new second licensing corresponding with the latest edition configuration information, institute are created in the Priority Queues
The timestamp information for stating the second licensing is to send the latest edition configuration information to the service program example to be configured
At the time of add prefixed time interval;
4th license creation module, specifically for when the second newly-built licensing for receiving the configuration server transmission
When request, a new third licensing corresponding with the latest edition configuration information, institute are created in the Priority Queues
The timestamp information for stating third licensing is the timestamp information of first licensing.
18. device according to claim 17, which is characterized in that the Priority Queues has Priority Queues expired time;
When reaching the Priority Queues expired time, the Priority Queues is deleted by the cache server;
The second licensing extraction module is specifically used for judging that current time whether there is and the latest edition configuration information
Corresponding Priority Queues;Priority Queues corresponding with the latest edition configuration information if it exists extracts and the latest edition
The first licensing in the corresponding Priority Queues pre-established of configuration information;
Described device further include: notice sending module;
The notice sending module, for Priority Queues corresponding with the latest edition configuration information if it does not exist, Xiang Suoshu
Configuration server sends the notice that Priority Queues corresponding with the latest edition configuration information is not present, so that the configuration takes
Device be engaged in the service program example transmission to be configured latest edition configuration information, so that the service journey to be configured
Sequence example carries out configuration update.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910317551.3A CN110113187B (en) | 2019-04-19 | 2019-04-19 | Configuration updating method and device, configuration server and configuration system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910317551.3A CN110113187B (en) | 2019-04-19 | 2019-04-19 | Configuration updating method and device, configuration server and configuration system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110113187A true CN110113187A (en) | 2019-08-09 |
CN110113187B CN110113187B (en) | 2022-03-04 |
Family
ID=67485918
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910317551.3A Active CN110113187B (en) | 2019-04-19 | 2019-04-19 | Configuration updating method and device, configuration server and configuration system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110113187B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117118830A (en) * | 2023-10-16 | 2023-11-24 | 北京持安科技有限公司 | Distributed gateway configuration method and device based on queues |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130238552A1 (en) * | 2012-03-12 | 2013-09-12 | Joseph Saib | Systems and methods for synchronizing files in a networked communication system |
US20140325683A1 (en) * | 2011-07-27 | 2014-10-30 | Microsoft Corporation | Licensing verification for application use |
CN107172169A (en) * | 2017-05-27 | 2017-09-15 | 广东欧珀移动通信有限公司 | Method of data synchronization, device, server and storage medium |
CN109218054A (en) * | 2017-07-03 | 2019-01-15 | 腾讯科技(深圳)有限公司 | Terminal dynamic configuration, respective server implementation method, device and storage medium |
CN109495532A (en) * | 2017-09-13 | 2019-03-19 | 北京京东尚科信息技术有限公司 | Client update method and device |
-
2019
- 2019-04-19 CN CN201910317551.3A patent/CN110113187B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140325683A1 (en) * | 2011-07-27 | 2014-10-30 | Microsoft Corporation | Licensing verification for application use |
US20130238552A1 (en) * | 2012-03-12 | 2013-09-12 | Joseph Saib | Systems and methods for synchronizing files in a networked communication system |
CN107172169A (en) * | 2017-05-27 | 2017-09-15 | 广东欧珀移动通信有限公司 | Method of data synchronization, device, server and storage medium |
CN109218054A (en) * | 2017-07-03 | 2019-01-15 | 腾讯科技(深圳)有限公司 | Terminal dynamic configuration, respective server implementation method, device and storage medium |
CN109495532A (en) * | 2017-09-13 | 2019-03-19 | 北京京东尚科信息技术有限公司 | Client update method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117118830A (en) * | 2023-10-16 | 2023-11-24 | 北京持安科技有限公司 | Distributed gateway configuration method and device based on queues |
CN117118830B (en) * | 2023-10-16 | 2024-01-23 | 北京持安科技有限公司 | Distributed gateway configuration method and device based on queues |
Also Published As
Publication number | Publication date |
---|---|
CN110113187B (en) | 2022-03-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101595668B (en) | Method and system for establishing a logical path between servers in a coordinated timing network | |
CN109768871A (en) | Configure method, host and the storage medium of multiple Microsoft Loopback Adapters | |
CN109218349A (en) | A kind of method and device of management server cluster | |
CN112333249B (en) | Business service system and method | |
WO2021147793A1 (en) | Data processing method, apparatus and system, electronic device and computer storage medium | |
CN104601702B (en) | Cluster remote procedure calling (PRC) method and system | |
CN105554142B (en) | The method, apparatus and system of message push | |
CN109361525B (en) | Method, device, control terminal and medium for restarting distributed deployment of multiple services | |
CN110245020B (en) | Mobile phone content forensics method and system based on multiple forensics devices | |
CN112597249A (en) | Synchronous distribution and storage method and system for service data | |
CN110781149A (en) | Method, device, equipment and storage medium for managing live broadcast room information | |
CN109547524A (en) | User behavior storage method, device, equipment and storage medium based on Physical Network | |
CN112905364A (en) | Calling method of micro service and electronic equipment | |
CN111212135A (en) | Message subscription method, device, system, electronic equipment and storage medium | |
KR101281931B1 (en) | System and method for device management security of trap management object | |
US8458725B2 (en) | Computer implemented method for removing an event registration within an event notification infrastructure | |
US20240118935A1 (en) | Pod deployment method and apparatus | |
CN101778131A (en) | Data synchronization system | |
CN110113495A (en) | Long-range control method, device, electronic equipment and the system of APP | |
CN110113187A (en) | A kind of configuration update method, device, configuration server and configuration system | |
CN114168297A (en) | Method, device, equipment and medium for scheduling collection tasks | |
CN109726988A (en) | A kind of flow engine call method, device, electronic equipment and readable storage medium storing program for executing | |
JP4516594B2 (en) | Message transmission control method, message transmission control device, and message transmission control program | |
CN115102999B (en) | DevOps system, service providing method, storage medium and electronic device | |
CN103259863B (en) | Based on the system and method that the control zookeeper of cluster serves |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |