OP
@jess avatar
UTC

Petty Tyrant
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
 
Petty Tyrant
@jess avatar
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
UTC quote
We're having some lingering issues with the server, specifically the database. It's partly because I'm running a big (actually huge) re-index process in the background, and it is taxing the database a bit more than I expected.

I've been rehearsing this particular re-index for days (a week?) and it went smoother on a test database, but then nobody else was using it at the time. Whenever I stop watching the log output, the process starts slowing down until it brings the whole site to its knees.

So, sorry about that. I've scaled back the re-index a bit, biting off smaller chunks at a time so the server doesn't choke.

There are a couple of other issues, too. There are a couple of places where the new database is stricter than the old database, so I am finding occasional query failures in the logs where I just need to tighten up the parameters a bit. Put another way, some of the database queries were sloppy

The final issue is that someone (or several someones) are running a lot of searches at the moment. No fault there, I'm not asking anyone to not search, but searches being the most strenuous thing the database does, combined with the other issues, means I can see more than a few failures in the logs -- a LOT of failures, actually. Hopefully that will improve as I scale back the re-indexing.

One positive note, too: I've upgraded the underlying storage system used by both the database and the main server itself. Amazon AWS has recently rolled out upgraded SSD drives (gp3) with much better throughput, and I am taking advantage of those everywhere I can.

Thanks, yet again, for your patience.
@der_blechfahrer avatar
UTC

Molto Verboso
ET3 & PX150 & GTS 300 Super Sport MY23 & Yamaha Neo's electric
Joined: UTC
Posts: 1910
Location: Berlin
 
Molto Verboso
@der_blechfahrer avatar
ET3 & PX150 & GTS 300 Super Sport MY23 & Yamaha Neo's electric
Joined: UTC
Posts: 1910
Location: Berlin
UTC quote
"Whenever I stop watching the log output…"

So true.
@max6200 avatar
UTC

Banned
2006 GTS 250
Joined: UTC
Posts: 10590
Location: KS USA
 
Banned
@max6200 avatar
2006 GTS 250
Joined: UTC
Posts: 10590
Location: KS USA
UTC quote
That may explain a few things. I was on the pissed off thread and I threatened to go and punch as many Christmas lights as I could to work out my frustration. Then I suggested that the moderators give me a title for the most light bulbs broken in the shortest amount of time. Just innocent stuff. And then I get this picture and message
Forum member supplied image with no explanatory text
OP
@jess avatar
UTC

Petty Tyrant
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
 
Petty Tyrant
@jess avatar
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
UTC quote
Max6200 wrote:
And then I get this picture and message
I took the site down temporarily when it was clear things were really going sideways. I had done my re-index rehearsals on test databases running on the new gp3 storage modules, but the "real" database was still running on gp2 storage modules. I inadvertently maxed out the capacity of the gp2 storage modules, and AWS started throttling my IO data rate -- making a bad problem even worse. I had to shut everything down and quickly upgrade the database to gp3 storage modules to sidestep being throttled.

Hence the picture of Patrick.
@max6200 avatar
UTC

Banned
2006 GTS 250
Joined: UTC
Posts: 10590
Location: KS USA
 
Banned
@max6200 avatar
2006 GTS 250
Joined: UTC
Posts: 10590
Location: KS USA
UTC quote
jess wrote:
I took the site down temporarily when it was clear things were really going sideways. I had done my re-index rehearsals on test databases running on the new gp3 storage modules, but the "real" database was still running on gp2 storage modules. I inadvertently maxed out the capacity of the gp2 storage modules, and AWS started throttling my IO data rate -- making a bad problem even worse. I had to shut everything down and quickly upgrade the database to gp3 storage modules to sidestep being throttled.

Hence the picture of Patrick.
I thought it was some kind of a prankster
OP
@jess avatar
UTC

Petty Tyrant
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
 
