monit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I am sooooo sorry [was Re: Another 4.0 problem!]


From: Jan-Henrik Haukeland
Subject: I am sooooo sorry [was Re: Another 4.0 problem!]
Date: Sat, 20 Sep 2003 00:18:48 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion, linux)

> On Fri, 19 Sep 2003, Jan-Henrik Haukeland wrote:
> 
> > The big question of course is if this refactoring helped? I hope so,
> > if not I'll give it another stab when I wake up. (If the problem
> > remains, could you analyze and possibly provide a strace or gdb
> > session, Cristian?)
> 
> I have found the bug.... it is my brain... I am so absolutely SORRY...
> 
> ---- /root/.monitrc ----
>         address iei1
>         allow localhost
>         allow utgard
> ---- /root/.monitrc ----
> 
> Can you see it???  My server would never be able to connect it... but
> it took me also lot of truss and code manipulation to find it out!  Maybe
> we should add an log output... "Unauthorized connection". )-:

Done! I also moved the authenticate code to work immediately both for
non-ssl and for ssl connect.

> I can just repeat I am soooooo sorry!

No problem at all. The rewrite was necessary[1] and I had to do it
someday anyway and this was an incentive to fix it now.


[1] As I said, or rather Stevens said, using stdio with non-blocking
i/o *is* a disaster waiting to happen. So it turned out for the best
since this is now out of the way and the monit httpd server has gotten
an overhaul (more cleanup is needed but now at least it should keep
together without duct tape.) Actually the server is pretty fast (ok,
it doesn't actually read and serve files, but it does other resource
demaning stuff and the following benchmark is not bad:

hauk:[~/utv/release/monit_release/monit]ab -n 10000 http://localhost:2812/
This is ApacheBench, Version 1.3d <$Revision: 1.58 $> apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2001 The Apache Group, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Finished 10000 requests
Server Software:        monit                                              
Server Hostname:        localhost
Server Port:            2812

Document Path:          /
Document Length:        385 bytes

Concurrency Level:      1
Time taken for tests:   4.999 seconds
Complete requests:      10000
Failed requests:        0
Broken pipe errors:     0
Non-2xx responses:      10000
Total transferred:      5740000 bytes
HTML transferred:       3850000 bytes
Requests per second:    2000.40 [#/sec] (mean)
Time per request:       0.50 [ms] (mean)
Time per request:       0.50 [ms] (mean, across all concurrent requests)
Transfer rate:          1148.23 [Kbytes/sec] received

Connnection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0     0    0.0      0     2
Processing:     0     0    0.8      0    69
Waiting:        0     0    0.8      0    69
Total:          0     0    0.8      0    69

-- 
Jan-Henrik Haukeland




reply via email to

[Prev in Thread] Current Thread [Next in Thread]