CN109814896A - Server updating method, apparatus, computer system and readable storage system - Google Patents
Server updating method, apparatus, computer system and readable storage system Download PDFInfo
- Publication number
- CN109814896A CN109814896A CN201811536692.6A CN201811536692A CN109814896A CN 109814896 A CN109814896 A CN 109814896A CN 201811536692 A CN201811536692 A CN 201811536692A CN 109814896 A CN109814896 A CN 109814896A
- Authority
- CN
- China
- Prior art keywords
- request
- external
- internal
- server
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Computer And Data Communications (AREA)
Abstract
The present invention provides a kind of server updating method, apparatus, computer system and readable storage system, is based on internet O&M, including so that server cluster is divided into internal group and outer set server cluster grouping;Receive user's request;The user's resolution file and policy resolution file of extraction;The value of user's request is requested and obtained using user's resolution file parsing user;User request is determined as internal request or external request by the value that Utilization strategies resolution file is requested according to the user;Internal request is exported to inside group and upgrades the server in internal group;Or external request is exported into the server into outer set and upgraded external group.Present invention reduces the complexities that user requests reception and output element, realization for gray scale publication and bluish-green publication provides brace foundation, expand the scope of application, eliminate the bottleneck in database operation, the whole efficiency for optimizing server updating device is avoided because flow is excessive leads to information occlusion for user's request.
Description
Technical field
The present invention relates to system O&M technical field more particularly to a kind of server updating method, apparatus, computer system
And readable storage system.
Background technique
Current information interaction system at least has there are two domain name, to respectively correspond at least two channels, so that user asks
It asks under different domain names, is sent to the server of each channel;This mode causes user to request since domain name is more
Way to manage it is complex, it is easy to occur information management confusion situation occur;
The upgrade-system of current server mainly uses gray scale delivery system, and the function of existing gray scale delivery system
It is fairly simple, it can only support the gray scale publication operation to server, and can not carry out other such as server isolation or bluish-green
The business operations such as publication;Therefore, it is impossible to meet the upgrade requirement of the server under current different scenes;Again due to current gray scale
Delivery system generallys use two domain names, i.e. server under production environment uses a domain name, the server under gray scale environment
Using another domain name, therefore, it is necessary to user's request is exported the work for causing gray scale to be issued to the server under different domain names respectively
Make that complexity is higher, therefore not only increase the workload of gray scale delivery system, and due to the server of gray scale environment with
What the server of production environment was entirely isolated, therefore client needs to configure the server of gray scale environment when calling gray scale
Domain name is calling the domain name for needing to configure the server of production environment when production, is improving client and alternately call production environment
Or the difficulty of the server of gray scale environment;Make again since the server of gray scale environment and the server of production environment can not exchange
With so that part server can cause equipment to waste in idle state for a long time;
The database of current gray scale delivery system due to be it is common, connection and request amount be conditional, if
Connection amount or user's request amount are continuously increased, therefore, it will occur database due to itself connection and request amount limitation and nothing
Method meets enough user's requests, in turn results in the generation of database operation bottleneck.
Summary of the invention
The object of the present invention is to provide server updating method, apparatus, computer system and readable storage systems, for solving
Problem certainly of the existing technology.
To achieve the above object, the present invention provides a kind of server updating method, comprising the following steps:
S1: server cluster is grouped, server cluster is made to be divided into internal group and outer set;
S2: user's request is received;
S3: user's resolution file and policy resolution file are extracted;
S4: using user's resolution file, parsing user is requested, to obtain the value of user's request;
S5: user request is determined as that inside asks by the value requested using the policy resolution file according to the user
It asks or external request;
S6: internal request is exported to inside group and upgrades the server in internal group;Or
External request is exported into the server into outer set and upgraded external group.
It is further comprising the steps of after the step S1 in above scheme:
S11: the packet signal of server cluster output is received;
S12: continuing according to the packet signal determination flow or process terminates;
S13: if it is determined that process continues, it will be to client output services signal.
In above scheme, in the step S1, internal request is exported to inside group and upgrades the service in internal group
It is closed test group and internal contrast group that device, which includes: by internal composition, is external test group and external control group by outer component.
In above scheme, in the step S6, internal request is exported to inside group and upgrades the service in internal group
Device includes:
Internal request is sent to the server of the internal contrast group, and successively upgrades closed test group and internal contrast
The system program of server in group;Or
The system program for upgrading server in closed test group, the value and interior intensity for compareing internal request issue white name
It is single, determine the internal request for test feature or control characteristic;The internal request of test feature is exported to closed test group,
The internal request for compareing characteristic is exported to internal contrast group, and in upgraded external control group server system program.
In above scheme, in the step S6, external request is exported into the service into outer set and upgraded external group
Device includes:
In the step S6, external request, which is exported the server into outer set and upgraded external group, includes:
External request is sent to the server of the external control group, and successively upgraded external test group and external control
The system program of server in group;Or
The system program of server in upgraded external test group, the value and external gray scale for compareing external request issue white name
It is single, determine the external request for test feature or control characteristic;The external request of test feature is exported to external test group,
The external request for compareing characteristic is exported to external control group, and in upgraded external control group server system program.
In above scheme, the step S3 extracts user's resolution file and plan from database including the use of scripting language frame
Slightly resolution file, and cache policy resolution file and user's resolution file;
In the step S5, the mapping ruler in policy resolution file includes internal maps rule and external mapping rule
Then, determine user request value and internal maps rule match user request be internal request, determine user request value with
The external matched user's request of mapping ruler is external request.
In above scheme, step S6 includes:
Using token bucket process by internal request export to inside group or by external request export to outer set include: creation
Internal token bucket or external token bucket;It sends internal request and takes out internal token from internal token bucket, or send external ask
It asks and takes out external token from external token bucket;Stop sending when the internal token quantity in internal token bucket is zero internal
Request, or stop sending external request when the external token quantity in external token bucket is zero;Or
Using concurrent current limliting process by internal request export to inside group or by external request export to outer set include: wound
Build count internal list or external counting list;It sends internal request and increases count internal information in internal count list,
Or increase external counting information when sending external request and in external count list;It receives internal arriving signal and is counted in inside
Count information is deleted in ordered series of numbers table, or is received external arriving signal and deleted external counting information in external count list;It is right
Concurrently it is worth than the quantity of count internal information and inside and determines to allow to continue or stop that internally group sends internal request or right
Concurrently it is worth than the quantity of external counting information and outside and determines to allow to continue or stop to send external request to outer set.
To achieve the above object, the present invention also provides a kind of server updating devices, comprising:
Server cluster is divided into internal group and outer set for being grouped to server cluster by server grouping module;
User's request receiving module, for receiving user's request;
Resolution file extraction module, for extracting user's resolution file and policy resolution file and caching;
User requests determination module, for parsing user's request to obtain the value of user's request, and according to the user
User request is determined as internal request or external request by the value of request;
Server updating module, for the server in group inside being upgraded according to internal request, or according to external request liter
Server in grade outer set.
To achieve the above object, the present invention also provides a kind of computer systems comprising multiple computer equipments, it is each to calculate
Machine equipment includes memory, processor and stores the computer program that can be run on a memory and on a processor, described
The step of processor of multiple computer equipments realizes above-mentioned server updating method when executing the computer program jointly.
To achieve the above object, the present invention also provides a kind of computer-readable storage systems comprising multiple storage mediums,
Computer program is stored on each storage medium, the computer program of the multiple storage medium storage is executed by processor
Shi Gongtong realizes the step of above-mentioned server updating method.
A kind of server updating method, apparatus, computer system and readable storage system provided by the invention, pass through service
Device grouping module and user's request receiving module make user's request that can be divided into internal request under same domain name and outside asks
It asks, and is exported respectively to the inside group and outer set of server cluster;
By being determined as internal request using user's request determination module judgement user's request or being external request, and will be interior
Portion's request output exports external request to outer set, what is be simple and efficient realizes the shunting effect to user's request to inside group
Therefore fruit reduces the complexity that user requests reception and output element;Since modification user's resolution file and strategy can be passed through
Resolution file realizes the assignment of traffic of user's request, therefore, internal group can be configured according to the demand of user and outer set is divided
The information content for the user's request being fitted on, the realization for gray scale publication and bluish-green publication provide brace foundation;
It can be by bluish-green release model and gray scale release model upgrade server cluster by server updating module
Server realizes the diversity of server updating, expands the scope of application;
By resolution file extraction module cache user resolution file and policy resolution file, reduce straight from database
It connects and reads policy resolution file, user's resolution file situation, when reducing the reading of policy resolution file, user's resolution file
Between, the bottleneck in database operation is eliminated, the whole efficiency and performance of server updating device are optimized;
User is requested to carry out current limliting by token bucket process and concurrent current limliting process, is avoided because user requests flow mistake
Lead to information occlusion greatly, ensure that the overall performance of server updating device.
Detailed description of the invention
Fig. 1 is the flow chart of server updating embodiment of the method one of the present invention;
Fig. 2 is server updating device and server cluster, client in server updating embodiment of the method one of the present invention
Work flow diagram between database;
Fig. 3 is the program module schematic diagram of server updating Installation practice two of the present invention;
Fig. 4 is the hardware structural diagram of computer equipment in computer system embodiment three of the present invention.
Appended drawing reference:
1, server updating device 2, server cluster 3, client 4, database
11, server grouping module 12, user's request receiving module 13, resolution file extraction module
14, user requests determination module 15, server updating module 16, token bucket module
17, concurrent current limliting module 5, computer equipment 51, memory 52, processor
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not
For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work
Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
A kind of server updating method, apparatus, computer system and readable storage system provided by the invention, suitable for being
System O&M technical field, it is a kind of based on server grouping module, user's request receiving module, resolution file extraction mould to provide
Block, user request determination module, server updating module, the server updating method of token bucket module and concurrent current limliting module.
The present invention by server grouping module and user's request receiving module make user request can be divided under same domain name in
Portion's request and external request, and exported respectively to the inside group and outer set of server cluster;
By being determined as internal request using user's request determination module judgement user's request or being external request, and will be interior
Portion's request output exports external request to outer set, what is be simple and efficient realizes the shunting effect to user's request to inside group
Therefore fruit reduces the complexity that user requests reception and output element;Since modification user's resolution file and strategy can be passed through
Resolution file realizes the assignment of traffic of user's request, therefore, internal group can be configured according to the demand of user and outer set is divided
The information content for the user's request being fitted on, the realization for gray scale publication and bluish-green publication provide brace foundation;
It can be by bluish-green release model and gray scale release model upgrade server cluster by server updating module
Server realizes the diversity of server updating, expands the scope of application;
By resolution file extraction module cache user resolution file and policy resolution file, reduce straight from database
It connects and reads policy resolution file, user's resolution file situation, when reducing the reading of policy resolution file, user's resolution file
Between, the bottleneck in database operation is eliminated, the whole efficiency and performance of server updating device are optimized;
User is requested to carry out current limliting by token bucket process and concurrent current limliting process, is avoided because user requests flow mistake
Lead to information occlusion greatly, ensure that the overall performance of server updating device.
Embodiment one:
Fig. 1 and Fig. 2 are please referred to, a kind of server updating method utilizes server updating device 1, comprising the following steps:
S1: server cluster 2 is grouped, divides server cluster 2 for internal group and outer set;
S2: user's request is received;
S3: user's resolution file and policy resolution file are extracted;
S4: the value of user's request is requested and obtained using user's resolution file parsing user;
S5: the value that Utilization strategies resolution file is requested according to the user by the user request be determined as internal request or
External request;
S6: internal request is exported to inside group and upgrades the server in internal group;Or
External request is exported into the server into outer set and upgraded external group.
Specifically, the step S1 the following steps are included:
S11: the packet signal that server cluster 2 exports is received;
S12: continuing according to the packet signal determination flow or process terminates;
S13: if it is determined that process continues, it will be to 3 output services signal of client;
Wherein, client 3 exports user's request according to working signal.
Further, packet signal includes grouping pass signal and grouping failure signal;If the step S12 includes: clothes
Business device cluster 2 is grouped successfully, the grouping pass signal that reception server cluster 2 is exported;
If the grouping failure of server cluster 2, the grouping failure signal that reception server cluster 2 is exported;
The step S13 includes: to continue and enter S2 according to being grouped successfully signal determining process;Or
Terminated according to grouping failure signal determination flow and terminates server updating.
Further, user's request is data interchange format, and the data interchange format is key-value pair form, user's request
Key be user request value keyword.
Further, the key of data interchange format includes Sales Channel data, application programming interfaces verifying serial number and request
Data, wherein there are the first layer of data interchange format Sales Channel data and application programming interfaces to verify serial number data, data
The second layer of exchange format has request data.
Further, in the step S4, the sale canal of the first layer of user's resolution file analysis user's request is utilized
Track data stops the value for analyzing and obtaining user's request if having arrived the value of user's request by Sales Channel data acquisition;
If the value of user's request has not been obtained by Sales Channel data, continue answering for the first layer for analyzing user's request
Serial number is verified with routine interface;If verifying the value that serial number has got user's request by application programming interfaces, stop analyzing
And obtain the value of user's request;
If verifying the value that user's request has not been obtained in serial number by application programming interfaces, continue to analyze the of user's request
Two layers of request data stops analyzing and obtaining user's request if having acquired the value of user's request by request data
Value.
Preferably, in the step S1, there are two the server in internal group at least has, the server in outer set is at least
There are two tools, wherein the internal group is the server group for leading to channel for an account, and the outer set is for Small-Medium Banks canal
The server group in road;
Specifically, the step S3 includes, database 4 is accessed, user is extracted from database 4 using scripting language frame and solves
Analyse file and policy resolution file, and cache policy resolution file and user's resolution file;
Specifically, the mapping ruler in policy resolution file includes internal maps rule and outside in the step S5
Mapping ruler, the user of the value and internal maps rule match that determine user's request request as internal request, judgement user's request
Value and the matched user's request of external mapping ruler be external request.
Further, mapping ruler includes white list, digital scope, alphabetic ranges, percentage range;
Internal maps rule includes internal whitelist, internal digital range, internal alphabetic ranges, internal alphabetic ranges, interior
Portion's percentage range;External mapping ruler includes external white list, external digital range, external alphabetic ranges, external alphabetical model
It encloses, external percentage range;
The value of mapping ruler and user's request is compared, if the value of user's request has and internal whitelist, internal digital model
It encloses, internal alphabetic ranges or the matched character of internal percentage range, then determines that user request is internal request, if user asks
The value asked have with external white list, external digital range, external alphabetic ranges or the matched character of external percentage range, then
Determine that user request is external request.
Specifically, internal request is exported to inside group and upgrades the server packet in internal group in the step S6
Include: internal composition is closed test group and internal contrast group by the server of packets inner group;Internal request is sent to described
The server of internal contrast group, and successively upgrade the system program of server in closed test group and internal contrast group.
Further, when internal request is exported to inside group and upgrades the server in internal group by bluish-green release model
When, the S6 the following steps are included:
S60-1: internal composition is closed test group and internal contrast group by the server of packets inner group;
S60-2: the grouping pass signal of internal group output is received;
S60-3: internal request is sent to the server of the internal contrast group;
S60-4: the system program of server in upgrading closed test group, if closed test group, which upgrades successfully, will generate inside
Instruction is completed in test;
S60-5: it receives closed test and completes after instructing, internal request is respectively sent to the internal contrast group and inside
The server of test group;Wherein, internal contrast group by be assigned to 70% internal request, closed test group will be assigned to 30%
Internal request;
Wherein, it by the white list or percentage range in modification policy resolution file, adjusts to internal upgrade server
The output quantity requested with the user of internal contrast server;
S60-6: it if closed test group can normally handle internal request, exports closed test and successfully instructs;If internal
Test group can not normally handle internal request, then export closed test failure command;
S60-6: successfully instructing according to closed test, and internal request is sent to the server of the closed test group, and
Upgrade the system program of server in internal contrast group;Internal contrast completion is generated if the internal contrast group upgrades successfully to refer to
It enables;Or
According to closed test failure command, the server in closed test group is adjusted back, the server is made to run previous
The system program of version, and terminate to upgrade;
S60-7: it receives after internal contrast completes instruction, internal request is respectively sent to the internal contrast group and interior
The server of portion's test group;Wherein, internal contrast group by be assigned to 30% internal request, closed test group will be assigned to 70%
Internal request;
S60-8: it if internal contrast group can normally handle internal request, exports internal contrast and successfully instructs;If internal
Control group can not normally handle internal request, then export internal contrast failure command;
S60-9: successfully instructing according to internal contrast, and internal request is respectively sent to the closed test group and inside is right
According to the server of group, and terminate to upgrade;Or
According to internal contrast failure command, the server in internal contrast group is adjusted back, the server is made to run previous
The system program of version, and terminate to upgrade;
Specifically, internal request is exported to inside group and upgrades the server packet in internal group in the step S6
Include: the system program of server in upgrading closed test group compares the value and interior intensity publication white list of internal request, determines
The internal request is test feature or control characteristic;The internal request of test feature is exported to closed test group, will be compareed
The internal request of characteristic is exported to internal contrast group, and in upgraded external control group server system program.
Further, when internal request is exported to inside group and upgrades the server in internal group by gray scale release model
When, the S6 the following steps are included:
S61-1: the system program of server in upgrading closed test group;
S61-2: by the white list in the mapping ruler of policy resolution file, it is revised as interior intensity publication white list;Its
In, interior intensity, which is issued, at least has a character in white list;
S61-3: the value and interior intensity publication white list of internal request are compareed, determines the internal request for test feature
Or control characteristic;
In this step, the value of comparison interior intensity publication list and internal request, if the value and interior intensity of internal request
Any character match in white list is issued, then determines the internal request for test feature;If the value of internal request and inside
All characters in gray scale publication white list mismatch, then determine the internal request to compare characteristic;
S61-4: the internal request of test feature is exported to closed test group, by the internal request for compareing characteristic export to
Internal contrast group;
S61-5: it if the server of closed test group can normally handle internal request, exports internal contrast and successfully refers to
It enables;
If the server of closed test group can not normally handle internal request, internal contrast failure command is exported;
S61-6: successfully instructing according to closed test, and internal request is sent to the server of the closed test group, and
Upgrade the system program of server in internal contrast group;Internal contrast completion is generated if the internal contrast group upgrades successfully to refer to
It enables;Or
According to closed test failure command, the server in closed test group is adjusted back, the server is made to run previous
The system program of version, and terminate to upgrade;
S61-7: receiving after internal contrast completes instruction terminates upgrading.
Specifically, external request is exported the server packet into outer set and upgraded external group in the step S6
It includes: being grouped the server of outer set, be external test group and external control group by outer component;External request is sent to described
The server of external control group, and successively in upgraded external test group and external control group server system program.
Further, when external request is exported to outer set and by the server in bluish-green release model upgraded external group
When, the S6 the following steps are included:
S62-1: being grouped the server of outer set, is external test group and external control group by outer component;
S62-2: the grouping pass signal of outer set output is received;
S62-3: external request is sent to the server of the external control group;
S62-4: the system program of server in upgraded external test group, if external test group, which upgrades successfully, will generate outside
Instruction is completed in test;
S62-5: it receives external test and completes after instructing, external request is respectively sent to the external control group and outside
The server of test group;Wherein, external control group by be assigned to 70% external request, external test group will be assigned to 30%
External request;
Wherein, it by the white list or percentage range in modification policy resolution file, adjusts to external upgrade server
The output quantity requested with the user of external control server;
S62-6: if external test group can normally handle external request, external success of the test instruction is exported;If external
Test group can not normally handle external request, then export external test failure instruction;
External request: according to outside success of the test instruction, being sent to the server of the external test group by S62-6, and
The system program of server in upgraded external control group;External control completion is generated if the external control group upgrades successfully to refer to
It enables;Or
It is instructed according to external test failure, adjusts back the server in external test group, the server is made to run previous
The system program of version, and terminate to upgrade;
S62-7: receiving after external control completes instruction, and external request is respectively sent to the external control group and outer
The server of portion's test group;Wherein, external control group by be assigned to 30% external request, external test group will be assigned to 70%
External request;
S62-8: it if external control group can normally handle external request, exports external control and successfully instructs;If external
Control group can not normally handle external request, then export external control failure command;
S62-9: successfully instructing according to external control, and external request is respectively sent to the external test group and outside is right
According to the server of group, and terminate to upgrade;Or
According to external control failure command, the server in external control group is adjusted back, the server is made to run previous
The system program of version, and terminate to upgrade;
Specifically, external request is exported the server packet into outer set and upgraded external group in the step S6
Include: the system program of server in upgraded external test group, the value and external gray scale for compareing external request are issued white list, are determined
The external request is test feature or control characteristic;The external request of test feature is exported to external test group, will be compareed
The external request of characteristic is exported to external control group, and in upgraded external control group server system program.
Further, when external request is exported to outer set and upgrades the server in internal group by gray scale release model
When, the S6 the following steps are included:
S63-1: the system program of server in upgraded external test group;Wherein, in external gray scale publication white list at least
With a character;
S63-2: by the white list in the mapping ruler of policy resolution file, it is revised as external gray scale publication white list;
In this step, the value of external gray scale publication list and external request is compared, if the value of external request and external gray scale
Any character match in white list is issued, then determines the external request for test feature;If the value of external request and outside
All characters in gray scale publication white list mismatch, then determine the external request to compare characteristic;
S63-3: the value and external gray scale for compareing external request issue white list, determine the external request for test feature
Or control characteristic;
S63-4: the external request of test feature is exported to external test group, by the external request for compareing characteristic export to
External control group;
S63-5: it if the server of external test group can normally handle external request, exports external control and successfully refers to
It enables;
If the server of external test group can not normally handle external request, external control failure command is exported;
External request: according to outside success of the test instruction, being sent to the server of the external test group by S63-6, and
The system program of server in upgraded external control group;External control completion is generated if the external control group upgrades successfully to refer to
It enables;Or
It is instructed according to external test failure, adjusts back the server in external test group, the server is made to run previous
The system program of version, and terminate to upgrade;
S63-7: receiving after external control completes instruction terminates upgrading.
Specifically, the step S6 includes token bucket process and concurrent current limliting process;
Further, internal request is exported to inside group using token bucket process or exports external request to outer set
Include:
L1: the internal token bucket with internal token, or the external token bucket with external token are created;
L2: internally group sends internal request, and takes out internal token from internal token bucket, wherein sends internal ask
The quantity asked is consistent with the quantity of internal token is taken out;Or
External request is sent to outer set, and takes out external token from external token bucket, wherein sends external request
Quantity is consistent with the external quantity of token is taken out;
L3: when the internal token quantity in internal token bucket is zero, stops internally group and send internal request;Or
When the external token quantity in external token bucket is zero, stop sending external request to outer set.
Further, internal request is exported to inside group using concurrent current limliting process or exports external request to outside
Group includes:
B1: creating has the internal count internal list being concurrently worth, or the external counting list being concurrently worth with outside;
B2: internally group sends internal request, and increases count internal information in internal count list, wherein sends
The quantity of internal request is consistent with the quantity of count internal information is increased;Or
When sending external request to outer set, and increase external counting information in external count list, wherein send outer
The quantity of portion's request is consistent with the quantity of external counting information is increased;
B3: receiving and reach instruction by the inside that internal group issues, and delete count information in internal count list,
In, it is consistent with the quantity of count internal information is deleted to receive the internal quantity for reaching instruction;Or
It receives and is instructed by external reach that outer set issues, and delete external counting information in external count list,
In, it is consistent with the quantity of external counting information is deleted to receive the quantity for reaching instruction;
B4: the quantity of comparison count internal information is concurrently worth with inside, if the quantity of count internal information is less than inside simultaneously
Hair value then determines to allow to continue that internally group sends internal request;If the quantity of count internal information is greater than inside and is concurrently worth,
Determine to stop internally group and sends internal request;Or
The quantity and outside for comparing external counting information are concurrently worth, if the quantity of external counting information is less than outside concurrently
Value then determines to allow to continue to send external request to outer set;If the quantity of external counting information is greater than outside and is concurrently worth, sentence
Stop sending external request to outer set calmly.
Embodiment two:
Referring to Fig. 3, a kind of server updating device 1, comprising:
Server grouping module 11 divides server cluster 2 for internal group and outside for being grouped to server cluster 2
Group, for receiving the grouping pass signal exported by server cluster 2 or grouping failure signal, and according to grouping pass signal or
It is grouped failure signal, determination flow continues or process termination, and for triggering client 3 to 3 output services signal of client
Export user's request;
User's request receiving module 12, for receiving the user's request exported by client 3;
Resolution file extraction module 13, for extracting user's resolution file and policy resolution file from database 4 and caching;
User requests determination module 14, for parsing user's request to obtain the value of user's request, and according to the use
User request is determined as internal request or external request by the value of family request;
Server updating module 15, for upgrading the server in internal group or the server in upgraded external group;
Preferably, server updating device 1, further includes:
Token bucket module 16, for internal request to be exported to inside group by token bucket process, or external request is defeated
Out to outer set;
Concurrent current limliting module 17 for being exported internal request to inside group by concurrent current limliting process, or outside is asked
Ask output to outer set.
Preferably, when in database 4 user's resolution file or policy resolution file be updated successfully after, database 4 will be to
The output of resolution file extraction module 13 is updated successfully instruction;The resolution file extraction module 13 removes user's resolution file and plan
Slightly resolution file, and again by scripting language frame by data user's resolution file and policy resolution file cache solving
It analyses in file extraction module 13.
The technical program is based on internet O&M, using server grouping module 11, realizes the grouping of server cluster 2,
It provides the foundation for the optimization of bluish-green issuing process and the optimization of gray scale issuing process;Determination module 14 and server are requested using user
Upgraded module 15 is realized by shunting user's request under same domain name and optimizes bluish-green issuing process and gray scale issuing process;Benefit
With token bucket module 16 and concurrent current limliting module 17, current limliting is carried out by requesting user, realizes bluish-green issuing process and gray scale
The optimization of issuing process.
Embodiment three:
To achieve the above object, the present invention also provides a kind of computer system, which includes multiple computers
Equipment 5, the component part of the server updating device of embodiment two are dispersed in different computer equipments 5, and computer is set
Standby 5 can be smart phone, tablet computer, laptop, desktop computer, rack-mount server, the blade for executing program
Formula server, (including the service composed by independent server or multiple servers of tower server or Cabinet-type server
Device cluster 2) etc..The computer equipment 5 of the present embodiment includes, but is not limited to: that connection can be in communication with each other by system bus
Memory 51, processor 52, as shown in Figure 4.It should be pointed out that Fig. 4 illustrates only the computer equipment 5 with component-, but
Be it should be understood that, it is not required that implement all components shown, the implementation that can be substituted is more or less component.
In the present embodiment, memory 51 (i.e. readable storage medium storing program for executing) includes flash memory, hard disk, multimedia card, card-type memory
(for example, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory
(ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, magnetic
Disk, CD etc..In some embodiments, memory 51 can be the internal storage unit of computer equipment 5, such as the computer
The hard disk or memory of equipment 5.In further embodiments, memory 51 is also possible to the External memory equipment of computer equipment 5,
Such as the plug-in type hard disk being equipped in the computer equipment 5, intelligent memory card (Smart Media Card, SMC), secure digital
(Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, memory 51 can also both be set including computer
Standby 5 internal storage unit also includes its External memory equipment.In the present embodiment, memory 51 is installed on meter commonly used in storage
Calculate machine equipment 5 operating system and types of applications software, such as embodiment one server updating device program code etc..This
Outside, memory 51 can be also used for temporarily storing the Various types of data that has exported or will export.
Processor 52 can be in some embodiments central processing unit (Central Processing Unit, CPU),
Controller, microcontroller, microprocessor or other data processing chips.The processor 52 is commonly used in control computer equipment 5
Overall operation.In the present embodiment, program code or processing data of the processor 52 for being stored in run memory 51, example
Such as runtime server update device, to realize the server updating method of embodiment one.
Example IV:
To achieve the above object, the present invention also provides a kind of computer-readable storage systems comprising multiple storage mediums,
Such as flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory), random access storage device (RAM), static state
Random access storage device (SRAM), electrically erasable programmable read-only memory (EEPROM), may be programmed read-only memory (ROM)
Read-only memory (PROM), magnetic storage, disk, CD, server, App are stored thereon with computer using store etc.
Program, program realize corresponding function when being executed by processor 52.The computer readable storage medium of the present embodiment is for storing clothes
Business device update device, realizes the server updating method of embodiment one when being executed by processor 52.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably 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 (10)
1. a kind of server updating method, which comprises the following steps:
S1: server cluster is grouped, server cluster is made to be divided into internal group and outer set;
S2: user's request is received;
S3: user's resolution file and policy resolution file are extracted;
S4: using user's resolution file, parsing user is requested, to obtain the value of user's request;
S5: the value requested using the policy resolution file according to the user by the user request be determined as internal request or
External request;
S6: internal request is exported to inside group and upgrades the server in internal group;Or
External request is exported into the server into outer set and upgraded external group.
2. server updating method according to claim 1, which is characterized in that
It is further comprising the steps of after the step S1:
S11: the packet signal of server cluster output is received;
S12: continuing according to the packet signal determination flow or process terminates;
S13: if it is determined that process continues, it will be to client output services signal.
3. server updating method according to claim 1, which is characterized in that in the step S1, be by internal composition
Outer component is external test group and external control group by closed test group and internal contrast group.
4. server updating method according to claim 3, which is characterized in that in the step S6, by internal request
Output is to inside group and to upgrade the server in internal group include: the service that internal request is sent to the internal contrast group
Device, and successively upgrade the system program of server in closed test group and internal contrast group;Or
The system program for upgrading server in closed test group compares the value and interior intensity publication white list of internal request, sentences
The fixed internal request is test feature or control characteristic;The internal request of test feature is exported to closed test group, it will be right
Export according to the internal request of characteristic to internal contrast group, and in upgraded external control group server system program.
5. server updating method according to claim 3, which is characterized in that in the step S6, by external request
The server exported into outer set and upgraded external group includes: the service that external request is sent to the external control group
Device, and successively in upgraded external test group and external control group server system program;Or
The system program of server in upgraded external test group, the value and external gray scale for compareing external request are issued white list, are sentenced
The fixed external request is test feature or control characteristic;The external request of test feature is exported to external test group, it will be right
Export according to the external request of characteristic to external control group, and in upgraded external control group server system program.
6. server updating method according to claim 1, which is characterized in that the step S3 is including the use of scripting language
Frame extracts user's resolution file and policy resolution file, and cache policy resolution file and user's resolution file from database;
Mapping ruler in the policy resolution file includes internal maps rule and external mapping ruler;
In the step S5, determines that user's request of the value and internal maps rule match of user's request is internal request, sentence
The value and the matched user's request of external mapping ruler for determining user's request are external request.
7. server updating method according to claim 1, which is characterized in that step S6 includes:
Internal request is exported to inside group using token bucket process or to export external request to outer set include: that creation is internal
Token bucket or external token bucket;It sends internal request and takes out internal token from internal token bucket, or send external request simultaneously
External token is taken out from external token bucket;Stop sending internal ask when the internal token quantity in internal token bucket is zero
It asks, or stops sending external request when the external token quantity in external token bucket is zero;Or
Internal request is exported to inside group using concurrent current limliting process or to export external request to outer set include: in creation
Portion's count list or external counting list;It sends internal request and increases count internal information, or hair in internal count list
It send when external request and increases external counting information in external count list;Receive internal arriving signal and in internal count column
Count information is deleted in table, or is received external arriving signal and deleted external counting information in external count list;In comparison
The quantity of portion's count information and inside are concurrently worth and determine to allow to continue or stop that internally group sends internal request, or compare outer
The quantity of portion's count information and outside are concurrently worth and determine to allow to continue or stop to send external request to outer set.
8. a kind of server updating device characterized by comprising
Server cluster is divided into internal group and outer set for being grouped to server cluster by server grouping module;
User's request receiving module, for receiving user's request;
Resolution file extraction module, for extracting user's resolution file and policy resolution file and caching;
User requests determination module, requests for parsing user's request to obtain the value of user's request, and according to the user
Value by the user request be determined as internal request or external request;
Server updating module, it is outer for upgrading the server in internal group according to internal request, or according to external request upgrading
Server in portion's group.
9. a kind of computer system comprising multiple computer equipments, each computer equipment include memory processor and deposit
Store up the computer program that can be run on a memory and on a processor, which is characterized in that the place of the multiple computer equipment
Reason device realizes the step of any one of claim 1 to 7 server updating method jointly when executing the computer program.
10. a kind of computer-readable storage system comprising multiple storage mediums are stored with computer journey on each storage medium
Sequence, which is characterized in that the computer program of the multiple storage medium storage realizes right when being executed by processor jointly
It is required that the step of any one of 1 to 7 server updating method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811536692.6A CN109814896A (en) | 2018-12-14 | 2018-12-14 | Server updating method, apparatus, computer system and readable storage system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811536692.6A CN109814896A (en) | 2018-12-14 | 2018-12-14 | Server updating method, apparatus, computer system and readable storage system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109814896A true CN109814896A (en) | 2019-05-28 |
Family
ID=66601977
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811536692.6A Pending CN109814896A (en) | 2018-12-14 | 2018-12-14 | Server updating method, apparatus, computer system and readable storage system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109814896A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110399142A (en) * | 2019-07-26 | 2019-11-01 | 四川新网银行股份有限公司 | A kind of method and system of gray scale and production environment version isolation |
CN111740920A (en) * | 2020-08-17 | 2020-10-02 | 广东睿江云计算股份有限公司 | Gray scale issuing and current limiting method and system based on user token |
CN111880831A (en) * | 2020-07-27 | 2020-11-03 | 平安国际智慧城市科技股份有限公司 | Method and device for synchronously updating server, computer equipment and storage medium |
CN112162769A (en) * | 2020-10-14 | 2021-01-01 | 广州欢网科技有限责任公司 | Method, server and client for application software current-limiting upgrade |
CN117234759A (en) * | 2023-11-13 | 2023-12-15 | 长沙时代跳动科技有限公司 | Data processing method and system of APP service platform |
-
2018
- 2018-12-14 CN CN201811536692.6A patent/CN109814896A/en active Pending
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110399142A (en) * | 2019-07-26 | 2019-11-01 | 四川新网银行股份有限公司 | A kind of method and system of gray scale and production environment version isolation |
CN110399142B (en) * | 2019-07-26 | 2023-04-07 | 四川新网银行股份有限公司 | Method and system for isolating gray scale from production environment version |
CN111880831A (en) * | 2020-07-27 | 2020-11-03 | 平安国际智慧城市科技股份有限公司 | Method and device for synchronously updating server, computer equipment and storage medium |
CN111740920A (en) * | 2020-08-17 | 2020-10-02 | 广东睿江云计算股份有限公司 | Gray scale issuing and current limiting method and system based on user token |
CN112162769A (en) * | 2020-10-14 | 2021-01-01 | 广州欢网科技有限责任公司 | Method, server and client for application software current-limiting upgrade |
CN117234759A (en) * | 2023-11-13 | 2023-12-15 | 长沙时代跳动科技有限公司 | Data processing method and system of APP service platform |
CN117234759B (en) * | 2023-11-13 | 2024-02-23 | 长沙时代跳动科技有限公司 | Data processing method and system of APP service platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109814896A (en) | Server updating method, apparatus, computer system and readable storage system | |
CN107979493B (en) | Platform is construction method, server and the storage medium for servicing PAAS container platform | |
US11875171B2 (en) | Blockchain network transaction processing method, apparatus, device, and storage medium | |
CN108737325B (en) | Multi-tenant data isolation method, device and system | |
CN110728455B (en) | Service processing method, service processing device, storage medium and electronic equipment | |
CN110019125A (en) | The method and apparatus of data base administration | |
CN110399383A (en) | Applied to the data processing method of server, device, calculate equipment, medium | |
CN109144493A (en) | Generation method, electronic device and the readable storage medium storing program for executing of business rule | |
CN109597640B (en) | Account management method, device, equipment and medium for application program | |
CN110210845B (en) | Method, apparatus, medium, and computing device for blockchain data migration | |
CN108762898A (en) | A kind of management method, terminal device and the computer readable storage medium of thread interface | |
CN106873970A (en) | The installation method and device of a kind of operating system | |
CN113626223A (en) | Interface calling method and device | |
CN110738038A (en) | Contract text generation method, device, equipment and computer readable storage medium | |
CN112769802A (en) | Access verification method and device based on server, electronic equipment and storage medium | |
CN115757492A (en) | Hotspot data processing method and device, computer equipment and storage medium | |
CN103501341A (en) | Method and device for establishing Web service | |
CN109669678A (en) | Template engine integration method, device, electronic equipment and storage medium | |
CN111045928B (en) | Interface data testing method, device, terminal and storage medium | |
CN111475468A (en) | Log access method, device, equipment and storage medium of newly added system | |
CN107967305A (en) | Image file upload method, server and readable storage medium storing program for executing | |
CN116911572A (en) | Page automation assembly method, system, computer equipment and storage medium | |
CN110851853A (en) | Data isolation method and device, computer equipment and storage medium | |
CN111081258A (en) | Voiceprint model management method, system, storage medium and device | |
CN111585897B (en) | Request route management method, system, computer system and readable storage medium |
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 |