The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Periodic spikes, figured out

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Periodic spikes, figured out Posted: Aug 1, 2005 7:00 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Periodic spikes, figured out
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

Recently, I've been getting periodic spikes in the CPU usage of the server - the upshot being that performance would be very slow during those spikes. I decided to take a look at what kinds of keyword searches people were doing against the site, and I figured out what was going on.

A keyword search looks first for a cache hit, and then, failing that, reads in all the blog posts and searches. That can be expensive. I intend to fix that expense, but until recently it hadn't been a problem. I just discovered why I was getting more slowdowns though - a ton of the searches are nothing more than stupid referral attempts, with hrefs embedded in the search. Stupid, because they can't possibly work. However, they were generating a lot of useless churning. I now have a really simple #isBogusSearchRequest check implemented - it looks like this:

^'*href*' match: self searchText

If that answers true, it's a bogus search, and just immediately answers no results. I swear, there's no end to the spy vs. spy nature of spam fighting...

Read: Periodic spikes, figured out

Topic: Markup gone mad Previous Topic   Next Topic Topic: What's right with Smalltalk

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use