Embodiment
Hereinafter also describe in conjunction with the embodiments the present invention in detail with reference to accompanying drawing.Need to prove, in the situation that do not conflict, embodiment and the feature among the embodiment among the application can make up mutually.
Figure 1 shows that the flow chart of the web page access processing method that preferred embodiment according to the present invention provides.As shown in Figure 1, the web page access processing method that provides of preferred embodiment of the present invention 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.Particularly, client browser is carried out web page access according to user input or the current network address information selected, for example in address field input domain name or IP address information, or selects to represent the icon of heterogeneous networks address or link etc. at webpage or other interface.
In step 102, if described client can't be accessed described webpage, and the cpu busy percentage of network processes server reaches preset value, then described network processes server obtains default user class and the access time interval table of comparisons from the mapping relations server, and determine the access time interval that described user is corresponding according to described user class with the access time interval table of comparisons, according to again carrying out described web page access in described access time interval, until in Preset Time, realize described web page access.Wherein, the preset value of network processes server cpu busy percentage for example is 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, yet the present invention does not limit this.
User class |
User name |
The access time interval |
High |
User 1, user 2 |
Every 0.1 second |
In |
The user 3 |
Every 0.2 second |
Low |
User 4, user 5 |
Every 0.3 second |
Table 1
In the present embodiment, when the cpu busy percentage of network processes server reaches preset value first, the network processes server obtains initial user class and the access time interval table of comparisons from the mapping relations server, and determine the access time interval of relative users (for example, the user 1) according to user class and the access time interval table of comparisons (for example table 1).In this, user 1 user class 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, then the network processes server repeated user 1 web page access operation every 0.1 second, until realize corresponding web page access in Preset Time (for example, 1 second).Wherein, if the network processes server repeats user 1 web page access operation in Preset Time, still can't realize the access of corresponding web page, then to user's 1 feedback net access to web page failure information.
In step 103, strategy controller obtains in the predetermined period user from described network processes server and repeats the final successful repeated accesses number of times of web page access, and upgrades described user class and the access time interval table of comparisons of described mapping relations server stores according to update strategy.
In the present embodiment, described update strategy is: described strategy controller calculates the repeated accesses of each user in the predetermined period and counts accounting, and count the rank that the accounting table of comparisons is determined each user of upgrading according to user class and repeated accesses, wherein, each user's repeated accesses count accounting equal unique user repeat the final successful repeated accesses number of web page access and all users repeat web page access finally successful repeated accesses count the ratio of summation.
Particularly, when the cpu busy percentage of network processes server surpasses preset value first, and obtain default user class and access time during the table of comparisons of interval from the mapping relations server, strategy controller begins to upgrade user class and the access time interval table of comparisons according to update strategy.Wherein, strategy controller obtains in the predetermined period user from the network processes server and repeats the final successful repeated accesses number of web page access, and obtains data as shown in table 2.In this, table 2 is example only, and the present invention does not limit this.
User name |
? |
? |
? |
The repeated accesses number |
The user 1 |
5 times |
6 times |
9 times |
20 times |
The user 2 |
4 times |
3 times |
3 times |
10 times |
The user 3 |
2 times |
? |
? |
2 times |
The user 4 |
1 time |
4 times |
? |
5 times |
The 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 can't realize web page access for three times, and in the time of for the first time by successfully realizing web page access behind 5 repeated accesses, successfully realize web page access by 6 repeated accesses at twice, successfully realize web page access by 9 repeated accesses in the time of for the third time.User 3 only runs into the situation that once can't realize web page access in predetermined period, and successfully realizes web page access behind repeated accesses 2 times.The represented meaning of data corresponding to other user is as described in user 1 and the user 3, therefore repeat no more in this.
With reference to table 2, according to update strategy as can be known, user 1 repeated accesses is counted accounting=20/ (20+10+2+5+3)=50%, user 2 repeated accesses is counted accounting=10/ (20+10+2+5+3)=25%, 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%, and user 5 repeated accesses is counted 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 accesses are counted the accounting table of comparisons and are comprised that user class and repeated accesses count the corresponding relation of accounting.In this, it is as shown in table 3 that user class and repeated accesses are counted accounting table of comparisons example, and 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 is counted accounting and table 3 as can be known, and the corresponding adjustment of user 1~user 5 rank is as shown in table 4.
User class |
User name |
High |
User 2, user 3, user 4, user 5 |
In |
The user 1 |
Low |
? |
Table 4
In the present embodiment, the strategy controller for example lastest imformation of table 4 is sent to the mapping relations server.
In step 104, described strategy controller obtains the access patient time of each user class in the described predetermined period from described network processes server, and according to described user class and the access time interval table of comparisons of adjusting the described mapping relations server stores of policy update.
In the present embodiment, described adjustment strategy is: the user that described strategy controller calculates each user class in the predetermined period tolerates proportion, and tolerate proportion and the adjustment mode of adjusting the mode table of comparisons and determine the access time interval of each user class according to the user, wherein, the user of each user class tolerates that proportion equals the web page access patient time of unique user rank in predetermined period and the ratio of the web page access patient time summation of all user classs in predetermined period.
Particularly, when the cpu busy percentage of network processes server surpasses preset value first, and obtain default user class and access time during the table of comparisons of interval from the mapping relations server, strategy controller begins according to adjusting policy update user class and the access time interval table of comparisons.Wherein, strategy controller obtains from the network processes server that the user of each user class tolerates proportion in the predetermined period, and obtains data as shown in table 5.In this, table 5 is example only, 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 can't realize web page access for twice, and each time spent was respectively 9 seconds and 3 seconds.In predetermined period, user 2 has directly closed webpage in the situation that can't realize web page access for three times, and each time spent was respectively 4 seconds, 6 seconds and 3 seconds.The represented meaning of other user data is as described in user 1 and the user 2, therefore repeat no more in this.
With reference to table 5, according to adjusting strategy as can be known, 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%, and lower-level user's user tolerates proportion=(6+10)/(12+13+5+6+10)=34.8%.
In this, strategy controller storage user tolerates that proportion and adjustment mode compare the table of comparisons.Wherein, the user tolerates that proportion and the mode of the adjustment table of comparisons comprise that the user tolerates the corresponding relation of the adjustment mode at proportion and access time interval.In this, the user tolerates that proportion is as shown in table 6 with the mode of adjustment table of comparisons example, and then, the present invention does not limit this.
The user tolerates proportion |
The 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, described the first preset ratio of table 6 for example is that 1.5, the second preset ratio for example are 0.8.Yet the present invention does not limit this.
In this, the user of each user class that obtains according to table 5 tolerates ratio and table 6 as can be known, and user class and corresponding access time interval are adjusted as shown in table 7.
User class |
The 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 strategy controller for example lastest imformation of table 7 is sent to the mapping relations server.The mapping relations server obtains up-to-date user class and the access time interval table of comparisons according to the lastest imformation (for example, table 4 and table 7) that receives, and simultaneously up-to-date user class and the access time interval table of comparisons is sent to the network processes server.When the cpu busy percentage of network processes server reached preset value again, the network processes server repeated web page access according to the up-to-date user class and the access time interval table of comparisons that obtain.
Figure 2 shows that the schematic diagram of the web page access treatment system that preferred embodiment according to the present invention provides.As shown in Figure 2, the web page access treatment system that provides of preferred embodiment of the present invention comprises client 10, network processes server 12, mapping relations server 14 and strategy controller 16.Client 10 interconnection network processing servers 12, network processes server 12 connection strategy controllers 16 and mapping relations server 14, strategy controller 16 connects mapping relations server 14.
In the present embodiment, client 10 is used for carrying out corresponding web page access according to the network address information of user's input or selection.If client 10 can't be accessed described webpage, and the cpu busy percentage of network processes server 12 reaches preset value, then network processes server 12 obtains default user class and the access time interval table of comparisons from mapping relations server 14, and determine the access time interval that the user is corresponding according to user class with the access time interval table of comparisons, again carry out web page access according to the access time interval, until in Preset Time, realize web page access.Strategy controller 16 obtains in the predetermined period user from network processes server 12 and repeats the final successful repeated accesses number of times of web page access, and upgrades user class and the access time interval table of comparisons that mapping relations server 14 is stored according to update strategy.Strategy controller 16 obtains the access patient time of each user class in the predetermined period from network processes server 12, and according to user class and the access time interval table of comparisons of adjusting 14 storages of policy update mapping relations server.Specific operation process about described system is described with above-mentioned method, therefore repeat no more in this.
In sum, preferred embodiment provides according to the present invention web page access processing method and system, web page access the user is obstructed, when webpage can't be opened on time, the network processes server is carried out web page access again according to access time interval corresponding to user class, the result of backward reference failure only when avoiding the current network address to access.In addition, strategy controller upgrades user class and the access time interval table of comparisons according to update strategy, and according to adjusting policy update user class and the access time interval table of comparisons, thereby realize the dynamic adjustment of user class, and the dynamic correction at access time interval corresponding to different user rank.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.