LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > What settings for maximum speed on a large configuration ?

Reply
 
Thread Tools Display Modes
  #31  
Old 01-31-2013, 11:50 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
Static Requests/second :0
Dynamic Requests/second :0
Outbound Bandwidth (bytes/sec):0
Inbound Bandwidth (bytes/sec):0
Connection Soft Limit: very large number
Connection Hard Limit: very large number

will disable the Throttling
Reply With Quote
  #32  
Old 02-01-2013, 05:18 AM
Monarobase Monarobase is offline
Senior Member
 
Join Date: Jan 2013
Posts: 95
Hello,

With throttling disabled and keep-alive at zero it still happens
Reply With Quote
  #33  
Old 02-01-2013, 08:42 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
1)any improvement regarding the error rate before and after the change?

2)any URL pattern or method(GET or POST) which is easier to trigger the error or just random ?

3)will the same error happen between T-WAF proxy and other web server(apache, nginx etc)?

again, it'll be much helpful if can work out a test case which can easily reproduce the error.
Reply With Quote
  #34  
Old 02-01-2013, 10:18 AM
Monarobase Monarobase is offline
Senior Member
 
Join Date: Jan 2013
Posts: 95
Quote:
1)any improvement regarding the error rate before and after the change?
No yesterday I got 10 errors between 0am and 7 pm
Today I got 9 errors from 0am and 7 pm

2)any URL pattern or method(GET or POST) which is easier to trigger the error or just random ?

It seems random, I don't have many POST requests so it's not likley to happen with a POST request. It happens randomly on images / html / PHP requests. (about 1 for every 1000 requests)

3)will the same error happen between T-WAF proxy and other web server(apache, nginx etc)?

An ASL developper has just told me that they have never seen this issue before and protect nginx servers without issues. Apache servers generaly integrate mod_security directly so they don't need the T-WAF.

Quote:
again, it'll be much helpful if can work out a test case which can easily reproduce the error
Yes it would, but I've even tried benchmarking (siege) it without managing to create an error. It doesn't seem to happen so much when the server is under more stress.

Apache docs mention a race condition :

http://httpd.apache.org/docs/2.2/en/...roxy_http.html

Quote:
proxy-initial-not-pooled
If this variable is set no pooled connection will be reused if the client connection is an initial connection. This avoids the "proxy: error reading status line from remote server" error message caused by the race condition that the backend server closed the pooled connection after the connection check by the proxy and before data sent by the proxy reached the backend. It has to be kept in mind that setting this variable downgrades performance, especially with HTTP/1.0 clients.

Last edited by Monarobase; 02-01-2013 at 10:20 AM..
Reply With Quote
  #35  
Old 02-01-2013, 07:11 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
Quote:
proxy-initial-not-pooled
so can you set the environment variable on T-WAF ?

the frontend and backend litespeed better to set to keep alive
i.e., set litespeed
Max Keep-Alive Requests
to default value
Reply With Quote
  #36  
Old 02-02-2013, 12:39 AM
Monarobase Monarobase is offline
Senior Member
 
Join Date: Jan 2013
Posts: 95
Quote:
so can you set the environment variable on T-WAF ?
I'm giving it a try to see if it makes any difference. I will let you know if it removes the errors.

ASL said I should set the T-WAF (mod_security) to enforce non compressed data because this could cause issues and also prevent mod_security from analysing the data transmitted.

I've given this (disabling compression) a try but it doesn't help either (I still get errors). I think I will activate gzip compression in the T-WAF so it can analyze the data given by litespeed and see what the performance impact is.

I wil reactive keep-alive once I've finished the test with
Code:
setEnv proxy-initial-not-pooled 1

Last edited by Monarobase; 02-02-2013 at 12:41 AM..
Reply With Quote
  #37  
Old 02-09-2013, 03:20 AM
Monarobase Monarobase is offline
Senior Member
 
Join Date: Jan 2013
Posts: 95
setEnv proxy-initial-not-pooled 1

solves the problem

I've now got to test compressing with mod_deflate to see how much latency it adds. Otherwise I think I will just tell my customers they can't compress their data.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:18 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.