Petty Tyrant
@jess avatar
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
UTC quote
Max6200 wrote:
I thought it was some kind of a prankster
Definitely not. Unless I'm the prankster, playing jokes on myself.
@max6200 avatar
UTC

Banned
2006 GTS 250
Joined: UTC
Posts: 10590
Location: KS USA
 
Banned
@max6200 avatar
2006 GTS 250
Joined: UTC
Posts: 10590
Location: KS USA
UTC quote
I have noticed a roundel on the thread page. Does that mean that I am anything special or any inpending award?
Forum member supplied image with no explanatory text
@madison_sully avatar
UTC

Veni, Vidi, Posti
MP3 500, GTS 250 (both 2008 MY), 2013 Piaggio BV 350, 2014 Can Am Spyder RT
Joined: UTC
Posts: 7672
Location: Madison, Wisconsin
 
Veni, Vidi, Posti
@madison_sully avatar
MP3 500, GTS 250 (both 2008 MY), 2013 Piaggio BV 350, 2014 Can Am Spyder RT
Joined: UTC
Posts: 7672
Location: Madison, Wisconsin
UTC quote
Max6200 wrote:
I have noticed a roundel on the thread page. Does that mean that I am anything special or any inpending award?
That's the link that takes you to the smashy light things.
@max6200 avatar
UTC

Banned
2006 GTS 250
Joined: UTC
Posts: 10590
Location: KS USA
 
Banned
@max6200 avatar
2006 GTS 250
Joined: UTC
Posts: 10590
Location: KS USA
UTC quote
Madison Sully wrote:
That's the link that takes you to the smashy light things.
Thanks. Well that says a lot about me. I used to be a huge Christmas lights smasher. 12 step program and everything. And now that it's back I have relapsed abysmaly.
@fledermaus avatar
UTC

Veni, Vidi, Posti
2007 LX150 2015 GTS 2017 BV 350
Joined: UTC
Posts: 12482
Location: Fond du Lac, Wisconsin
 
Veni, Vidi, Posti
@fledermaus avatar
2007 LX150 2015 GTS 2017 BV 350
Joined: UTC
Posts: 12482
Location: Fond du Lac, Wisconsin
UTC quote
Madison Sully wrote:
That's the link that takes you to the smashy light things.
Or, FWIW, refreshes the smashy light things. Razz emoticon
@max6200 avatar
UTC

Banned
2006 GTS 250
Joined: UTC
Posts: 10590
Location: KS USA
 
Banned
@max6200 avatar
2006 GTS 250
Joined: UTC
Posts: 10590
Location: KS USA
UTC quote
fledermaus wrote:
Or, FWIW, refreshes the smashy light things. Razz emoticon
That's new isn't it? I don't remember seeing it yesterday.
@jimc avatar
UTC

Moderaptor
The Hornet (GT200, aka Love Bug) and 'Dimples' - a GTS 300
Joined: UTC
Posts: 44687
Location: Pleasant Hill, CA
 
Moderaptor
@jimc avatar
The Hornet (GT200, aka Love Bug) and 'Dimples' - a GTS 300
Joined: UTC
Posts: 44687
Location: Pleasant Hill, CA
UTC quote
Heh - if you draw your finger (or mouse pointer) across them they disappear. So no rapid bulb-smashing.
OP
@jess avatar
UTC

Petty Tyrant
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
 
Petty Tyrant
@jess avatar
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
UTC quote
Max6200 wrote:
That's new isn't it? I don't remember seeing it yesterday.
It is new, along with a new search icon.
OP
@jess avatar
UTC

Petty Tyrant
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
 
Petty Tyrant
@jess avatar
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
UTC quote
jimc wrote:
Heh - if you draw your finger (or mouse pointer) across them they disappear. So no rapid bulb-smashing.
No, they really do smash.
@berto avatar
UTC

Ossessionato
2006 LX150 (carbed) | 2007 GT200
Joined: UTC
Posts: 2025
Location: Toronto
 
Ossessionato
@berto avatar
2006 LX150 (carbed) | 2007 GT200
Joined: UTC
Posts: 2025
Location: Toronto
UTC quote
jess wrote:
It is new, along with a new search icon.
Doesn't the roundel duplicate the functionality of the big "wasp" directly above it?

I like the streamlined magnifying glass logo!
OP
@jess avatar
UTC

Petty Tyrant
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
 
Petty Tyrant
@jess avatar
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
UTC quote
berto wrote:
Doesn't the roundel duplicate the functionality of the big "wasp" directly above it?
Yes, but so did the word "Forum" that it replaced.
berto wrote:
I like the streamlined magnifying glass logo!
Trying to save some room on the menu bar, since there are temporarily two different search options.
@jimc avatar
UTC

Moderaptor
The Hornet (GT200, aka Love Bug) and 'Dimples' - a GTS 300
Joined: UTC
Posts: 44687
Location: Pleasant Hill, CA
 
Moderaptor
@jimc avatar
The Hornet (GT200, aka Love Bug) and 'Dimples' - a GTS 300
Joined: UTC
Posts: 44687
Location: Pleasant Hill, CA
UTC quote
I'm finding submitting posts is taking an age, every time. This inevitably leads to the 'insanity' message due to my impatience or quick editing of the (still open) compose window...
@jimc avatar
UTC

Moderaptor
The Hornet (GT200, aka Love Bug) and 'Dimples' - a GTS 300
Joined: UTC
Posts: 44687
Location: Pleasant Hill, CA
 
Moderaptor
@jimc avatar
The Hornet (GT200, aka Love Bug) and 'Dimples' - a GTS 300
Joined: UTC
Posts: 44687
Location: Pleasant Hill, CA
UTC quote
^^^^ 16 seconds.
OP
@jess avatar
UTC

Petty Tyrant
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
 
Petty Tyrant
@jess avatar
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
UTC quote
jimc wrote:
I'm finding submitting posts is taking an age, every time. This inevitably leads to the 'insanity' message due to my impatience or quick editing of the (still open) compose window...
You're not imagining it. It's been happening since we switched over to a new database, though not consistently. I mean, it's always been slow, it's just slower now than usual.

I suspect there is some SQL somewhere that needs to be optimized for the new database, as there are subtle differences in optimal key usage from the old DB to the new. I've already fixed a few of these long-query problems, but have not tackled this one yet.

I kind of suspect that I'm going to discover that the issue lies in updating the search index of the old search system, which has historically been the biggest hit on posting speed. I really want to jettison all that code, now that a new search is in place. But likely it's too soon.

(Sidebar: the new search system does all of its indexing in a background process, separate from user interaction. I may be thick, but I've learned a few lessons over the years from this @#%^ forum software).
@jimc avatar
UTC

Moderaptor
The Hornet (GT200, aka Love Bug) and 'Dimples' - a GTS 300
Joined: UTC
Posts: 44687
Location: Pleasant Hill, CA
 
Moderaptor
@jimc avatar
The Hornet (GT200, aka Love Bug) and 'Dimples' - a GTS 300
Joined: UTC
Posts: 44687
Location: Pleasant Hill, CA
UTC quote
jess wrote:
I kind of suspect that I'm going to discover that the issue lies in updating the search index of the old search system, which has historically been the biggest hit on posting speed. I really want to jettison all that code, now that a new search is in place.
That makes loads of sense.
Quote:
But likely it's too soon.

(Sidebar: the new search system does all of its indexing in a background process, separate from user interaction. I may be thick, but I've learned a few lessons over the years from this @#%^ forum software).
I wasn't going to accuse the new database indexing, as I was sure you'd have avoided that chicane.
OP
@jess avatar
UTC

Petty Tyrant
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
 
Petty Tyrant
@jess avatar
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
UTC quote
jimc wrote:
I wasn't going to accuse the new database indexing, as I was sure you'd have avoided that chicane.
To be fair, it wouldn't be the first time I've been surprised by the side effects of my own changes.
OP
@jess avatar
UTC

Petty Tyrant
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
 
Petty Tyrant
@jess avatar
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
UTC quote
jimc wrote:
I'm finding submitting posts is taking an age, every time. This inevitably leads to the 'insanity' message due to my impatience or quick editing of the (still open) compose window...
I turned on a diagnostic mode that shows me a duration and full explanation of every single SQL query necessary to build each page, all in an effort to track down this long-posting-wait bug.

Guess what's not happening any more?
@jimc avatar
UTC

Moderaptor
The Hornet (GT200, aka Love Bug) and 'Dimples' - a GTS 300
Joined: UTC
Posts: 44687
Location: Pleasant Hill, CA
 
Moderaptor
@jimc avatar
The Hornet (GT200, aka Love Bug) and 'Dimples' - a GTS 300
Joined: UTC
Posts: 44687
Location: Pleasant Hill, CA
UTC quote
jess wrote:
I turned on a diagnostic mode that shows me a duration and full explanation of every single SQL query necessary to build each page, all in an effort to track down this long-posting-wait bug.

Guess what's not happening any more?
Snerk...

edit - But that was ~8 secs.
OP
@jess avatar
UTC

Petty Tyrant
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
 
Petty Tyrant
@jess avatar
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
UTC quote
jimc wrote:
Snerk...

edit - But that was ~8 secs.
The plot thickens!

Edit: Almost instantaneous.
OP
@jess avatar
UTC

Petty Tyrant
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
 
Petty Tyrant
@jess avatar
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
UTC quote
jimc wrote:
Snerk...

edit - But that was ~8 secs.
I've had a slow-post a couple of times, but the database query stats were very fast. In fact, the whole page output was under 300ms or so.

HOWEVER

I think the stats I'm seeing are on the redirect to the topic to show what I just posted, and don't reflect any of the activity prior to the redirect. So I've resorted to putting a slow-query check inline for the whole forum, dumping out lots of cruft to the logs in the hopes that I can spot the problem.
OP
@jess avatar
UTC

Petty Tyrant
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
 
Petty Tyrant
@jess avatar
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
UTC quote
This might be the culprit. It would disproportionately affect Jim and I -- and also stickyfrog and OAD, as the query time is directly dependent on how many posts must be scanned.
Forum member supplied image with no explanatory text
@jimc avatar
UTC

Moderaptor
The Hornet (GT200, aka Love Bug) and 'Dimples' - a GTS 300
Joined: UTC
Posts: 44687
Location: Pleasant Hill, CA
 
Moderaptor
@jimc avatar
The Hornet (GT200, aka Love Bug) and 'Dimples' - a GTS 300
Joined: UTC
Posts: 44687
Location: Pleasant Hill, CA
UTC quote
I was wondering if it had to do with the total number of posts...

^^^^ ~8 secs again.
OP
@jess avatar
UTC

Petty Tyrant
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
 
Petty Tyrant
@jess avatar
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
UTC quote
jimc wrote:
I was wondering if it had to do with the total number of posts...

^^^^ ~8 secs again.
It's not consistent, though.

Hunting through some logs now.
@old_as_dirt avatar
UTC

Veni, Vidi, Posti
2007 GTS
Joined: UTC
Posts: 22880
Location: Harriman, Tennessee, Tn
 
Veni, Vidi, Posti
@old_as_dirt avatar
2007 GTS
Joined: UTC
Posts: 22880
Location: Harriman, Tennessee, Tn
UTC quote
jess wrote:
This might be the culprit. It would disproportionately affect Jim and I -- and also stickyfrog and OAD, as the query time is directly dependent on how many posts must be scanned.
I am retired so I do things slower now.
OP
@jess avatar
UTC

Petty Tyrant
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
 
Petty Tyrant
@jess avatar
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
UTC quote
old as dirt wrote:
I am retired so I do things slower now.
Hah! Well, I don't want to waste any more of your time than I have to, so I'm going to keep hunting down this bug.
OP
@jess avatar
UTC

Petty Tyrant
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
 
Petty Tyrant
@jess avatar
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
UTC quote
jimc wrote:
I was wondering if it had to do with the total number of posts...

^^^^ ~8 secs again.
I'm not 100% positive that the flood control query is wholly responsible for the slowdown, but the way it goes about doing it (vintage phpBB, btw) is 100% shite and should be fixed. Scanning for the maximum post time among all of a user's posts is just... that's just poor planning.

Instead, I'm using redis (our in-memory cacheing system) to keep track of the last post time for each session. It's a small amount of data, and when the session expires, the record disappears. Which is perfect.

(The redis cache has really revolutionized how the MV underpinnings work -- it is soooo nice to have a robust in-memory key store with automatic expiration of keys).

Anyway, posting already feels faster for me. For people with only a few hundred posts, there won't be any noticeable change.
OP
@jess avatar
UTC

Petty Tyrant
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
 
Petty Tyrant
@jess avatar
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
UTC quote
jimc wrote:
I was wondering if it had to do with the total number of posts...

^^^^ ~8 secs again.
Have you seen / felt the long-post-delay in the last 24 hours or so?
@jimc avatar
UTC

Moderaptor
The Hornet (GT200, aka Love Bug) and 'Dimples' - a GTS 300
Joined: UTC
Posts: 44687
Location: Pleasant Hill, CA
 
Moderaptor
@jimc avatar
The Hornet (GT200, aka Love Bug) and 'Dimples' - a GTS 300
Joined: UTC
Posts: 44687
Location: Pleasant Hill, CA
UTC quote
jess wrote:
Have you seen / felt the long-post-delay in the last 24 hours or so?
Let me see...

... as of now it's very, very quick.

Clap emoticon
OP
@jess avatar
UTC

Petty Tyrant
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
 
Petty Tyrant
@jess avatar
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
UTC quote
jimc wrote:
... as of now it's very, very quick.
I am thinking the flood control code was the culprit.

I've also been quietly optimizing a few other queries today, based on the flagged queries I'm seeing in the logs. I've had a couple of medium-sized wins today -- queries that were taking half a second or more reduced down to a few milliseconds.
@max6200 avatar
UTC

Banned
2006 GTS 250
Joined: UTC
Posts: 10590
Location: KS USA
 
Banned
@max6200 avatar
2006 GTS 250
Joined: UTC
Posts: 10590
Location: KS USA
UTC quote
A couple of issues this morning. After I put in my username and password I get the first page and it looks all right but as soon as I hit the general discussion the screen gets misaligned. I'm including a couple of snapshots. Anyway I thought you might want to know
Forum member supplied image with no explanatory text
Forum member supplied image with no explanatory text
OP
@jess avatar
UTC

Petty Tyrant
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
 
Petty Tyrant
@jess avatar
0:7 and counting
Joined: UTC
Posts: 38564
Location: Bay Area, California
UTC quote
Max6200 wrote:
A couple of issues this morning. After I put in my username and password I get the first page and it looks all right but as soon as I hit the general discussion the screen gets misaligned. I'm including a couple of snapshots. Anyway I thought you might want to know
Thanks, Max. See this post and the few after it for resolution.

Modern Vespa is the premier site for modern Vespa and Piaggio scooters. Vespa GTS300, GTS250, GTV, GT200, LX150, LXS, ET4, ET2, MP3, Fuoco, Elettrica and more.

Modern Vespa is made possible by our generous supporters.

Buy Me A Coffee
 

Shop on Amazon with Modern Vespa

Modern Vespa is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com


All Content Copyright 2005-2025 by Modern Vespa.
All Rights Reserved.


[ Time: 0.0386s ][ Queries: 4 (0.0189s) ][ live ][ 334 ][ ThingOne ]