Detailed description of the invention
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments. It should be noted that, in the situation that not conflicting,Feature in embodiment and embodiment in the application can combine mutually.
Figure 1 shows that the flow chart of the implementation method of the web page access processing that preferred embodiment according to the present invention provides. As Fig. 1Shown in, the implementation method of the web page access processing that preferred embodiment of the present invention provides comprises step 101~104.
In step 101, client is carried out corresponding web page access according to the network address information of user's input or selection. Concrete andSpeech, client browser is carried out web page access according to the current network address information of user's input or selection, for example, at address fieldInput domain name or IP address information, or select to represent icon or the link etc. of heterogeneous networks address at webpage or other interface.
In step 102, if described client cannot be accessed described webpage, and the cpu busy percentage of network processes server reaches pre-If value, described network processes server obtains default user class and the access time interval table of comparisons from mapping relations server,And determine with the access time interval table of comparisons access time interval that described user is corresponding according to described user class, according to described visitAsk that the time interval carries out described web page access again, until realize described web page access in Preset Time. Wherein, network processesThe preset value of server cpu busy percentage is for example 95%, also or be 95%~97% scope. The present invention does not limit this.
In the present embodiment, the user class of mapping relations server stores initial setting up and the access time interval table of comparisons. Wherein,User class and the access time interval table of comparisons comprise the corresponding relation at user class, user name and access time interval. In this,User class and access time interval table of comparisons example are as shown in table 1, but the present invention does not limit this.
User class |
User name |
Access time interval |
High |
User 1, user 2 |
Every 0.1 second |
In |
User 3 |
Every 0.2 second |
Low |
User 4, user 5 |
Every 0.3 second |
Table 1
In the present embodiment, in the time that the cpu busy percentage of network processes server reaches preset value first, network processes server fromMapping relations server obtains initial user class and the access time interval table of comparisons, and according to user class and between the access timeFor example, determine relative users (for example, user's 1) access time interval every the table of comparisons (table 1). In this, user 1 userRank is high-level, and the corresponding access time was spaced apart every 0.1 second. So, if the failure of user 1 web page access, netNetwork processing server repeated user 1 web page access operation every 0.1 second, for example, until in Preset Time (, 1 second)Realize corresponding web page access. Wherein, if network processes server repeats user 1 web page access behaviour in Preset TimeDo, still cannot realize the access of corresponding web page, to user's 1 feedback net access to web page failure information.
In step 103, strategy controller obtains user in predetermined period from described network processes server and repeats web page accessFinal successfully repeated accesses number of times, and the described user class that upgrades described mapping relations server stores according to update strategy withThe access time interval table of comparisons.
In the present embodiment, described update strategy is: described strategy controller calculates the repeated accesses of each user in predetermined periodNumber accountings, and count the accounting table of comparisons and determine each user's of renewal rank according to user class and repeated accesses, wherein, eachUser's repeated accesses is counted accounting and is equaled unique user and repeat the final successfully repeated accesses number of web page access and all users weightThe final successfully repeated accesses of the capable web page access of retry is counted the ratio of summation.
Particularly, when the cpu busy percentage of network processes server exceedes preset value first, and obtain from mapping relations serverDefault user class and access time, strategy controller started to upgrade user class and visit according to update strategy when the table of comparisons of intervalAsk the time interval table of comparisons. Wherein, strategy controller obtains user in predetermined period from network processes server and repeats webpageThe final successfully repeated accesses number of access, and obtain data as shown in table 2. In this, table 2 is only example, and the present invention is to thisDo not limit.
User name |
|
|
|
Repeated accesses number |
User 1 |
5 times |
6 times |
9 times |
20 times |
User 2 |
4 times |
3 times |
3 times |
10 times |
User 3 |
2 times |
|
|
2 times |
User 4 |
1 time |
4 times |
|
5 times |
User 5 |
1 time |
2 times |
|
3 times |
Table 2
As shown in table 2, in predetermined period, user 1 runs into the situation that cannot realize web page access for three times, and logical for the first time timeAfter crossing 5 repeated accesses, successfully realize web page access, successfully realize web page access by 6 repeated accesses at twice, theThree times time, successfully realize web page access by 9 repeated accesses. User 3 only runs in predetermined period once cannot realize webpageThe situation of access, and successfully realize web page access after repeated accesses 2 times. The represented meaning of data corresponding to other user asDescribed in user 1 and user 3, therefore repeat no more in this.
With reference to table 2, known according to update strategy, user 1 repeated accesses is counted accounting=20/ (20+10+2+5+3)=50%, user2 repeated accesses is counted accounting=10/ (20+10+2+5+3)=25%, and user 3 repeated accesses is counted accounting=2/ (20+10+2+5+3)=5%, user 4 repeated accesses is counted accounting=5/ (20+10+2+5+3)=12.5%, user 5 repeat visitAsk several accounting=3/ (20+10+2+5+3)=7.5%.
In this, strategy controller storage user class and repeated accesses are counted the accounting table of comparisons. Wherein, user class and repeated accessesThe number accounting tables of comparisons comprise that user class and repeated accesses count the corresponding relation of accounting. In this, user class and repeated accesses number account forMore as shown in table 3 than table of comparisons example, then, the present invention does not limit this.
User class |
Repeated accesses is counted accounting |
High |
Below 40% |
In |
40%~70% |
Low |
70%~100% |
Table 3
In this, each user's who obtains according to table 2 repeated accesses counts accounting and table 3 is known, user 1~user 5 rankCorresponding adjustment is as shown in table 4.
User class |
User name |
High |
User 2, user 3, user 4, user 5 |
In |
User 1 |
Low |
|
Table 4
In the present embodiment, the lastest imformation of for example table 4 is sent to mapping relations server by strategy controller.
In step 104, described network processes server is according to the access tolerance of each user class in the described predetermined period of obtainingTime, and according to described user class and the access time interval table of comparisons of mapping relations server stores described in adjustment policy update.
In the present embodiment, described adjustment strategy is: the interior each user class of described network processes server calculating predetermined periodUser tolerates proportion, and tolerates proportion and the access time interval of adjusting the mode table of comparisons and determine each user class according to userAdjustment mode, wherein, the user of each user class tolerates that proportion equals the web page access of unique user rank in predetermined periodThe ratio of patient time and all user class web page access patient time summation in predetermined period.
Particularly, when the cpu busy percentage of network processes server exceedes preset value first, and obtain from mapping relations serverDefault user class and access time, network processes server started according to adjusting policy update user class when the table of comparisons of intervalWith the access time interval table of comparisons. Wherein, network processes server obtains the user of each user class in predetermined period and tolerates ratioHeavy, and obtain data as shown in table 5. In this, table 5 is only example, and the present invention does not limit this.
Table 5
As shown in table 5, in predetermined period, user 1 has directly closed webpage in the situation that cannot realizing web page access twice,And each used time is respectively 9 seconds and 3 seconds. In predetermined period, user 2 is straight in the situation that cannot realizing web page access three timesConnect and closed webpage, and each used time is respectively 4 seconds, 6 seconds and 3 seconds. The represented meaning of other user data is as user 1And described in user 2, therefore repeat no more in this.
With reference to table 5, according to adjusting, strategy is known, and higher-level user's user tolerates proportion=(12+13)/(12+13+5+6+10)=54.3%, middle rank user's user tolerates proportion=5/ (12+13+5+6+10)=10.9%, lowRank user's user tolerates proportion=(6+10)/(12+13+5+6+10)=34.8%.
In this, network processes server stores user tolerates that proportion and adjustment mode compare the table of comparisons. Wherein, user tolerate proportion withThe adjustment mode table of comparisons comprises that user tolerates the corresponding relation of the adjustment mode at proportion and access time interval. In this, user's toleranceProportion is as shown in table 6 with the mode of adjustment table of comparisons example, and then, the present invention does not limit this.
User tolerates proportion |
Adjustment mode |
70%~100% |
Tune up access time interval corresponding to relative users rank by the first preset ratio |
40%~70% |
Do not adjust access time interval corresponding to relative users rank |
Below 40% |
Dwindle access time interval corresponding to relative users rank by the second preset ratio |
Table 6
Wherein, the first preset ratio described in table 6 is for example that 1.5, the second preset ratio are for example 0.8. But, the present invention coupleThis does not limit.
In this, the user of each user class obtaining according to table 5 tolerate ratio and table 6 known, user class and correspondingAccess time interval is adjusted as shown in table 7.
User class |
Access time interval |
High |
Every 0.1 second |
In |
Every 0.16 second |
Low |
Every 0.24 second |
Table 7
In the present embodiment, the lastest imformation of for example table 7 is sent to mapping relations server by network processes server. Mapping is closedBe that server for example, obtains up-to-date user class and access time interval pair according to the lastest imformation (, table 4 and table 7) receivingAccording to table, up-to-date user class and the access time interval table of comparisons are sent to network processes server simultaneously. When network processes clothesThe cpu busy percentage of business device is while again reaching preset value, and network processes server is according to the up-to-date user class obtaining during with accessBetween the interval table of comparisons repeat web page access.
Figure 2 shows that the schematic diagram of the system that realizes of the web page access processing that preferred embodiment according to the present invention provides. As Fig. 2Shown in, the system that realizes of the web page access processing that preferred embodiment of the present invention provides comprises client 10, network processes server12, mapping relations server 14 and strategy controller 16. Client 10 interconnection network processing servers 12, network processes serviceDevice 12 connection strategy controllers 16 and mapping relations server 14, strategy controller 16 connects mapping relations server 14.
In the present embodiment, client 10, visits for carrying out corresponding webpage according to the network address information of user's input or selectionAsk. If client 10 cannot be accessed described webpage, and the cpu busy percentage of network processes server 12 reaches preset value, netNetwork processing server 12 obtains default user class and the access time interval table of comparisons from mapping relations server 14, and according toUser class determines with the access time interval table of comparisons access time interval that user is corresponding, again carries out according to access time intervalWeb page access, until realize web page access in Preset Time. Strategy controller 16 obtains default from network processes server 12In cycle, user repeats the final successfully repeated accesses number of times of web page access, and upgrades mapping relations service according to update strategyThe user class that device 14 is stored and the access time interval table of comparisons. Network processes server 12 is according to every in the predetermined period of obtainingThe access patient time of individual user class, and user class and the access of storing according to adjustment policy update mapping relations server 14The time interval table of comparisons. About the specific operation process of described system with described in said method, therefore repeat no more in this.
In sum, implementation method and the system of the web page access processing that preferred embodiment provides according to the present invention, at user's netAccess to web page is obstructed, and when webpage cannot be opened on time, network processes server according to access time interval corresponding to user class againCarry out web page access, the result of backward reference failure only while avoiding current network address to access. In addition strategy controller root,Upgrade user class and the access time interval table of comparisons according to update strategy, network processes server is according to adjusting policy update user classNot and the access time interval table of comparisons, thereby do not realize the dynamic adjustment of user class, and when access corresponding to different user rankBetween the dynamic correction at interval.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for those skilled in the art, the present invention can have various modifications and variations. Within the spirit and principles in the present invention all, any amendment of doing, etc.With replacement, improvement etc., within all should being included in protection scope of the present invention.