[bind10-dev] bind10.isc.org web server lagginess

David W. Hankins dhankins at isc.org
Mon Aug 30 20:13:04 UTC 2010


On Mon, Aug 30, 2010 at 12:50:36PM -0700, David W. Hankins wrote:
>  12 (2%) /timeline?from=2010-08-03T01%3A22%3A09Z%2B0000&precision=second
>  12 (2%) /timeline?from=2010-08-05T18%3A52%3A56Z%2B0000&precision=second
>  15 (2%) /timeline?from=2010-03-08T10%3A20%3A20Z%2B0000&precision=second
>  17 (3%) /timeline?from=2010-05-16&daysback=30

I don't know why it didn't occur to me to go by first directory to put
all of /timeline together, all of /ticket, and so forth;


root at bind10:/var/log/apache2# awk 'BEGIN { botsecs=0; totalsecs = 0; }  /.*[bB][Oo][Tt].*[0-9]$/ { botsecs += $(NF); } /[0-9]$/ { totalsecs += $(NF); addresses[$1] += $(NF); split($7, dirs, "(/|\?)"); pages[dirs[2]] += $(NF); } END { printf("Top 10 pages:\n"); for (page in pages) { if (pages[page] > 0) { printf("%3d (%d%%) /%s\n", pages[page], (pages[page] * 100) / totalsecs, page) | "sort -n | tail -10"; } } close("sort -n | tail -10"); printf("---\n"); printf("Top 5 client addresses:\n"); for (addr in addresses) { if (addresses[addr] > 0) { printf("%3d (%d%%) %s\n", addresses[addr], (addresses[addr] * 100) / totalsecs, addr) | "sort -n | tail -5"; } } close("sort -n | tail -5"); printf("---\nBots:  %d (%d%%)\nTotal: %d\n", botsecs, (botsecs*100) / totalsecs, totalsecs); }' access.log ssl_access.log


Top 10 pages:
  2 (0%) /
  6 (0%) /log
  9 (1%) /query
 14 (2%) /changeset
 14 (2%) /search
 33 (5%) /roadmap
 33 (5%) /ticket
 41 (6%) /browser
135 (20%) /report
363 (55%) /timeline
---
Top 5 client addresses:
 49 (7%) 95.108.247.253
 70 (10%) 24.236.85.181
 84 (12%) 66.249.68.100
155 (23%) 2001:4f8:3:65:226:c6ff:fe73:d8a2
177 (27%) 149.20.50.219
---
Bots:  231 (35%)
Total: 651

-- 
David W. Hankins	BIND 10 needs more DHCP voices.
Software Engineer		There just aren't enough in our heads.
Internet Systems Consortium, Inc.		http://bind10.isc.org/



More information about the bind10-dev mailing list