Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Jul 13, 2015 10:11 pm 
Offline
Senior Newbie

Joined: Fri Jun 26, 2015 10:53 am
Posts: 7
Hello,

I'm a newbie and ask for some help on Linode 2G optimazation.

I've just upgraded Linode 1G to 2G,and installed Nginx+php-fpm.

I made a separate configuration file of nginx.conf for my domain.

Can anyone give me some suggestion on how to optimize Nginx+php-fpm for Linode 2G ? Thank you!

Configuration of .conf will be better :)

Thank you!


Top
   
PostPosted: Wed Jul 15, 2015 9:00 am 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Do not post the same message in two different forums.

If your server was doing OK with 1G (perhaps a bit slow, but fine other than that), you just need to let each service consume a bit more RAM now that you have some breathing room.

If you have a database such as MySQL or PostgreSQL, letting it use more RAM for its buffers (key_buffer, innodb_buffer_pool_size, shared_buffers, or whatever setting is relevant to your database) will probably be the single most important adjustment that you can make. Let your database use 25-30% of your RAM.

If you were previously having trouble with the number of concurrent visitors that php-fpm could handle, you might try increasing pm.max_children a bit as well. But don't make it too high. 10-12 is probably the maximum amount that a 2G Linode can sustain while running a typical PHP application.

Other than that, do nothing and just let the kernel use the extra memory in whatever way it sees fit.


Top
   
PostPosted: Wed Jul 15, 2015 9:50 am 
Offline
Senior Newbie

Joined: Fri Jun 26, 2015 10:53 am
Posts: 7
Sorry, I waited for one day and nobody answer, so I posted another message in anther forum.

Thank you for your suggestion!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group