Connection Scheduling in Web Servers


Autoria(s): Crovella, Mark E.; Frangioso, Robert; Harchol-Balter, Mor
Data(s)

20/10/2011

20/10/2011

31/03/1999

Resumo

Under high loads, a Web server may be servicing many hundreds of connections concurrently. In traditional Web servers, the question of the order in which concurrent connections are serviced has been left to the operating system. In this paper we ask whether servers might provide better service by using non-traditional service ordering. In particular, for the case when a Web server is serving static files, we examine the costs and benefits of a policy that gives preferential service to short connections. We start by assessing the scheduling behavior of a commonly used server (Apache running on Linux) with respect to connection size and show that it does not appear to provide preferential service to short connections. We then examine the potential performance improvements of a policy that does favor short connections (shortest-connection-first). We show that mean response time can be improved by factors of four or five under shortest-connection-first, as compared to an (Apache-like) size-independent policy. Finally we assess the costs of shortest-connection-first scheduling in terms of unfairness (i.e., the degree to which long connections suffer). We show that under shortest-connection-first scheduling, long connections pay very little penalty. This surprising result can be understood as a consequence of heavy-tailed Web server workloads, in which most connections are small, but most server load is due to the few large connections. We support this explanation using analysis.

National Science Foundation (CCR-9706685); National Science Foundation Postdoctoral Fellowship in the Mathematical Sciences

Identificador

Crovella, Mark; Frangioso, Robert; Harchol-Balter, Mor. "Connection Scheduling in Web Servers", Technical Report BUCS-1999-003, Computer Science Department, Boston University, March 31, 1999. [Available from: http://hdl.handle.net/2144/1780]

http://hdl.handle.net/2144/1780

Idioma(s)

en_US

Publicador

Boston University Computer Science Department

Relação

BUCS Technical Reports;BUCS-TR-1999-003

Tipo

Technical Report