Author Topic: Forum Move From Apache  (Read 17186 times)

0 Members and 1 Guest are viewing this topic.

Offline gnifTopic starter

  • Administrator
  • *****
  • Posts: 1672
  • Country: au
Forum Move From Apache
« on: October 29, 2014, 01:50:39 pm »
Hi All,

As many of you know we have been trying to deal with problems with Gateway Timeouts on the website, espessally since the slashdot/had/everything traffic for the FTDIgate. I have been working with Dave over the past few days to improive things on the server end, and I am proud to annouce that we have migrated away from reverse proxying requests to Apache, and we are now handing PHP requests direcly in Nginx.

What does this mean?

1) We can run php-fpm which performs much much faster then php-fcgi that comes with cPanel
2) Nginx is much better at handing concurrent requests and absolutly kills Apache in performance.
3) If we get slow scripts php-fpm can log the details so that I can track down what is going on.

The reason why I am announcing this is because this is a rather major change to the server's configuration and if there is any strange behaviour since the change I would like to know about it. SMF is not nice when it comes to rewrite rules, and I may have missed the odd path/pattern and I need you to let me know if I have.

I would also like some general feedback if people have noticed a general improvement in the forum performance.
« Last Edit: October 29, 2014, 02:13:35 pm by gnif »
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 37661
  • Country: au
    • EEVblog
Re: Forum Move From Apache
« Reply #1 on: October 29, 2014, 02:12:52 pm »
I've split this one from the other thread now.
As per above, gnif has moved the forum away from Apache and now it's running.
It should be much faster:
http://tools.pingdom.com/fpt/#!/uuuQr/https://www.eevblog.com/forum
faster than 81% of all other tested websites it seems  :-+

PLEASE REPORT ANY ISSUES HERE.
Missing URL links, errors, or anything else you notice.
Thanks.
 

Offline dr.diesel

  • Super Contributor
  • ***
  • Posts: 2214
  • Country: us
  • Cramming the magic smoke back in...
Re: Forum Move From Apache
« Reply #2 on: October 29, 2014, 02:16:29 pm »
I would also like some general feedback if people have noticed a general improvement in the forum performance.

Yes,  :-+, a noticeable improvement in performance.

Offline robrenz

  • Super Contributor
  • ***
  • Posts: 3035
  • Country: us
  • Real Machinist, Wannabe EE
Re: Forum Move From Apache
« Reply #3 on: October 29, 2014, 02:23:00 pm »
Very noticeable improvement in response time :-+  It was getting annoyingly slow before

Offline nanofrog

  • Super Contributor
  • ***
  • Posts: 5446
  • Country: us
Re: Forum Move From Apache
« Reply #4 on: October 29, 2014, 02:28:17 pm »
FWIW, I'm still getting a 504 error when I click the show new replies link (cleared history on multiple occasions w/o success).
 

Offline gnifTopic starter

  • Administrator
  • *****
  • Posts: 1672
  • Country: au
Re: Forum Move From Apache
« Reply #5 on: October 29, 2014, 02:31:12 pm »
FWIW, I'm still getting a 504 error when I click the show new replies link (cleared history on multiple occasions w/o success).

Can you please PM me your IP address (whatsmyip.org) and I will see if I can identify what is going on.
 

Offline BeJay

  • Contributor
  • Posts: 12
  • Country: au
Re: Forum Move From Apache
« Reply #6 on: October 29, 2014, 02:39:27 pm »
That is crazy, how can a non apache server be faster? IIS is not even close ;)
 

Online tggzzz

  • Super Contributor
  • ***
  • Posts: 19280
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Forum Move From Apache
« Reply #7 on: October 29, 2014, 02:51:23 pm »
That is crazy, how can a non apache server be faster? IIS is not even close ;)
Read the principles used when designing nginx, and all will be clear.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline gnifTopic starter

  • Administrator
  • *****
  • Posts: 1672
  • Country: au
Re: Forum Move From Apache
« Reply #8 on: October 29, 2014, 02:51:51 pm »
That is crazy, how can a non apache server be faster? IIS is not even close ;)

Normally Apache is blindingly fast, but due to the nature of the solar friggen roadway cosmic galactic force Apache feels it can't keep up anymore and has decided to hand over the performance reigns to Nginx. I mean... Solar Friggen Roadways!

Read the principles used when designing nginx, and all will be clear.

I believe that was toung in cheek :)
 

Online tggzzz

  • Super Contributor
  • ***
  • Posts: 19280
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Forum Move From Apache
« Reply #9 on: October 29, 2014, 02:58:05 pm »
Read the principles used when designing nginx, and all will be clear.

I believe that was toung in cheek :)

Irksome. Now I have to figure out why I didn't see the smiley.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline gnifTopic starter

  • Administrator
  • *****
  • Posts: 1672
  • Country: au
Re: Forum Move From Apache
« Reply #10 on: October 29, 2014, 03:00:18 pm »
Well... just had an outage, but it wasn't the server this time... CloudFlare was reporting the server was offline... lies! I have an active SSH link to it, and lots of people were viewing the forum at the same time.
 

Offline gnifTopic starter

  • Administrator
  • *****
  • Posts: 1672
  • Country: au
Re: Forum Move From Apache
« Reply #11 on: October 29, 2014, 10:35:37 pm »
Who knew, Nginx is pronounced engine-x? Doh! It is so obvious.

Haha, don't worry, even those of us that work with this stuff daily sometimes dont twig. I am still looking for how to pronounce Icinga.
 

Offline RobertoLG

  • Frequent Contributor
  • **
  • Posts: 361
  • Country: br
Re: Forum Move From Apache
« Reply #12 on: October 29, 2014, 10:37:27 pm »
yes, it's loading faster for me, sometimes I had to reload one or two times
 

Offline BurtyB

  • Regular Contributor
  • *
  • Posts: 66
  • Country: gb
    • 8086 Consultancy
Re: Forum Move From Apache
« Reply #13 on: October 29, 2014, 11:12:36 pm »
For me the image is broken to the left of the text "Hello BurtyB" in the heading and when I view the image URL (https://www.eevblog.com/forum/index.php?action=dlattach;attach=44915;type=avatar) in a browser I get the following.

Quote
504 - Gateway Timeout
We are sorry for the inconvenience that this error may be causing you. We are aware of the issue and are working to resolve it, please be patient.

There is no need to report this error.

Thank you for your patience,
Dave & gnif

Which also has a broken image (https://www.eevblog.com/forum/wp-content/themes/gear/images/logo.png) which isn't an image but looks to be the HTML for https://www.eevblog.com/forum/ so probably one of those rules gone wonky.

ChrisB.
 

Offline Nuno_pt

  • Frequent Contributor
  • **
  • Posts: 435
  • Country: pt
Re: Forum Move From Apache
« Reply #14 on: October 29, 2014, 11:35:59 pm »
Loading very fast here, noticeable improvement, job well done.
Nuno
CT2IRY
 

Offline gnifTopic starter

  • Administrator
  • *****
  • Posts: 1672
  • Country: au
Re: Forum Move From Apache
« Reply #15 on: October 29, 2014, 11:48:32 pm »
For me the image is broken to the left of the text "Hello BurtyB" in the heading and when I view the image URL (https://www.eevblog.com/forum/index.php?action=dlattach;attach=44915;type=avatar) in a browser I get the following.

Quote
504 - Gateway Timeout
We are sorry for the inconvenience that this error may be causing you. We are aware of the issue and are working to resolve it, please be patient.

There is no need to report this error.

Thank you for your patience,
Dave & gnif

Which also has a broken image (https://www.eevblog.com/forum/wp-content/themes/gear/images/logo.png) which isn't an image but looks to be the HTML for https://www.eevblog.com/forum/ so probably one of those rules gone wonky.

ChrisB.


The first issue looks like it is your cache, please clear it and reload.

The second issue is certainly a bad rule, I will correct this asap.
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 37661
  • Country: au
    • EEVblog
Re: Forum Move From Apache
« Reply #16 on: October 30, 2014, 12:12:30 am »
Everything seems fine except if I try to access the moderator page: https://www.eevblog.com/forum/moderate/
It just takes me to the main forum.
 

Offline orion242

  • Supporter
  • ****
  • Posts: 746
  • Country: us
Re: Forum Move From Apache
« Reply #17 on: October 30, 2014, 12:23:42 am »
Has anyone reported issues with the forum on Android?

When I try to pull up the forum on my phone it bombs out with an error something to the effect of "too many server redirects".
 

Offline Chris_PL

  • Contributor
  • Posts: 36
  • Country: pl
Re: Forum Move From Apache
« Reply #18 on: October 30, 2014, 01:08:25 pm »
Has anyone reported issues with the forum on Android?

When I try to pull up the forum on my phone it bombs out with an error something to the effect of "too many server redirects".

Hm, no problems here, I'd even say it runs quicker and more smoothly. Tested on both stock Android (4.4.4 KitKat) browser and Chrome mobile.
« Last Edit: October 30, 2014, 01:48:01 pm by Chris_PL »
Safety note: Don't put all your enriched uranium hexafluoride in one bucket. Use at least two or three buckets and keep them in separate corners of the room. This will prevent the premature build-up of a critical mass.  ;)
 

Offline nanofrog

  • Super Contributor
  • ***
  • Posts: 5446
  • Country: us
Re: Forum Move From Apache
« Reply #19 on: October 30, 2014, 04:20:53 pm »
FWIW, I'm still getting a 504 error when I click the show new replies link (cleared history on multiple occasions w/o success).

Can you please PM me your IP address (whatsmyip.org) and I will see if I can identify what is going on.
Just saw this.  :-[

PM sent.
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16272
  • Country: za
Re: Forum Move From Apache
« Reply #20 on: October 30, 2014, 08:06:07 pm »
Seems to be working well, and loading pages are faster too it seems. Looks like a lot of sites are moving to NgineX as well, saw the splash screen a few times while pages are loading when my connection was running at near capacity. Them being interviewed on Floss weekly surely helped.
 

Offline gnifTopic starter

  • Administrator
  • *****
  • Posts: 1672
  • Country: au
Re: Forum Move From Apache
« Reply #21 on: October 30, 2014, 09:44:22 pm »
Seems to be working well, and loading pages are faster too it seems. Looks like a lot of sites are moving to NgineX as well, saw the splash screen a few times while pages are loading when my connection was running at near capacity. Them being interviewed on Floss weekly surely helped.

Heh, it certainly has. I have been using NginX now since their website was sitll completely Russian, it was a PITA to configure as I don't read russian, but it was well worth persisting with it. I have deployed varnish and a few other proxies in different circumstances and in general find myself always gravitating back to NginX, it is truly excellent software and I wish cPanel would adopt it as the norm (I know, needs .htaccess support first, etc).
 

Offline RobertoLG

  • Frequent Contributor
  • **
  • Posts: 361
  • Country: br
Re: Forum Move From Apache
« Reply #22 on: November 02, 2014, 01:39:40 am »
I was geting the bad gateway error an hour or so ago, looks normal for now
 

Offline gnifTopic starter

  • Administrator
  • *****
  • Posts: 1672
  • Country: au
Re: Forum Move From Apache
« Reply #23 on: November 03, 2014, 02:51:33 am »
I was geting the bad gateway error an hour or so ago, looks normal for now

The server had run out of PHP processes, an oversight on my part, this should be fixed.
 

Offline Yago

  • Frequent Contributor
  • **
  • Posts: 651
  • Country: gb
Re: Forum Move From Apache
« Reply #24 on: December 29, 2014, 09:01:39 am »
Been getting this gateway timeout error screen again(for last two days).
Basically everytime I click main forum page (press back is ok).
 

Offline Yago

  • Frequent Contributor
  • **
  • Posts: 651
  • Country: gb
Re: Forum Move From Apache
« Reply #25 on: January 01, 2015, 09:46:19 pm »
Turned out to be corrupted BIOS, clock eventually stopped.
All works fine after reset.

Sorry about that, caught me out!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf