PDA

View Full Version : Make gzip more selective


Pilot
Sun 12th May '02, 3:36am
I like the effect of turning VB GZIP on, in terms of less bandwidth and effectively much faster responses as my server is a lot of IP hops away from my users.

But I am concerned at the CPU load that it causes. Now I realise this is a tradeoff but it would be great if the VB GZIP option was more selective - for example:

1 - Set a CPU %busy threshold so that if a request comes in and the CPU is over that threshold then GZIP is not used - that way at busy times you are not making things worse for the CPU. This would be an automatic load limiting effect but without stopping people using the site.

2 - Allow the GZIP option to apply to certain users or groups of users (eg admin, moderators, members, guests) selectively - so the mods can have faster responses without the guests killing the CPU for example.

3 - Apply the GZIP option to certain forums only.

Wayne Luke
Sun 12th May '02, 2:54pm
I actually like #2....

Jake Bunce
Sun 12th May '02, 3:33pm
#1 would be cool too. there is already a load limiting option. i don't think it would be very hard to add a condition for gzip that checks the load.

Pilot
Mon 13th May '02, 3:19pm
Which PHP script checks the GZIP CP option, I would like to see if I can implement a simple hack?