CN106095509B - Differential variable dissemination method and device - Google Patents
Differential variable dissemination method and device Download PDFInfo
- Publication number
- CN106095509B CN106095509B CN201610443283.6A CN201610443283A CN106095509B CN 106095509 B CN106095509 B CN 106095509B CN 201610443283 A CN201610443283 A CN 201610443283A CN 106095509 B CN106095509 B CN 106095509B
- Authority
- CN
- China
- Prior art keywords
- variable
- material packet
- differential variable
- upgraded
- differential
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
Abstract
The invention discloses a kind of Differential variable dissemination method and devices, which comprises obtains material packet version information, material packet version information to be upgraded is determined in the material packet version information;Material packet to be upgraded is determined according to the material packet version information to be upgraded, and the replacement that the material packet to be upgraded carries out Differential variable is handled, Differential variable material packet is obtained;The publication operation of the Differential variable material packet is executed in target machine based on the Differential variable material packet.The present invention realizes in each machine material packet in same subsystem in the issuing process of configuration file, does not need user and issues manually, simplifies the publication process of configuration file in each machine material packet in same subsystem;The variate-value as corresponding to configuration file in Differential variable material packet does not need user and is manually entered, and ensure that the accuracy of configuration file generated in each machine Differential variable material packet in same subsystem.
Description
Technical field
The present invention relates to network communication technology field more particularly to a kind of Differential variable dissemination methods and device.
Background technique
During application deployment, it will usually same apply occur and need different application configurations in different machines
Value, this Configuration Values can obtain from external system, perhaps be inputted by user's real-time perfoming or there are the need of data encryption
It asks, which is just Differential variable.
For such Differential variable, need user that the configuration file of each machine is ready in advance, it then again will be each
Configuration file corresponding to machine is published in each machine.A material packet is such as published to two machines of IP1 and IP2, wherein
There is a a.conf file inside A material packet, which includes a variable CONN_IP, which is X in the value of IP1,
It is Y in the value of IP2;In addition there is the SQL_PASS variable for representing database password.Then, publication user needs to write script pre-
This two respective configuration files of machine are first generated, are then issued again.Therefore, when issuing the configuration file of machine every time,
It requires user and pre-generates the configuration file, result in the configuration file publication too long in flow of the machine in same subsystem,
It cannot automate, and be easy error when generating the configuration file.
Summary of the invention
The main purpose of the present invention is to provide a kind of Differential variable dissemination method and devices, it is intended to solve existing same
The publication too long in flow of configuration file in each machine material packet in subsystem is easy error when generating the configuration file
The technical issues of.
To achieve the above object, a kind of Differential variable dissemination method provided by the invention, the Differential variable dissemination method
Include:
Material packet version information is obtained, material packet version information to be upgraded is determined in the material packet version information;
Material packet to be upgraded is determined according to the material packet version information to be upgraded, by the material packet to be upgraded
The replacement processing for carrying out Differential variable, obtains Differential variable material packet;
The publication operation of the Differential variable material packet is executed in target machine based on the Differential variable material packet.
Preferably, described that material packet to be upgraded is determined according to the material packet version information to be upgraded, will it is described to
The step of material packet of upgrading carries out the replacement processing of Differential variable, obtains Differential variable material packet include:
Material packet to be upgraded is determined according to the material packet version information to be upgraded;
The material packet to be upgraded is decompressed, extracts Differential variable in the material packet to be upgraded after decompression;
According to variate-value corresponding to the naming rule of the Differential variable acquisition Differential variable, replaced with the variate-value
Corresponding variable in the material packet to be upgraded is changed, Differential variable material packet is obtained.
Preferably, the Differential variable includes CMDB variable, system variable, the in plain text change that CMDB configuration management system provides
Amount and ciphertext variable.
Preferably, the naming rule of the CMDB variable is [@subsystemid-resource], wherein described
Subsystemid indicates that the subsystem object of system to be upgraded, the resource indicate the subsystem object in CMDB
The resource that can be inquired;
The system variable is the variable defined inside the delivery system.
Preferably, described that material packet to be upgraded is determined according to the material packet version information to be upgraded, will it is described to
After the step of material packet of upgrading carries out the replacement processing of Differential variable, obtains Differential variable material packet, further includes:
The Differential variable material packet is sent in material services device, and sends acquisition instruction to target machine, for
The target machine obtains the Differential variable material packet according to the acquisition instruction from the material services device.
In addition, to achieve the above object, the present invention also provides a kind of Differential variable distributing device, the Differential variable publication
Device includes:
Module is obtained, for obtaining material packet version information, object to be upgraded is determined in the material packet version information
Expect packet version information;
Replacement module will be described for determining material packet to be upgraded according to the material packet version information to be upgraded
Material packet to be upgraded carries out the replacement processing of Differential variable, obtains Differential variable material packet;
Release module, for executing the Differential variable material packet in target machine based on the Differential variable material packet
Publication operation.
Preferably, the replacement module includes:
Determination unit, for determining material packet to be upgraded according to the material packet version information to be upgraded;
Extraction unit, the material Bao Zhongti to be upgraded for decompressing the material packet to be upgraded, after decompression
Take Differential variable;
Replacement unit, for according to the naming rule of the Differential variable obtain the Differential variable corresponding to variate-value,
Corresponding variable in the material packet to be upgraded is replaced with the variate-value, obtains Differential variable material packet.
Preferably, the Differential variable includes CMDB variable, system variable, the in plain text change that CMDB configuration management system provides
Amount and ciphertext variable.
Preferably, the naming rule of the CMDB variable is [@subsystemid-resource], wherein described
Subsystemid indicates that the subsystem object of system to be upgraded, the resource indicate the subsystem object in CMDB
The resource that can be inquired;
The system variable is the variable defined inside the delivery system.
Preferably, the Differential variable distributing device further include:
Sending module, for the Differential variable material packet to be sent in material services device, and send acquisition instruction to
Target machine, so that the target machine obtains the Differential variable object according to the acquisition instruction from the material services device
Material packet.
The present invention is handled by the replacement that the material packet to be upgraded is carried out Differential variable, obtains Differential variable material
Packet executes the publication operation of the Differential variable material packet in target machine.Realize each machine in same subsystem
It in implements material packet in the issuing process of configuration file, does not need user and issues manually, simplify each machine in same subsystem
The publication process of configuration file in implements material packet;The variate-value as corresponding to configuration file in Differential variable material packet does not need
User is manually entered, therefore ensure that configuration file generated in each machine Differential variable material packet in same subsystem
Accuracy.
Detailed description of the invention
Fig. 1 is the flow diagram of the first embodiment of Differential variable dissemination method of the present invention;
Fig. 2 is the flow diagram of the second embodiment of Differential variable dissemination method of the present invention;
Fig. 3 is the functional block diagram of the first embodiment of Differential variable distributing device of the present invention;
Fig. 4 is the functional block diagram of the second embodiment of Differential variable distributing device of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of Differential variable dissemination method.
Referring to Fig.1, Fig. 1 is the flow diagram of Differential variable dissemination method first embodiment of the present invention.
In the present embodiment, the Differential variable dissemination method includes:
Step S10 obtains material packet version information, and material packet version to be upgraded is determined in the material packet version information
This information;
Delivery system in test environment obtains what material services device was stored from the material services device in test environment
The version information of all material packets determines the version information of material packet to be upgraded in the material packet version information.Its
In, material services device is the service for storing material packet, can provide FTP (File Transfer Protocol, file transmission association
View) interface etc..When the compiled material packet of research staff, and when the material packet is by testing and version number being determined, by the object
Material is wrapped in the material services device reached in test environment, and the material packet includes program, configuration information, data and script etc..
When the material services device in the test environment receives the material packet of research staff's upload, the material packet is stored.It needs
Illustrate, research staff can't wrap compiled material in the material services device reached in production environment.
It should be noted that the delivery system mainly realizes the function of automation publication.Test environment and production ring
All there is material server and delivery system in border, and in the material services device and the production environment in the test environment
The function of material services device and delivery system is identical.
Step S20 determines material packet to be upgraded according to the material packet version information to be upgraded, will be described to be upgraded
Material packet carry out Differential variable replacement processing, obtain Differential variable material packet;
When the delivery system of the test environment obtains the material packet version information to be upgraded, the test environment
Delivery system material packet to be upgraded is determined according to the material packet version information to be upgraded, by the material to be upgraded
Packet carries out the replacement processing of Differential variable, obtains Differential variable material packet.
Further, the step S20 includes:
Step a determines material packet to be upgraded according to the material packet version information to be upgraded;
Step b decompresses the material packet to be upgraded, extracts difference in the material packet to be upgraded after decompression and become
Amount;
Step c, according to variate-value corresponding to the naming rule of the Differential variable acquisition Differential variable, with the change
Magnitude replaces corresponding variable in the material packet to be upgraded, obtains Differential variable material packet.
When the delivery system of the test environment obtains the material packet version information to be upgraded, the test environment
Delivery system material packet to be upgraded is determined according to the material packet version information to be upgraded.When in the test environment
When delivery system obtains the material packet to be upgraded, the delivery system in the test environment decompresses the material to be upgraded
Packet, the material packet to be upgraded after scanning the decompression obtain institute according to naming rule corresponding to the Differential variable
State variate-value corresponding to Differential variable.When the delivery system in the test environment obtains change corresponding to the Differential variable
When magnitude, the delivery system in the test environment is replaced difference described in the material packet to be upgraded with the variate-value and is become
The corresponding variable of amount, obtains the material packet of Differential variable.
It should be noted that the Differential variable includes but is not limited to CMDB (Configuration Management
Database, configuration management system) provide CMDB variable, system variable, plaintext variable and ciphertext variable.It is deposited in the CMDB
Various configuration informations have been stored up, and provide query interface to external system.The CMDB variable is to be related to external system relevant configuration
Information, the content of variable is stored in CMDB, and the CMDB variable includes difference caused by distributed structure/architecture deployment, such as
The IP (Internet Protocol, the agreement interconnected between network) of DCN (Data Center Node) node number, machine
Location etc. further includes the system information of external connection, such as the IP of database and messaging bus.The system variable is the publication
System oneself definition, it is supplied to the variable that user uses.The plaintext variable is that user is customized, in publication Differential variable
When material packet, the variable that is inputted in real time by user.The ciphertext variable is that user is customized, in publication Differential variable material packet
When, the variable inputted in real time by user, but due to being related to password, cannot occur in clear text manner.The DCN is responsible for
Client traffic processing, application system needed for running business handling have stable account capacity, can be according to the need of portfolio
It wants, it is quickly extending transversely by the quantity for increasing DCN.
The principle of the naming rule of the CMDB variable is:, can be by the variable when obtaining the variable name of the variable
Variable name is converted into the querying condition of CMDB.For each variable, the query result of CMDB should be under one group of IP
Key-value pairs, key is variable name, and value is then corresponding specific variate-value, such as: MAP < IP, MAP < VARIABLE_
NAME, VARIABLE_VALUE > >, expression is that every IP has corresponding variable name, and each variable name has corresponding variable
Value, i.e. mapping relations between expression IP, variable name and variate-value three.The naming rule of the CMDB variable are as follows: [@
Subsystemid-resource], wherein the subsystemid indicates the subsystem object of the system to be upgraded, uses
Be subsystem in the delivery system baseline table IP, the resource indicates that the subsystem object can be in CMDB
The resource inquired, such as:
VIRTUAL_DCN: the dummy node number of Query Subsystem;
DCN: the byte number of Query Subsystem;
TDSQL_VIP: the virtual ip address of the TDSQL database of Query Subsystem;
TDSQL_PORT: the TDSQL database side slogan of Query Subsystem;
DOMAIN_APP_IPS: all IP address of the APP application of Query Subsystem home domain;
RMB_VIP: the IP address for the messaging bus that Query Subsystem calls;
RMB_PORT: the port numbers for the messaging bus that Query Subsystem calls;
APP_VIP: the virtual ip address of the APP application of Query Subsystem;
APP_PORT: the port numbers of the APP application of Query Subsystem.
Specific embodiment is that specific embodiment is, when ID corresponding to subsystem is #6036, corresponding to #6036
DCN node number be named as [@6036-VIRTUAL_DCN], indicate the virtual DCN node number of this subsystem;DCN node
The IP address of APP corresponding to number are as follows: [@6036-DOMAIN_APP_IPS] indicates all APP of subsystem under DCN node number
Multiple IP address are separated when there are multiple IP address with space by IP address.Wherein, the subsystem is publication system
The minimum unit of Differential variable material packet can be issued in system.
Variable corresponding to the system variable is the variable predefined inside delivery system, do not need external system or
Person user actively provides, set the naming rule of the system variable to [!passname];As [!DEPLOY_PATH], table
Show the deployment path of current sub-system.The naming rule of the ciphertext variable is [%passname], such as [%GMP_PASS], table
Show the database password of this subsystem.The plaintext variable needs user to input as ciphertext variable, but with it is described close
Unlike literary variable, the plaintext variable does not need to encrypt, and when carrying out the replacement of Differential variable, directly carries out replacing for plaintext
It changes.The naming rule of the plaintext variable are as follows: [#confname] such as [#GMP_ACONF] indicates that the A of this subsystem of GMP becomes
The configuration of amount.
As user certain need test environment in two target machines of IP1 and IP2 in carry out using deployment when, when need
When Differential variable to be processed is the DCN node number and a ciphertext variable inputted when issuing of subsystem (ID 6036),
User in the corresponding CMDB of DCN node number typing of subsystem managing.Carrying out the Differential variable material packet configuration process
In, delivery system obtains [%SQL_PASS] from acquisition [@6036_DCN] in CMDB and from the input of user as difference
Mutation amount is written in the configuration file of the Differential variable material packet, and Differential variable material packet is sent to the test environment
In middle material services device.User configures the configuration file road containing the Differential variable in the delivery system in the test environment
Diameter:
For [6036_DCN], the delivery system of the test environment is sent to the interface of the CMDB is requested:
It is described when the CMDB is by request transmitted by its interface to the delivery system in the test environment
The result that CMDB is returned are as follows:
Show that the delivery system in the test environment uses 101 and 102 replacement the two targets of IP1 and IP2 respectively
Variable corresponding to DCN byte number in machine.
For [%SQL_PASS], the delivery system in the test environment pops up a dialog box in front end and prompts user
Input the value of SQL_PASS.When the value for the SQL_PASS that the delivery system in the test environment receives user's input, institute
The delivery system stated in test environment encrypts the value of the SQL_PASS.Such as when the value of the SQL_PASS of user's input is
When 123456, the value that the delivery system in the test environment obtains encrypted SQL_PASS is
c97c92660f68113b74.When the delivery system in the test environment obtains the value of encrypted SQL_PASS, by institute
The value for stating SQL_PASS after encrypting replaces the value of original SQL_PASS, to obtain Differential variable material packet.
Step S30 executes the hair of the Differential variable material packet based on the Differential variable material packet in target machine
Cloth operation.
Hair when the delivery system in the test environment obtains the Differential variable material packet, in the test environment
Distribution system executes the hair of the Differential variable material packet based on the Differential variable material packet on the target machine of test environment
Cloth operation.The Differential variable material packet includes stopping service, file update and starting service etc. in issuing process.In file
In renewal process, will use the content in the Differential variable material, such as using in the Differential variable material packet program, match
Confidence breath, data and script etc..
It should be noted that when the material services device of the production environment gets the material packet to be upgraded, institute
It states delivery system and material services device implementation procedure in production environment and the delivery system in the test environment and material takes
The implementation procedure of business device is consistent, i.e., the delivery system and material services device in the described production environment execute step S10, step S20
With step S30, details are not described herein.
The present embodiment handles the replacement that the material packet to be upgraded carries out Differential variable, obtains Differential variable material
Packet executes the publication operation of the Differential variable material packet in target machine.Realize each machine in same subsystem
It in implements material packet in the issuing process of configuration file, does not need user and issues manually, simplify each machine in same subsystem
The publication process of configuration file in implements material packet;The variate-value as corresponding to configuration file in Differential variable material packet does not need
User is manually entered, therefore ensure that configuration file generated in each machine Differential variable material packet in same subsystem
Accuracy.Unified in Differential variable material packet generated it can safeguard variate-value corresponding to Differential variable simultaneously,
History etc. is changed in Differential variable material packet, facilitates extension of the user to Differential variable material packet.
It is the flow diagram of the second embodiment of Differential variable dissemination method of the present invention referring to Fig. 2, Fig. 2, is based on first
Embodiment proposes the second embodiment of Differential variable dissemination method of the present invention.
In the present embodiment, the Differential variable dissemination method further include:
The Differential variable material packet is sent in material services device, and sends acquisition instruction to target machine by step S40
Device, so that the target machine obtains the Differential variable material packet according to the acquisition instruction from the material services device.
Hair when the delivery system in the test environment obtains the Differential variable material packet, in the test environment
The Differential variable material packet is sent in the material services device in test environment by distribution system, and sends acquisition instruction to described
Test the target machine in environment.When the target machine in the test environment receives the delivery system in the test environment
When transmitted acquisition instruction, the target machine in the test environment is according to the acquisition instruction in the test environment
Material services device obtains the Differential variable material packet.
Further, when the delivery system in test environment executes the difference on the target machine of the test environment
After the publication operation of variable material packet, the material services device in production environment is obtained from the material services device of the test environment
By the material packet of test, and by the material packet automatic synchronization by test into other production environments.Each production ring
There is the delivery system of the material packet of oneself in border.
It should be noted that in the production environment and the test environment, there are identical target machines, therefore, described
Step S40 can also be executed in the production environment, implementation procedure of the step S40 in the production environment in institute
The implementation procedure stated in test environment is consistent, and details are not described herein.
By making Differential variable material packet obtained by target machine, delivery system controls target machine, makes to survey the present embodiment
Differential variable material packet publication operation is executed in target machine in test ring border.When determining that the Differential variable material packet testing
After successfully issuing in target machine in environment, the material services device in production environment is again from the material services device of test environment
The middle material packet obtained through test, executes the publication process of subsequent material packet, improves material packet in production environment and issues
Success rate.
The present invention further provides a kind of Differential variable distributing devices.
It is the functional block diagram of the first embodiment of Differential variable distributing device of the present invention referring to Fig. 3, Fig. 3.
In the present embodiment, the Differential variable distributing device includes:
Module 10 is obtained, for obtaining material packet version information, determination is to be upgraded in the material packet version information
Material packet version information;
Delivery system in test environment obtains what material services device was stored from the material services device in test environment
The version information of all material packets determines the version information of material packet to be upgraded in the material packet version information.Its
In, material services device is the service for storing material packet, can provide FTP (File Transfer Protocol, file transmission association
View) interface etc..When the compiled material packet of research staff, and when the material packet is by testing and version number being determined, by the object
Material is wrapped in the material services device reached in test environment, and the material packet includes program, configuration information, data and script etc..
When the material services device in the test environment receives the material packet of research staff's upload, the material packet is stored.It needs
Illustrate, research staff can't wrap compiled material in the material services device reached in production environment.
It should be noted that the delivery system mainly realizes the function of automation publication.Test environment and production ring
All there is material server and delivery system in border, and in the material services device and the production environment in the test environment
The function of material services device and delivery system is identical.
Replacement module 20, for determining material packet to be upgraded according to the material packet version information to be upgraded, by institute
The replacement processing that material packet to be upgraded carries out Differential variable is stated, Differential variable material packet is obtained;
When the delivery system of the test environment obtains the material packet version information to be upgraded, the test environment
Delivery system material packet to be upgraded is determined according to the material packet version information to be upgraded, by the material to be upgraded
Packet carries out the replacement processing of Differential variable, obtains Differential variable material packet.
Further, the replacement module 20 includes:
Determination unit, for determining material packet to be upgraded according to the material packet version information to be upgraded;
Extraction unit, the material Bao Zhongti to be upgraded for decompressing the material packet to be upgraded, after decompression
Take Differential variable;
Replacement unit, for according to the naming rule of the Differential variable obtain the Differential variable corresponding to variate-value,
Corresponding variable in the material packet to be upgraded is replaced with the variate-value, obtains Differential variable material packet.
When the delivery system of the test environment obtains the material packet version information to be upgraded, the test environment
Delivery system material packet to be upgraded is determined according to the material packet version information to be upgraded.When in the test environment
When delivery system obtains the material packet to be upgraded, the delivery system in the test environment decompresses the material to be upgraded
Packet, the material packet to be upgraded after scanning the decompression obtain institute according to naming rule corresponding to the Differential variable
State variate-value corresponding to Differential variable.When the delivery system in the test environment obtains change corresponding to the Differential variable
When magnitude, the delivery system in the test environment is replaced difference described in the material packet to be upgraded with the variate-value and is become
The corresponding variable of amount, obtains the material packet of Differential variable.
It should be noted that the Differential variable includes but is not limited to CMDB (Configuration Management
Database, configuration management system) provide CMDB variable, system variable, plaintext variable and ciphertext variable.It is deposited in the CMDB
Various configuration informations have been stored up, and provide query interface to external system.The CMDB variable is to be related to external system relevant configuration
Information, the content of variable is stored in CMDB, and the CMDB variable includes difference caused by distributed structure/architecture deployment, such as
The IP (Internet Protocol, the agreement interconnected between network) of DCN (Data Center Node) node number, machine
Location etc. further includes the system information of external connection, such as the IP of database and messaging bus.The system variable is the publication
System oneself definition, it is supplied to the variable that user uses.The plaintext variable is that user is customized, in publication Differential variable
When material packet, the variable that is inputted in real time by user.The ciphertext variable is that user is customized, in publication Differential variable material packet
When, the variable inputted in real time by user, but due to being related to password, cannot occur in clear text manner.The DCN is responsible for
Client traffic processing, application system needed for running business handling have stable account capacity, can be according to the need of portfolio
It wants, it is quickly extending transversely by the quantity for increasing DCN.
The principle of the naming rule of the CMDB variable is:, can be by the variable when obtaining the variable name of the variable
Variable name is converted into the querying condition of CMDB.For each variable, the query result of CMDB should be under one group of IP
Key-value pairs, key is variable name, and value is then corresponding specific variate-value, such as: MAP < IP, MAP < VARIABLE_
NAME, VARIABLE_VALUE > >, expression is that every IP has corresponding variable name, and each variable name has corresponding variable
Value, i.e. mapping relations between expression IP, variable name and variate-value three.The naming rule of the CMDB variable are as follows: [@
Subsystemid-resource], wherein the subsystemid indicates the subsystem object of the system to be upgraded, uses
Be subsystem in the delivery system baseline table IP, the resource indicates that the subsystem object can be in CMDB
The resource inquired, such as:
VIRTUAL_DCN: the dummy bytes number of Query Subsystem;
DCN: the byte number of Query Subsystem;
TDSQL_VIP: the virtual ip address of the TDSQL database of Query Subsystem;
TDSQL_PORT: the TDSQL database side slogan of Query Subsystem;
DOMAIN_APP_IPS: all IP address of the APP application of Query Subsystem home domain;
RMB_VIP: the IP address for the messaging bus that Query Subsystem calls;
RMB_PORT: the port numbers for the messaging bus that Query Subsystem calls;
APP_VIP: the virtual ip address of the APP application of Query Subsystem;
APP_PORT: the port numbers of the APP application of Query Subsystem.
Specific embodiment is that specific embodiment is, when ID corresponding to subsystem is #6036, corresponding to #6036
DCN node number be named as [@6036-VIRTUAL_DCN], indicate the virtual DCN node number of this subsystem;DCN node
The IP address of APP corresponding to number are as follows: [@6036-DOMAIN_APP_IPS] indicates all APP of subsystem under DCN node number
Multiple IP address are separated when there are multiple IP address with space by IP address.Wherein, the subsystem is publication system
The minimum unit of Differential variable material packet can be issued in system.
Variable corresponding to the system variable is the variable predefined inside delivery system, do not need external system or
Person user actively provides, set the naming rule of the system variable to [!passname];As [!DEPLOY_PATH], table
Show the deployment path of current sub-system.The naming rule of the ciphertext variable is [%passname], such as [%GMP_PASS], table
Show the database password of this subsystem.The plaintext variable needs user to input as ciphertext variable, but with it is described close
Unlike literary variable, the plaintext variable does not need to encrypt, and when carrying out the replacement of Differential variable, directly carries out replacing for plaintext
It changes.The naming rule of the plaintext variable are as follows: [#confname] such as [#GMP_ACONF] indicates that the A of this subsystem of GMP becomes
The configuration of amount.
As user certain need test environment in two target machines of IP1 and IP2 in carry out using deployment when, when need
When Differential variable to be processed is the DCN node number and a ciphertext variable inputted when issuing of subsystem (ID 6036),
User in the corresponding CMDB of DCN node number typing of subsystem managing.Carrying out the Differential variable material packet configuration process
In, delivery system obtains [%SQL_PASS] from acquisition [@6036_DCN] in CMDB and from the input of user as difference
Mutation amount is written in the configuration file of the Differential variable material packet, and Differential variable material packet is sent to the test environment
In middle material services device.User configures the configuration file road containing the Differential variable in the delivery system in the test environment
Diameter:
For [6036_DCN], the delivery system of the test environment is sent to the interface of the CMDB is requested:
It is described when the CMDB is by request transmitted by its interface to the delivery system in the test environment
The result that CMDB is returned are as follows:
Show that the delivery system in the test environment uses 101 and 102 replacement the two targets of IP1 and IP2 respectively
Variable corresponding to DCN byte number in machine.
For [%SQL_PASS], the delivery system in the test environment pops up a dialog box in front end and prompts user
Input the value of SQL_PASS.When the value for the SQL_PASS that the delivery system in the test environment receives user's input, institute
The delivery system stated in test environment encrypts the value of the SQL_PASS.Such as when the value of the SQL_PASS of user's input is
When 123456, the value that the delivery system in the test environment obtains encrypted SQL_PASS is
c97c92660f68113b74.When the delivery system in the test environment obtains the value of encrypted SQL_PASS, by institute
The value for stating SQL_PASS after encrypting replaces the value of original SQL_PASS, to obtain Differential variable material packet.
Release module 30, for executing the Differential variable material in target machine based on the Differential variable material packet
The publication of packet operates.
Hair when the delivery system in the test environment obtains the Differential variable material packet, in the test environment
Distribution system executes the hair of the Differential variable material packet based on the Differential variable material packet on the target machine of test environment
Cloth operation.The Differential variable material packet includes stopping service, file update and starting service etc. in issuing process.In file
In renewal process, will use the content in the Differential variable material, such as using in the Differential variable material packet program, match
Confidence breath, data and script etc..
It should be noted that when the material services device of the production environment gets the material packet to be upgraded, institute
It states delivery system and material services device implementation procedure in production environment and the delivery system in the test environment and material takes
The implementation procedure of business device is consistent (all to be existed in the test environment and the production environment and obtains module 10,20 and of replacement module
Release module 30), details are not described herein.
The present embodiment handles the replacement that the material packet to be upgraded carries out Differential variable, obtains Differential variable material
Packet executes the publication operation of the Differential variable material packet in target machine.Realize each machine in same subsystem
It in implements material packet in the issuing process of configuration file, does not need user and issues manually, simplify each machine in same subsystem
The publication process of configuration file in implements material packet;The variate-value as corresponding to configuration file in Differential variable material packet does not need
User is manually entered, therefore ensure that configuration file generated in each machine Differential variable material packet in same subsystem
Accuracy.Unified in Differential variable material packet generated it can safeguard variate-value corresponding to Differential variable simultaneously,
History etc. is changed in Differential variable material packet, facilitates extension of the user to Differential variable material packet.
Referring to Fig. 4, Fig. 4 is the functional block diagram of the second embodiment of Differential variable distributing device of the present invention, is based on
First embodiment proposes the second embodiment of Differential variable distributing device of the present invention.
In the present embodiment, the Differential variable distributing device further include:
Sending module 40 for the Differential variable material packet to be sent in material services device, and sends acquisition instruction
To target machine, so that the target machine obtains the Differential variable from the material services device according to the acquisition instruction
Material packet.
Hair when the delivery system in the test environment obtains the Differential variable material packet, in the test environment
The Differential variable material packet is sent in the material services device in test environment by distribution system, and sends acquisition instruction to described
Test the target machine in environment.When the target machine in the test environment receives the delivery system in the test environment
When transmitted acquisition instruction, the target machine in the test environment is according to the acquisition instruction in the test environment
Material services device obtains the Differential variable material packet.
Further, when the delivery system in test environment executes the difference on the target machine of the test environment
After the publication operation of variable material packet, the material services device in production environment is obtained from the material services device of the test environment
By the material packet of test, and by the material packet automatic synchronization by test into other production environments.Each production ring
There is the delivery system of the material packet of oneself in border.
It should be noted that in the production environment and the test environment, there are identical target machine, i.e., the described hairs
Send module 40 there are in the test environment, there is also in the production environment.
By making Differential variable material packet obtained by target machine, delivery system controls target machine, makes to survey the present embodiment
Differential variable material packet publication operation is executed in target machine in test ring border.When determining that the Differential variable material packet testing
After successfully issuing in target machine in environment, the material services device in production environment is again from the material services device of test environment
The middle material packet obtained through test, executes the publication process of subsequent material packet, improves material packet in production environment and issues
Success rate.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.Pass through above embodiment party
The description of formula, it is required general that those skilled in the art can be understood that above-described embodiment method can add by software
The mode of hardware platform is realized, naturally it is also possible to which by hardware, but in many cases, the former is more preferably embodiment.It is based on
Such understanding, substantially the part that contributes to existing technology can be with software product in other words for technical solution of the present invention
Form embody, which is stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including
Some instructions are used so that a terminal device (can be mobile phone, computer, server or the network equipment etc.) executes this hair
Method described in bright each embodiment.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (8)
1. a kind of Differential variable dissemination method, which is characterized in that the Differential variable dissemination method includes:
Material packet version information is obtained, material packet version information to be upgraded is determined in the material packet version information;
Material packet to be upgraded is determined according to the material packet version information to be upgraded, decompresses the material packet to be upgraded,
Differential variable is extracted in the material packet to be upgraded after decompression;
According to variate-value corresponding to the naming rule of the Differential variable acquisition Differential variable, institute is replaced with the variate-value
Corresponding variable in material packet to be upgraded is stated, Differential variable material packet is obtained;
The publication operation of the Differential variable material packet is executed in target machine based on the Differential variable material packet.
2. Differential variable dissemination method as described in claim 1, which is characterized in that the Differential variable includes CMDB configuration pipe
CMDB variable, system variable, plaintext variable and the ciphertext variable that reason system provides.
3. Differential variable dissemination method as claimed in claim 2, which is characterized in that the naming rule of the CMDB variable is [@
Subsystemid-resource], wherein the subsystemid indicates the subsystem object of system to be upgraded, described
Resource indicates the resource that the subsystem object can inquire in CMDB;
The system variable is the variable defined inside the delivery system.
4. Differential variable dissemination method as described in any one of claims 1 to 3, which is characterized in that described according to the difference
The naming rule of variable obtains variate-value corresponding to the Differential variable, replaces the material packet to be upgraded with the variate-value
In corresponding variable, after the step of obtaining Differential variable material packet, further includes:
The Differential variable material packet is sent in material services device, and sends acquisition instruction to target machine, for described
Target machine obtains the Differential variable material packet according to the acquisition instruction from the material services device.
5. a kind of Differential variable distributing device, which is characterized in that the Differential variable distributing device includes:
Module is obtained, for obtaining material packet version information, material packet to be upgraded is determined in the material packet version information
Version information;
Replacement module, for determining material packet to be upgraded according to the material packet version information to be upgraded, by described wait rise
The material packet of grade carries out the replacement processing of Differential variable, obtains Differential variable material packet;
Release module, for executing the hair of the Differential variable material packet in target machine based on the Differential variable material packet
Cloth operation;
The replacement module includes:
Determination unit, for determining material packet to be upgraded according to the material packet version information to be upgraded;
Extraction unit, it is poor to extract for decompressing the material packet to be upgraded, in the material packet to be upgraded after decompression
Mutation amount;
Replacement unit uses institute for the variate-value according to corresponding to the naming rule of the Differential variable acquisition Differential variable
It states variate-value and replaces corresponding variable in the material packet to be upgraded, obtain Differential variable material packet.
6. Differential variable distributing device as claimed in claim 5, which is characterized in that the Differential variable includes CMDB configuration pipe
CMDB variable, system variable, plaintext variable and the ciphertext variable that reason system provides.
7. Differential variable distributing device as claimed in claim 6, which is characterized in that the naming rule of the CMDB variable is [@
Subsystemid-resource], wherein the subsystemid indicates the subsystem object of system to be upgraded, described
Resource indicates the resource that the subsystem object can inquire in CMDB;
The system variable is the variable defined inside the delivery system.
8. such as the described in any item Differential variable distributing devices of claim 5 to 7, which is characterized in that the Differential variable publication
Device further include:
Sending module for the Differential variable material packet to be sent in material services device, and sends acquisition instruction to target
Machine, so that the target machine obtains the Differential variable material according to the acquisition instruction from the material services device
Packet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610443283.6A CN106095509B (en) | 2016-06-20 | 2016-06-20 | Differential variable dissemination method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610443283.6A CN106095509B (en) | 2016-06-20 | 2016-06-20 | Differential variable dissemination method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106095509A CN106095509A (en) | 2016-11-09 |
CN106095509B true CN106095509B (en) | 2019-05-03 |
Family
ID=57237305
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610443283.6A Active CN106095509B (en) | 2016-06-20 | 2016-06-20 | Differential variable dissemination method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106095509B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109683911B (en) * | 2018-12-26 | 2022-03-08 | 上海金融期货信息技术有限公司 | System for realizing automatic application deployment and influence analysis |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200828913A (en) * | 2006-11-01 | 2008-07-01 | Qualcomm Inc | Sub-band dependent resource management |
CN101211310A (en) * | 2006-12-26 | 2008-07-02 | 中国电信股份有限公司 | Performance test script generation method |
CN103793328A (en) * | 2014-02-24 | 2014-05-14 | 浪潮电子信息产业股份有限公司 | Method for completing data base performance test by using automatic procedure |
CN103984573A (en) * | 2014-05-26 | 2014-08-13 | 中国工商银行股份有限公司 | Installation method and device of application program |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8990784B2 (en) * | 2013-06-28 | 2015-03-24 | International Business Machines Corporation | Determining control flow divergence due to variable value difference |
-
2016
- 2016-06-20 CN CN201610443283.6A patent/CN106095509B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200828913A (en) * | 2006-11-01 | 2008-07-01 | Qualcomm Inc | Sub-band dependent resource management |
CN101211310A (en) * | 2006-12-26 | 2008-07-02 | 中国电信股份有限公司 | Performance test script generation method |
CN103793328A (en) * | 2014-02-24 | 2014-05-14 | 浪潮电子信息产业股份有限公司 | Method for completing data base performance test by using automatic procedure |
CN103984573A (en) * | 2014-05-26 | 2014-08-13 | 中国工商银行股份有限公司 | Installation method and device of application program |
Also Published As
Publication number | Publication date |
---|---|
CN106095509A (en) | 2016-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10257142B2 (en) | Message delivery in a message system | |
US9460307B2 (en) | Managing sensitive data in cloud computing environments | |
US11936745B2 (en) | Automated platform provisioning system | |
EP2947569B1 (en) | Hybrid applications operating between on-premise and cloud platforms | |
EP2823393B1 (en) | Offline provisioning of virtual machines | |
US9485244B2 (en) | Executing an operation over file repositories located in different authentication domains using a representational state transfer (REST)-compliant client | |
CN105099761B (en) | A kind of method and system of configuration information that managing client concentratedly | |
CN109716726B (en) | Credential management in cloud-based application deployment | |
CN114025004A (en) | Method, device and equipment for processing cloud service in cloud system | |
US20120303654A1 (en) | Methods and systems to automatically extract and transport data associated with workload migrations to cloud networks | |
US20130290453A1 (en) | System and method for a connector being able to adapt to newer features introduced to a messaging provider with only configuration changes | |
CN106375486B (en) | A kind of system of cloud platform software definition DHCP service | |
CN106961429A (en) | A kind of cooperating service method towards mixing cloud computing platform | |
RO131668A2 (en) | Methods, systems and computer-readable carrier for application session sharing | |
CN110351276A (en) | Data processing method, equipment and computer readable storage medium | |
CN105071965B (en) | A kind of management system of the network equipment | |
CN112035282A (en) | API management method, device, equipment and storage medium applied to cloud platform | |
CN106095509B (en) | Differential variable dissemination method and device | |
CN113778499B (en) | Method, apparatus, device and computer readable medium for publishing services | |
WO2016155266A1 (en) | Data sharing method and device for virtual desktop | |
US8849974B2 (en) | Social network based information discovery about network data processing systems | |
US11709801B2 (en) | File-based sharing using content distributions network | |
US11436197B2 (en) | Asynchronous method for provisioning a service using file distribution technology | |
US10904295B2 (en) | Dynamically updating feature set recommendation databases | |
CN112910796A (en) | Traffic management method, apparatus, device, storage medium, and program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |