Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-25-2013, 03:45 AM   #1
VIXEN ESCORTS
Confirmed User
 
Industry Role:
Join Date: Oct 2003
Posts: 1,103
NginX and Varnish

Anybody using either or both of these ? Opinions good or bad ? Any problems experienced or issues with scripts ?

Thinking of getting both and upgrading RAM from 8gb to 16gb. should speed things up dramatically right ?
VIXEN ESCORTS is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2013, 03:58 AM   #2
Zeiss
Confirmed User
 
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
If you plan to have like 10-20k users online at the same time, yes. I think it is better to make load balancer. 1 server for mysql, 1 server for nginx and other servers having the nginx server partitions mounted or sth like that.
__________________


Adult Webmasters Guides
Zeiss is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2013, 04:39 AM   #3
freecartoonporn
Confirmed User
 
freecartoonporn's Avatar
 
Industry Role:
Join Date: Jan 2012
Location: NC
Posts: 7,683
depends how you are using it.
but this combination works great.

here is great read for you.

http://ewan.im/900/10-million-hits-a...ng-a-15-server
freecartoonporn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2013, 04:40 AM   #4
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
I using nginx since age of chaos and so far "load problems" is word which i no longer recognize.But again as i have pic sites only that might be one of the reasons why load is fine.And when it comes to varnish,i dont have experience with it(having optimized nginx did the job in my case)but it's not only caching solution,you might try several ones before picking right one.
And when it comes to script issues,that is indeed one of problems when using nginx -first,some scripts could have toocomplicated regex which cannot be converted to nginx automaticly,so then unless someone already converted regex to nginx format it will be toomuch hassle to find right regex
-second,some of php functions are exclusive to apache like php include virtual and that make it impossible to make it work on nginx,and some other functions as well

That problem can be resolved by proxying certain domain to apache,so if i need to use script which not working properly on nginx or have toocomplicated regex then i simply proxy it to apache.In shortly you will need to make several tests before finding the right solution.

Last edited by Klen; 11-25-2013 at 04:41 AM..
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2013, 05:36 AM   #5
VIXEN ESCORTS
Confirmed User
 
Industry Role:
Join Date: Oct 2003
Posts: 1,103
Thanks, so are you saying that if I install Nginx I will have problems with PHP includes, for example.......<? include("filename.php"); ?>
VIXEN ESCORTS is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2013, 05:40 AM   #6
VIXEN ESCORTS
Confirmed User
 
Industry Role:
Join Date: Oct 2003
Posts: 1,103
Ok I've done some reading up, the main purpose here is to give a boost to a dynamic social network site using PHP Fox, so if I'm veering to just getting Varnish. I can't be doing with sorting out a lot of Php problems if that's what Nginx might bring.
VIXEN ESCORTS is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2013, 06:00 AM   #7
freecartoonporn
Confirmed User
 
freecartoonporn's Avatar
 
Industry Role:
Join Date: Jan 2012
Location: NC
Posts: 7,683
Quote:
Originally Posted by VIXEN ESCORTS View Post
Thanks, so are you saying that if I install Nginx I will have problems with PHP includes, for example.......<? include("filename.php"); ?>
no, not with include , but might be with

php include virtual i.e. virtual()

ref : http://stackoverflow.com/questions/1...tion-for-nginx


and if you site load is too high and php code is not too complecated and not using eval functins , then try looking in to

hiphop by facebook, lowers the resources by upto 50 % .
nginx as reverse proxy
hiphop as web server.
varnish for cache.
freecartoonporn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2013, 06:05 AM   #8
Zeiss
Confirmed User
 
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
If you use nginx, you will need php-fpm to run php scripts to begin with...
__________________


Adult Webmasters Guides
Zeiss is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2013, 06:14 AM   #9
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Quote:
Originally Posted by VIXEN ESCORTS View Post
Ok I've done some reading up, the main purpose here is to give a boost to a dynamic social network site using PHP Fox, so if I'm veering to just getting Varnish. I can't be doing with sorting out a lot of Php problems if that's what Nginx might bring.
Ok considering you are new in this,i would recommend to use nginx proxy to apache,that is configuration where nginx handle static files like images/videos and php is handled by apache,so then you dont need to bother with special php configuration,and also everything works fine then as php is handled by apache(apache htaccess can be used then as well).
I peaked at google to see what they say about varnish and found this article:
http://rtcamp.com/tutorials/why-we-n...sh-with-nginx/
and i agree with article author as nginx indeed can be optimized enough so then there is no need for any further optimization.

As you would use nginx proxy to apache,you will then have chance to optimize both nginx and apache,and then might not be need to use anything else further.

So in shortly do this and post back when you get results.

Last edited by Klen; 11-25-2013 at 06:16 AM..
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2013, 07:20 AM   #10
ShowMe69
Confirmed User
 
ShowMe69's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Texas
Posts: 3,147
as someone who has used that platform, stay away from it or get ready to spend a lot if you get any sort of traffic and it still will under perform
__________________
Cuckold, Interracial or Swinger Traffic, Make Money $$
1:285 Conversion Ratio
CuckoldLand Affiliate Program
ShowMe69 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2013, 08:13 AM   #11
mamaliga
la gente está muy loca
 
mamaliga's Avatar
 
Industry Role:
Join Date: Mar 2011
Location: 1Gbps
Posts: 1,321
Quote:
Originally Posted by Zealotry View Post
If you use nginx, you will need php-fpm to run php scripts to begin with...
indeed. Im using nginx with php-fpm, no varnish (yet). The performances are far better than using apache with mod write.
mamaliga is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2013, 08:33 AM   #12
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
really depends on setup... Nginx is good for serving static stuff (jpg, gif, png, css, js, html) while varnish can cache all that in memory for really quick responses. It also caches dynamic content so in general it lowers the load and increases performance by far. It's bit complicated to configure...

I have some experience with both and if anyone need any help - feel free to contact me at celebempire{at}gmail.com

http://www.awmzone.com/services
__________________
Make a bank with Chaturbate - the best selling webcam program
Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2013, 02:01 PM   #13
VIXEN ESCORTS
Confirmed User
 
Industry Role:
Join Date: Oct 2003
Posts: 1,103
Quote:
Originally Posted by KlenTelaris View Post
Ok considering you are new in this,i would recommend to use nginx proxy to apache,that is configuration where nginx handle static files like images/videos and php is handled by apache,so then you dont need to bother with special php configuration,and also everything works fine then as php is handled by apache(apache htaccess can be used then as well).
I peaked at google to see what they say about varnish and found this article:
http://rtcamp.com/tutorials/why-we-n...sh-with-nginx/
and i agree with article author as nginx indeed can be optimized enough so then there is no need for any further optimization.

As you would use nginx proxy to apache,you will then have chance to optimize both nginx and apache,and then might not be need to use anything else further.

So in shortly do this and post back when you get results.
Thanks for all the input, I'm gonna go with using Nginx as a reverse proxy this seems to be quite a common configuration. I'll report back on results.
VIXEN ESCORTS is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-25-2013, 05:05 PM   #14
livexxx
Confirmed User
 
livexxx's Avatar
 
Industry Role:
Join Date: May 2005
Location: UK
Posts: 1,201
Varnish "can" be very good, but with dynamic sites you'll need to dip a lot into its configs and exclusion files etc. to make sure which pages get cached and which don't. With e-commerce it can be a bitch, more so when you have a pair of them load balancing.

Look at something like new relic as well, that can monitor your apache/PHP/MySQL an tell you down to the lines of code what is and isn't performing. It may well identify a bottle neck elsewhere rather than just a lack of grunt to handle requests.
__________________
http://www.webcamalerts.com for auto tweets for web cam operators
livexxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-26-2013, 01:16 AM   #15
symtab
Confirmed User
 
Join Date: Nov 2009
Posts: 415
First of all you should install xdebug (or another php debugging extension) and see which part is eating the most cpu/ram. If its mysql, then you need caching (eg: memcache or redis), or you can also move mysql to another server, if the problem is with I/O then you need faster hdd's. If the problem is related to requests been queued then you need to load balance. Nginx will make static requests (like css/images/js) a lot faster, and with php-fpm it will also make dynamic (php) requests a little faster (not very much). I have never used varnish before...
__________________
Adult Scripts: Adult Script Pro 3.4.0 - Adult Search Script 3.8.0
Adult Traffic: Plug Rush - ExoClick
symtab is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.