Author Topic: Forum Database Upgrade  (Read 22029 times)

0 Members and 1 Guest are viewing this topic.

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37728
  • Country: au
    • EEVblog
Forum Database Upgrade
« on: March 24, 2017, 02:43:33 am »
gnif has upgraded the forum database with a new version fo MySQL that will support InnoDB
Please report any issues with performance, old posts etc.

Thanks
 

Offline Nusa

  • Super Contributor
  • ***
  • Posts: 2416
  • Country: us
Re: Forum Database Upgrade
« Reply #1 on: March 24, 2017, 03:03:26 am »
Forum was nearly useless (nonresponsive when trying to view a post) a few hours ago, and I gave up. Seems fine now, however.
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37728
  • Country: au
    • EEVblog
Re: Forum Database Upgrade
« Reply #2 on: March 24, 2017, 04:04:10 am »
Forum was nearly useless (nonresponsive when trying to view a post) a few hours ago, and I gave up. Seems fine now, however.

Thanks.
Anyone else notice an improvement?
 

Online TheSteve

  • Supporter
  • ****
  • Posts: 3752
  • Country: ca
  • Living the Dream
Re: Forum Database Upgrade
« Reply #3 on: March 24, 2017, 04:07:10 am »
Speed seems fine so far, although I need to retrain my brain as to where the categories are. Moving the EEVblog specific stuff to the top totally makes sense. I feel bad for test equipment(my favorite area) being so close to the bottom though.
VE7FM
 

Offline gnif

  • Administrator
  • *****
  • Posts: 1675
  • Country: au
Re: Forum Database Upgrade
« Reply #4 on: March 24, 2017, 04:27:01 am »
The re-sort was not intentional, it seems the ordering has been messed up in the upgrade, which is strange.

Forum was nearly useless (nonresponsive when trying to view a post) a few hours ago, and I gave up. Seems fine now, however.

Sorry about that, the database was busy converting some tables we prior couldn't as the version of MySQL we were on did not support full text searches, which SMF uses quite extensively. There may be more periods like this in the coming few days as I identify other areas that could use improvement, I have already had to add several indexes to tables that SMF should have.

The goal here is to prevent the 502 errors from occurring that people have been reporting.
 
The following users thanked this post: TheSteve

Offline BravoV

  • Super Contributor
  • ***
  • Posts: 7547
  • Country: 00
  • +++ ATH1
Re: Forum Database Upgrade
« Reply #5 on: March 24, 2017, 04:41:31 am »
The old problem on corrupted attachment still exist, try examples below, look for user's post with photo attachments, and try to view them by clicking them.

What interesting is, at some photo posts, even though they have photo thumbs, but once clicked, it wont pop out the full size photo.

Examples :

-> https://www.eevblog.com/forum/chat/salvaging-old-electronics-parts-and-save-the-world/
-> https://www.eevblog.com/forum/beginners/how-to-better-wire-the-bnc-connector-and-ghz-issue/
 
The following users thanked this post: Jacon

Offline gnif

  • Administrator
  • *****
  • Posts: 1675
  • Country: au
Re: Forum Database Upgrade
« Reply #6 on: March 24, 2017, 05:13:27 am »
I pulled the images in question directly from the server and verified the files on disk are corrupt, these posts are quite old and the issue that caused this may already have been corrected. If you see it on any new posts please be sure to PM me directly, this is the kind of think I want to know about ASAP before too much is corrupted.
 

Offline BravoV

  • Super Contributor
  • ***
  • Posts: 7547
  • Country: 00
  • +++ ATH1
Re: Forum Database Upgrade
« Reply #7 on: March 24, 2017, 05:22:44 am »
I pulled the images in question directly from the server and verified the files on disk are corrupt, these posts are quite old and the issue that caused this may already have been corrected. If you see it on any new posts please be sure to PM me directly, this is the kind of think I want to know about ASAP before too much is corrupted.

Ok, noted.

Btw, just curious if you could run at background "crawling" for low impact, to check or verify attachment especially picture's files integrity, say like thru their unique header to see how much is the damaged, at least the last date when it was occurred, just an idea.

Offline JPortici

  • Super Contributor
  • ***
  • Posts: 3461
  • Country: it
Re: Forum Database Upgrade
« Reply #8 on: March 24, 2017, 05:38:35 am »
did you move eevblog section 'up'?
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 7992
  • Country: gb
Re: Forum Database Upgrade
« Reply #9 on: March 24, 2017, 05:46:35 am »
So the forum's been running on MyISAM the whole time?

Boy, does that explain a few things.
 

Offline gnif

  • Administrator
  • *****
  • Posts: 1675
  • Country: au
Re: Forum Database Upgrade
« Reply #10 on: March 24, 2017, 06:01:21 am »
So the forum's been running on MyISAM the whole time?

Boy, does that explain a few things.

No it has not, most of the database was on InnoDB but a few of the tables contained text columns that were preventing them from being moved across to InnoDB due to the lack of full text search. The issue was the background maintenance tasks were performing a join with one of these tables, which would then cause a lock contention and stop general forum use. That lock would cause a massive backlog of traffic and a huge spike in CPU load, etc... It has involved a ton of testing to determine where the fault was before throwing "fixes" at the server.

When you have a website that is as busy as this and no dev/test platform, you can't just to haphazardly upgrading packages, until now the remaining two MyISAM tables have not been causing an issue, but as load has gone up on the website it became a problem.

There are a few things that are planned to improve website performance, the server is in need of some TLC when it comes to new/faster technologies, etc, it has just had to wait until I could ensure I had enough time to perform the changes and deal with any new problems that may arise. The up side is we get a faster website, the down side is there will be outages in order to perform this work.
 
The following users thanked this post: nugglix

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 7992
  • Country: gb
Re: Forum Database Upgrade
« Reply #11 on: March 24, 2017, 06:04:09 am »
So the forum's been running on MyISAM the whole time?

Boy, does that explain a few things.

No it has not, most of the database was on InnoDB but a few of the tables contained text columns that were preventing them from being moved across to InnoDB due to the lack of full text search.

Ah, well, that's why we have you to give the whole story. Still explains things.

Quote
The issue was the background maintenance tasks were performing a join with one of these tables, which would then cause a lock contention and stop general forum use. That lock would cause a massive backlog of traffic and a huge spike in CPU load, etc... It has involved a ton of testing to determine where the fault was before throwing "fixes" at the server.

When you have a website that is as busy as this and no dev/test platform, you can't just to haphazardly upgrading packages, until now the remaining two MyISAM tables have not been causing an issue, but as load has gone up on the website it became a problem.

Calm, calm, not attacking you, just observing. You're not the only one in this line of business, and when most of the information on things goes through the Dave filter (no offence, Dave), it's hard to get a good picture.

It's great you've found some time to give it the needed love, the ride's been getting a little bumpy.
 
The following users thanked this post: nugglix

Offline gnif

  • Administrator
  • *****
  • Posts: 1675
  • Country: au
Re: Forum Database Upgrade
« Reply #12 on: March 24, 2017, 06:05:44 am »
Calm, calm, not attacking you, just observing. You're not the only one in this line of business, and when most of the information on things goes through the Dave filter (no offence, Dave), it's hard to get a good picture.

Sorry I did not take your comments as an attack, I was just being explicit in detail for those that are not like you and do not understand why there is outages when this website is worked on.
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37728
  • Country: au
    • EEVblog
Re: Forum Database Upgrade
« Reply #13 on: March 24, 2017, 06:24:08 am »
The re-sort was not intentional, it seems the ordering has been messed up in the upgrade, which is strange.

Yeah, no idea why that happened!  :-//
 

Online TheSteve

  • Supporter
  • ****
  • Posts: 3752
  • Country: ca
  • Living the Dream
Re: Forum Database Upgrade
« Reply #14 on: March 24, 2017, 06:29:35 am »
It seems to have switched to alphabetic order:

EEVblog
Electronics
General
Products
VE7FM
 

Online DimitriP

  • Super Contributor
  • ***
  • Posts: 1300
  • Country: us
  • "Best practices" are best not practiced.© Dimitri
Re: Forum Database Upgrade
« Reply #15 on: March 24, 2017, 06:31:55 am »
Quote
the ride's been getting a little bumpy.

Bumpy? Where ?

Anytime I'm here during the last year and a half  I rarely noticed anything wrong or bumpy (other than the very rare, occasional and not too often 502 bad gateway error)

   If three 100  Ohm resistors are connected in parallel, and in series with a 200 Ohm resistor, how many resistors do you have? 
 

Offline gnif

  • Administrator
  • *****
  • Posts: 1675
  • Country: au
Re: Forum Database Upgrade
« Reply #16 on: March 24, 2017, 06:44:16 am »
When you have a website that is as busy as this and no dev/test platform, you can't just to haphazardly upgrading packages,

Perhaps it is time to remedy that situation. Life is so much less stressed if you don't have to reassemble the pieces in a hurry when things go wrong. Much easier to back out to the previous state and try again later.

The issue is cost both financially and time, in an ideal world it would be setup very differently, most of my paying clients have fully redundant setups which makes this much easier, but they come with a pretty hefty price. Many people would be quite amazed at the time involved in setting this up, there are so many options, no one 'best' option, it depends on the requirements and available hardware. For example one of my larger clients (who allows me to be public about my involvement with them :)) have one of the largest phpBB3 forums on the internet, the forum hosting alone involves 6 servers, for redundancy and performance.
« Last Edit: March 24, 2017, 06:47:13 am by gnif »
 
The following users thanked this post: EEVblog

Offline Richard Crowley

  • Super Contributor
  • ***
  • Posts: 4317
  • Country: us
  • KJ7YLK
Re: Forum Database Upgrade
« Reply #17 on: March 24, 2017, 06:46:53 am »
Wow, I have never seen a DB related problem, delay or error on this website.  I wish other forums I frequent were as snappy as EEVblog.  GearSlutz in particular has always been painfully slow.  The only errors I see here are related to availability (mostly error messages from Cloudflare.)
 

Offline gnif

  • Administrator
  • *****
  • Posts: 1675
  • Country: au
Re: Forum Database Upgrade
« Reply #18 on: March 24, 2017, 06:48:36 am »
Wow, I have never seen a DB related problem, delay or error on this website.  I wish other forums I frequent were as snappy as EEVblog.  GearSlutz in particular has always been painfully slow.  The only errors I see here are related to availability (mostly error messages from Cloudflare.)

Depends on time of day, to be honest this morning at 4:00AM (ADST) was the first time I had ever seen the 502 error personally, which was a lucky break as I was able to inspect the cause while it was occurring.
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 7992
  • Country: gb
Re: Forum Database Upgrade
« Reply #19 on: March 24, 2017, 06:57:35 am »
Wow, I have never seen a DB related problem, delay or error on this website.  I wish other forums I frequent were as snappy as EEVblog.  GearSlutz in particular has always been painfully slow.  The only errors I see here are related to availability (mostly error messages from Cloudflare.)

Depends on time of day, to be honest this morning at 4:00AM (ADST) was the first time I had ever seen the 502 error personally, which was a lucky break as I was able to inspect the cause while it was occurring.

The down(under)sides. You miss what must be much of the peak traffic down there in the future.
 

Offline Brumby

  • Supporter
  • ****
  • Posts: 12297
  • Country: au
Re: Forum Database Upgrade
« Reply #20 on: March 24, 2017, 07:14:26 am »
The issue is cost both financially and time, in an ideal world it would be setup very differently, most of my paying clients have fully redundant setups which makes this much easier, but they come with a pretty hefty price. Many people would be quite amazed at the time involved in setting this up, there are so many options, no one 'best' option, it depends on the requirements and available hardware.

There are some of us that do understand.

I have no problems with outages - and I appreciate everything that is done behind the scenes.
 
The following users thanked this post: gnif

Offline gnif

  • Administrator
  • *****
  • Posts: 1675
  • Country: au
Re: Forum Database Upgrade
« Reply #21 on: March 24, 2017, 07:15:14 am »
You would think that since we are in the future we could stop these things before you people in the past see them  :palm:
 
The following users thanked this post: tooki

Offline Brumby

  • Supporter
  • ****
  • Posts: 12297
  • Country: au
Re: Forum Database Upgrade
« Reply #22 on: March 24, 2017, 07:17:33 am »
I do love a dreamer....
 

Offline gnif

  • Administrator
  • *****
  • Posts: 1675
  • Country: au
Re: Forum Database Upgrade
« Reply #23 on: March 24, 2017, 07:40:18 am »
It appears the ordering issue is a bug in SMF, it relies on the order of the records being returned from the database being the order they are stored, with the later version of MySQL the records are returned by the order of the first index (the primary key) by default. This bug was already fixed for the boards themselves, but not for the forum categories.

I am hacking in a fix now and will submit a bug report to SMF to get this fixed.
 
The following users thanked this post: EEVblog

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37728
  • Country: au
    • EEVblog
Re: Forum Database Upgrade
« Reply #24 on: March 24, 2017, 07:44:10 am »
The issue is cost both financially and time, in an ideal world it would be setup very differently, most of my paying clients have fully redundant setups which makes this much easier, but they come with a pretty hefty price. Many people would be quite amazed at the time involved in setting this up, there are so many options, no one 'best' option, it depends on the requirements and available hardware. For example one of my larger clients (who allows me to be public about my involvement with them :)) have one of the largest phpBB3 forums on the internet, the forum hosting alone involves 6 servers, for redundancy and performance.

 :o
*hiding my company credit card*
 
The following users thanked this post: jancumps, tooki

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37728
  • Country: au
    • EEVblog
Re: Forum Database Upgrade
« Reply #25 on: March 24, 2017, 07:45:18 am »
I just got this error when going directly into the Test gear section. It only happened once.
I think we have seen this recently.

 

Offline gnif

  • Administrator
  • *****
  • Posts: 1675
  • Country: au
Re: Forum Database Upgrade
« Reply #26 on: March 24, 2017, 07:46:19 am »
I just got this error when going directly into the Test gear section. It only happened once.
I think we have seen this recently.



It was me hacking in a order fix, a bug in the query, missing a conditional :), ordering is correct now.
« Last Edit: March 24, 2017, 07:49:45 am by gnif »
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37728
  • Country: au
    • EEVblog
Re: Forum Database Upgrade
« Reply #27 on: March 24, 2017, 07:52:57 am »
It was me hacking in a order fix, a bug in the query, missing a conditional :), ordering is correct now.

I've always been amazed how well SMF just handled this stuff, like it's bullet proof.
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37728
  • Country: au
    • EEVblog
Re: Forum Database Upgrade
« Reply #28 on: March 24, 2017, 11:02:16 am »
Some major sever changes have been done which at the moment can be selectively turned on for individual users.
If you'd like to help out testing this new upgrade please message or email gnif your IP address and it can be enabled.
This will affect the main website and the forum.
It's important to test it before it's enabled for everyone.
Thanks.
 

Offline Future soldier

  • Newbie
  • Posts: 6
  • Country: in
Re: Forum Database Upgrade
« Reply #29 on: March 24, 2017, 03:18:42 pm »
fitst post of this thread if quoted gives bad gateway error

https://www.eevblog.com/forum/contests/keysight-scope-month-feedback/

idk the warning said not to report it but the problem seems to be of a specific post
 

Offline Future soldier

  • Newbie
  • Posts: 6
  • Country: in
Re: Forum Database Upgrade
« Reply #30 on: March 24, 2017, 03:20:46 pm »
Some major sever changes have been done which at the moment can be selectively turned on for individual users.
If you'd like to help out testing this new upgrade please message or email gnif your IP address and it can be enabled.
This will affect the main website and the forum.
It's important to test it before it's enabled for everyone.
Thanks.
i am willing to participate
 

Offline Richard Crowley

  • Super Contributor
  • ***
  • Posts: 4317
  • Country: us
  • KJ7YLK
Re: Forum Database Upgrade
« Reply #31 on: March 24, 2017, 03:25:07 pm »
fitst post of this thread if quoted gives bad gateway error

https://www.eevblog.com/forum/contests/keysight-scope-month-feedback/

idk the warning said not to report it but the problem seems to be of a specific post
It works fine for me (quoting it, etc.).
"Bad Gateway" doesn't sound like any kind of database-related problem to me.
 

Offline Future soldier

  • Newbie
  • Posts: 6
  • Country: in
Re: Forum Database Upgrade
« Reply #32 on: March 24, 2017, 03:27:15 pm »
fitst post of this thread if quoted gives bad gateway error

https://www.eevblog.com/forum/contests/keysight-scope-month-feedback/

idk the warning said not to report it but the problem seems to be of a specific post
It works fine for me (quoting it, etc.).
"Bad Gateway" doesn't sound like any kind of database-related problem to me.
so its a loclised issue i gues, i know bad gateway doesnt seem to forum issue
 

Offline MatthewEveritt

  • Supporter
  • ****
  • Posts: 136
  • Country: gb
Re: Forum Database Upgrade
« Reply #33 on: March 24, 2017, 03:58:57 pm »
The gateway error you see isn't specifically database related, but the root cause of the issue is. It's a universal law that error messages can't be too helpful  :P.

I'm more than happy to test things. The IP I'm posting from covers 99% of my forum use.
 

Offline PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5125
  • Country: nl
Re: Forum Database Upgrade
« Reply #34 on: March 24, 2017, 07:37:56 pm »
I noticed that the unread replies link takes lots of time to load, by lots I mean up to 30 seconds  :-\

https://www.eevblog.com/forum/unreadreplies/
Keyboard error: Press F1 to continue.
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21657
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Forum Database Upgrade
« Reply #35 on: March 24, 2017, 08:37:47 pm »
Hmm, a bump in the road, just a moment ago (524 timeout), but it's fine now.  Also had a couple 502s and outages the other day, but obviously, you Aussie bastards were doing the maintenance at local downtime, which is primetime for us... so inconsiderate  :horse:  :-DD

Doesn't seem faster or anything, but my experience might be limited by network speed, and anyway, do whatever it is you need to do with the database to make it less resource intensive / more stable / easier to maintain. :)

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline ProBang2

  • Frequent Contributor
  • **
  • Posts: 302
  • Country: de
Re: Forum Database Upgrade
« Reply #36 on: March 24, 2017, 08:48:25 pm »
I had only yesterday, for a few hours, the "Bad Gateway 502" error.

Today was something strange, but with the EEVBlog main-site:
Tried to load the main-site. Browser freezes for approx. 90 sec. with a blanc screen, only showing a (translated from german) "transmit data with apis.google.com". After that the site loaded as usual.
What the hell is "apis.google.com"?
Had anyone else this problem, too?

Windows7 64Bit
Mozilla Firefox 52.0.1 (32Bit)
Adblocker deactivated on www.wwvblog.com
 

Offline Richard Crowley

  • Super Contributor
  • ***
  • Posts: 4317
  • Country: us
  • KJ7YLK
Re: Forum Database Upgrade
« Reply #37 on: March 25, 2017, 03:09:23 am »
Yes, the overall performance seems noticably slower. But that is the difference between 500ms and 1500~2000ms
 

Offline JPortici

  • Super Contributor
  • ***
  • Posts: 3461
  • Country: it
Re: Forum Database Upgrade
« Reply #38 on: March 25, 2017, 07:07:02 am »
i noticed that tapatalk is very slow to load too
also, the sections are in alphabetical order!
 

Offline Nusa

  • Super Contributor
  • ***
  • Posts: 2416
  • Country: us
Re: Forum Database Upgrade
« Reply #39 on: March 25, 2017, 07:09:37 am »
Forum is feeling very sluggish at the moment.
My IP is on the testing list if it matters.
 

Offline andrewfernie

  • Newbie
  • Posts: 8
Re: Forum Database Upgrade
« Reply #40 on: March 28, 2017, 01:46:57 am »
i noticed that tapatalk is very slow to load too
also, the sections are in alphabetical order!

Tapatalk has been unusable for me the last few days for EEvblog. Best case is that it is very slow to load, but most of the time I give up and go to a web browser. Same situation with iOS and Android.

Andrew
 

Offline gnif

  • Administrator
  • *****
  • Posts: 1675
  • Country: au
Re: Forum Database Upgrade
« Reply #41 on: March 28, 2017, 05:08:24 am »
Reports are no longer required of poor performance, we can clearly see the issue in the server's monitoring metrics. The root cause is that switching the remaining tables to InnoDB has blown out their size and they are unable to be cached in ram, as Dave stated we are getting a RAM upgrade after which there will be some tuning in order to take advantage of the additional RAM which should alleviate the issue.
 

Offline JPortici

  • Super Contributor
  • ***
  • Posts: 3461
  • Country: it
Re: Forum Database Upgrade
« Reply #42 on: March 28, 2017, 05:31:42 am »
i noticed that tapatalk is very slow to load too
also, the sections are in alphabetical order!

Tapatalk has been unusable for me the last few days for EEvblog. Best case is that it is very slow to load, but most of the time I give up and go to a web browser. Same situation with iOS and Android.

Andrew
yesterday my new phone (sigh) arrived, it was a lot faster than the old one to load tapatalk pages.. fast enough to point the finger at the crappy wifi for slowness
 

Offline andrewfernie

  • Newbie
  • Posts: 8
Re: Forum Database Upgrade
« Reply #43 on: March 28, 2017, 10:51:57 am »


i noticed that tapatalk is very slow to load too
also, the sections are in alphabetical order!

Tapatalk has been unusable for me the last few days for EEvblog. Best case is that it is very slow to load, but most of the time I give up and go to a web browser. Same situation with iOS and Android.

Andrew

That RAM upgrade last night seems to have resolved any problems I was having. All good now.
 

Offline gnif

  • Administrator
  • *****
  • Posts: 1675
  • Country: au
Re: Forum Database Upgrade
« Reply #44 on: April 03, 2017, 10:00:04 am »
We are aware there seems to be an issue with a database query, I am investigating and will update shortly.
 

Offline gnif

  • Administrator
  • *****
  • Posts: 1675
  • Country: au
Re: Forum Database Upgrade
« Reply #45 on: April 03, 2017, 10:09:53 am »
We are aware there seems to be an issue with a database query, I am investigating and will update shortly.

Problem resolved, there was an bug in the database sort conditionals I hacked in last week.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf