Summary of the invention
This specification embodiment provides and the regular dissemination method and device of a kind of database.
In a first aspect, this specification embodiment provides a kind of regular dissemination method of database, comprising:
Obtain rule to be released;
When the rule to be released enters gray scale publication, corresponding default check item is issued according to this gray scale, is checked
Whether this gray scale publication of the rule to be released passes through the default check item;
According to inspection result, the publication progress of the rule to be released is changed.
Second aspect, this specification embodiment provide a kind of regular distributing device of database, comprising:
Acquiring unit, for obtaining rule to be released;
Inspection unit, for being issued according to this gray scale corresponding pre- when the rule to be released enters gray scale publication
If check item, check whether this gray scale publication of the rule to be released passes through the default check item;
Changing unit changes the publication progress of the rule to be released according to inspection result.
The third aspect, this specification embodiment provide a kind of database, including memory, processor and are stored in memory
Computer program that is upper and can running on a processor, the processor realize number described in any of the above-described when executing described program
According to library regular dissemination method the step of.
Fourth aspect, this specification embodiment provide a kind of computer readable storage medium, are stored thereon with computer journey
Sequence, when which is executed by processor the step of the regular dissemination method of database described in realization any of the above-described.
This specification embodiment has the beneficial effect that:
In this specification embodiment, uses and issue corresponding default check item using this gray scale, check rule to be released
Whether this gray scale publication then according to inspection result changes the skill of the publication progress of to be released rule by presetting check item
Art scheme, the gray scale issuing process for treating issue rules are effectively checked, ensure that rule is steady in issuing process
It is qualitative, while the defect for spending a large amount of man power and materials to carry out state of the Monitoring Rules in issuing process is avoided the need for, it saves
Man power and material, also improves the efficiency of issue rules.
Specific embodiment
In order to better understand the above technical scheme, below by attached drawing and specific embodiment to this specification embodiment
Technical solution be described in detail, it should be understood that the specific features in this specification embodiment and embodiment are to this explanation
The detailed description of book embodiment technical solution, rather than the restriction to this specification technical solution, in the absence of conflict,
Technical characteristic in this specification embodiment and embodiment can be combined with each other.
Referring to Figure 1, Fig. 1 is the flow chart of the regular dissemination method for the database that this specification embodiment provides, such as Fig. 1
It is shown, this method comprises:
S102: rule to be released is obtained;It specifically, is the rule to be released for obtaining user's input, in practical application
In, the rule to be released of user's input can be obtained, herein with no restrictions by modes such as keyboard, mouse or touch screens;
S104: when rule to be released enters gray scale publication, corresponding default check item is issued according to this gray scale, is checked
Whether this gray scale publication of rule to be released is by presetting check item;Specifically, rule to be released is sent out in different gray scales
Cloth progress can correspond to different default check items, in this way, when rule to be released enters gray scale publication, it can according to this
Gray scale issues corresponding default check item, by calling each backstage to check interface, to check this gray scale of rule to be released
Whether publication is by default check item, namely checks whether rule publication is correct;
S106: according to inspection result, the publication progress of rule to be released is changed;Specifically, if inspection result show to
The publication progress of rule to be released can then be changed to enter next step gray scale by issue rules by presetting check item;If inspection
It looks into the result shows that rule to be released then can be changed to the publication progress of rule to be released to continue this ash also in monitor state
Degree publication;If inspection result shows that rule to be released is failed by any check item, by the publication progress of rule to be released
It is changed to gray scale publication failure.
Corresponding default check item is issued using this gray scale as can be seen that using, checks rule to be released this
Whether gray scale publication according to inspection result changes the technical solution of the publication progress of to be released rule by presetting check item,
The gray scale issuing process for treating issue rules is effectively checked, ensure that stability of the rule in issuing process, together
When avoid the need for the defect for spending a large amount of man power and materials to carry out state of the Monitoring Rules in issuing process, save manpower and
Material resources also improve the efficiency of issue rules.
In the following section, it will be described in detail above-mentioned technical proposal.
It should be noted that the regular dissemination method for the database that this specification embodiment provides can be applied to any sort
In database, which be can be set in one or more physical servers, herein with no restrictions.
In S102, user can input rule to be released to database by modes such as keyboard, mouse or touch screens, and
Rule to be released can be by the component that is arranged to be communicated with database, or the input provided by database itself
Unit, such database can obtain the rule to be released of user's input.
Obtained by S102 it is to be released rule after, this specification embodiment provide database regular dissemination method into
Enter S104, namely: when rule to be released enters gray scale publication, corresponding default check item is issued according to this gray scale, is checked
Whether this gray scale publication of rule to be released is by presetting check item.
Specifically, treat issue rules carry out gray scale publication when, will can by check issue rules it is corresponding
Backstage checks interface, such as by obtaining come whether judgment rule publication is correct.
In the specific implementation process, default check item may include one-time inspection item and non-disposable check item, right
During rule to be released carries out gray scale publication, whether can pass through one-time inspection item or non-with individual inspiration rule to be released
One-time inspection item, can also check whether rule to be released passes through one-time inspection item and non-disposable check item simultaneously, when
So, those skilled in the art can select suitable test mode, herein with no restrictions according to the actual situation.
In practical applications, one-time inspection item includes at least one of database auditing and caching inspection, non-once
Property inspection includes at least one of system monitoring and business monitoring.For one-time inspection item, if one-time inspection item
The value that corresponding interface returns shows normally, it is determined that the publication of rule to be released passes through one-time inspection item;For non-once
Property check item for, if not the fluctuation tendency for the value that the corresponding interface of one-time inspection item returns is less than threshold value, it is determined that
The publication of issue rules passes through non-disposable check item.It, can be with for the publication of this gray scale as preceding sections are introduced
Above-mentioned any one is individually carried out, two inspections can also be carried out simultaneously, herein with no restrictions.
After whether this gray scale publication for checking rule to be released by S104 is by default check item, this specification
The regular dissemination method for the database that embodiment provides enters S106, namely: according to inspection result, change the hair of rule to be released
Cloth progress.
Specifically, may include following two situation:
The first: is when rule to be released passes through one-time inspection item and/or non-disposable check item, by rule to be released
Publication progress be changed to enter next step gray scale cut stream, certainly, next step gray scale cuts stream can apply this method again;It needs
It is noted that it is the record to the current gray scale issued state of rule that this reality specification, which applies the publication progress in example, herein and
The change to the record is only related to the change of publication progress in following part, without regard to the gray scale issued state to rule
Change;
It certainly, at this time can also be in rule to be released by one-time inspection item and when not by non-disposable check item
Any change is not done, keeps the publication progress of rule to be released for the publication of this gray scale, until can be confirmed that rule to be released is logical
Cross or by non-disposable check item, if rule to be released by non-disposable check item, equally can be such as the first
Described in situation, the publication progress of rule to be released is changed to enter and cuts stream in next step;
Second: when rule to be released is failed by any check item, rolling back action being executed to database, and will be pending
The publication progress of cloth rule is changed to gray scale publication failure.
In practical applications, check whether this gray scale of rule to be released will appear by corresponding default check item
One of two kinds of situations are stated, therefore, the publication progress for changing rule to be released can also be carried out according to corresponding inspection result
Corresponding change, details are not described herein again.
In the specific implementation process, after the publication progress for changing rule to be released, what this specification embodiment provided
Method further include: show the publication progress of rule to be released.
Specifically, it can be through means such as visualizations, show the publication progress of rule to be released.In this way, to be released
The people that can be required of publication progress of rule sees, such as the network operator and technology supplier etc. of database, while
The issuing process of rule to be released is monitored without the network operator in cost data library and the plenty of time of technology supplier and energy,
Also improve order degree of the rule to be released in gray scale issuing process.
Based on the same inventive concept, on the other hand this specification embodiment also provides the rule publication dress of a kind of database
It sets, referring to FIG. 2, Fig. 2 is the regular distributing device for the database that this specification embodiment provides, as shown in Fig. 2, the database
Regular distributing device include:
Acquiring unit 201, for obtaining rule to be released;
Inspection unit 202, for being issued according to this gray scale corresponding default when rule to be released enters gray scale publication
Whether check item checks this gray scale publication of rule to be released by presetting check item;
Changing unit 203 changes the publication progress of rule to be released according to inspection result.
In an optional mode, inspection unit is specifically used for when default check item is one-time inspection item, if one
The value that the corresponding interface of secondary property check item returns shows normally, it is determined that the publication of rule to be released passes through one-time inspection item,
And/or when default check item is non-disposable check item, if not the fluctuation for the value that the corresponding interface of one-time inspection item returns
Trend is less than threshold value, it is determined that the publication of rule to be released passes through non-disposable check item.
In an optional mode, one-time inspection item include database auditing and caching check at least one of,
Non-disposable check includes at least one of system monitoring and business monitoring.
In an optional mode, changing unit be specifically used in rule to be released through one-time inspection item and/or
When non-disposable check item, the publication progress of rule to be released is changed to cut stream into next gray scale, or in rule to be released
When failing by any check item, rolling back action is executed to database, and the publication progress of rule to be released is changed to not send out
Cloth.
In an optional mode, device further includes display unit 204, and display unit 204 is for showing rule to be released
Publication progress then.
The third aspect, based on inventive concept same as the regular dissemination method of database in previous embodiment, this explanation
Book embodiment also provides a kind of database, and Fig. 3 is the structural schematic diagram for the database that this specification embodiment provides, such as Fig. 3 institute
Show, including memory 504, processor 502 and is stored in the computer journey that can be run on memory 504 and on processor 502
The step of sequence, processor 502 realizes either regular dissemination method of database method above when executing program.
Wherein, in Fig. 3, bus architecture (is represented) with bus 500, and bus 500 may include any number of interconnection
Bus and bridge, bus 500 will include the one or more processors represented by processor 502 and what memory 504 represented deposits
The various circuits of reservoir link together.Bus 500 can also will peripheral equipment, voltage-stablizer and management circuit etc. it
Various other circuits of class link together, and these are all it is known in the art, therefore, no longer carry out further to it herein
Description.Bus interface 506 provides interface between bus 500 and receiver 501 and transmitter 503.Receiver 501 and transmitter
503 can be the same element, i.e. transceiver, provide the unit for communicating over a transmission medium with various other devices.Place
It manages device 502 and is responsible for management bus 500 and common processing, and memory 504 can be used for storage processor 502 and execute behaviour
Used data when making.
Fourth aspect, based on the inventive concept with the regular dissemination method of database in previous embodiment, this specification is real
It applies example and a kind of computer readable storage medium is also provided, be stored thereon with computer program, it is real when which is executed by processor
Now the step of either regular dissemination method of database above method.
This specification is referring to the method, equipment (system) and computer program product according to this specification embodiment
Flowchart and/or the block diagram describes.It should be understood that can be realized by computer program instructions every in flowchart and/or the block diagram
The combination of process and/or box in one process and/or box and flowchart and/or the block diagram.It can provide these computers
Processor of the program instruction to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices
To generate a machine, so that generating use by the instruction that computer or the processor of other programmable data processing devices execute
In setting for the function that realization is specified in one or more flows of the flowchart and/or one or more blocks of the block diagram
It is standby.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of equipment, the commander equipment realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment of this specification has been described, once a person skilled in the art knows basic wounds
The property made concept, then additional changes and modifications may be made to these embodiments.So the following claims are intended to be interpreted as includes
Preferred embodiment and all change and modification for falling into this specification range.
Obviously, those skilled in the art can carry out various modification and variations without departing from this specification to this specification
Spirit and scope.In this way, if these modifications and variations of this specification belong to this specification claim and its equivalent skill
Within the scope of art, then this specification is also intended to include these modifications and variations.