Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Optimized LNMP iso VPS provider
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Optimized LNMP iso VPS provider

I was wondering if there is any provider out there that offers ISOs for installation of OS with pre-configured nginx/php (and probably other things like Varnish etc) also based on the amount of RAM (since such a scenario must be using different template for a 512mb and an 1024 one).

Please share your opinions :-)
Actually looking for a way to get the maximum output of a VPS web server, since every optimization guide that i've tried, i think that im missing in results.

Comments

  • What are you running on your web server, and what VPS provider are you currently using? How are you benchmarking performance? Does loading your website fetch external resources from a webserver you don't control?

    The default Nginx, MySQL server and either php fastcgi or FPM should be fine for all but the largest sites.

  • @joodle likes to play with templates IIRC.

  • Centinmod has a good installer you can use.

  • @rincewind yes, of course. But my worries are all about tweaking. You know, installing centinmod to a 128mb vps and to a 32gb one, need different settings for each one.

    @linuxthefish a bunch of wordpress sites. Currently using RN. Various server-side tools like siege, other external like load.io, pingdom testing tool etc. Im talking about performance websites, well DOM optimized etc. Almost every website is loading at least 1-2 resources from external sources. I m pretty sure that google's server or the connection between it and my RN vps is not the problem for the delay, since pingdom is not reporting such things. TTFB is still bad, but not because of the DOM - because of the queries' time response. I only managed to get a quick website load via Varnish, but i guess that i can have the same performance from my PHP without having to cache my objects, if my VPS is well optimized.

  • rincewindrincewind Member
    edited October 2015

    @punkstar69: If you are really looking at performance, you will have to do it by hand yourself. There is no easy way. You can start with a template like Centinmod, and go from there. But there will always be something you can add or subtract that is specific to your situation. If you are hosting Wordpress, you could try BuSo Lightning. Maybe try out a CDN as well.

    I usually compile all performance critical stuff (like Nginx/Python/SSL) from source with "-O2 -march=native -mtune=native" flags. For safety, I add "-fstack-protector-strong", RELRO, LTO.

    I dont use PHP, but I would recommend something like HHVM. Tweaking your databases with the right indexes makes a big difference. I spent quite some time looking through query plans to get the right mix.

  • raindog308raindog308 Administrator, Veteran

    If you mean "upload your own ISO" @KuJoe supports this (secure dragon)

    Thanked by 1GM2015
  • perennateperennate Member, Host Rep

    We support custom ISO's on Luna Node. You can specify a URL to the ISO and the panel will download it. You can then provision virtual machines from the ISO.

    Thanked by 1GM2015
  • Guys, i never asked about uploading a custom iso. I m wondering if there is any provider out there, that offers preconfigured optimized isos for every setup. I.e if i purchase a 512mb vps i will have the chance to install a custom iso for a 512mb, preconfigured to working on its limits (as a webserver).
    Its important that there must be more than 1 isos, for every single type of vps, since optimization must be done on cores' usage, amount of memory etc.

    @rincewind thanks for the useful answer.

  • punkstar69 said: Guys, i never asked about uploading a custom iso. I m wondering if there is any provider out there, that offers preconfigured optimized isos for every setup. I.e if i purchase a 512mb vps i will have the chance to install a custom iso for a 512mb, preconfigured to working on its limits (as a webserver). Its important that there must be more than 1 isos, for every single type of vps, since optimization must be done on cores' usage, amount of memory etc.

    Maybe you are looking for this: https://www.turnkeylinux.org ?

  • @vRozenSch00n said:
    Maybe you are looking for this: https://www.turnkeylinux.org ?

    Unfortunately no. This is an automation tool regarding installation, not a preconfigured optimized iso. It leaves default config files there for webserver, php, etc

    Thanked by 1vRozenSch00n
  • Im searching something like this: https://blog.asmallorange.com/2013/08/cloud-vps-wordpress-optimized-in-5-minutes-or-less/

    If you scroll down, you will notice this line:

    Performance tuned configuration values for PHP, MySQL, PHP-FPM and NGinx

  • punkstar69 said: Im searching something like this: https://blog.asmallorange.com/2013/08/cloud-vps-wordpress-optimized-in-5-minutes-or-less/

    If you scroll down, you will notice this line:

    Performance tuned configuration values for PHP, MySQL, PHP-FPM and NGinx

    Aaah, it is a specific template for asmallorange.

    What I usually do is build a system in proxmox or hypervm, optimize it and save it for later use :)

  • eva2000eva2000 Veteran
    edited October 2015

    punkstar69 said: yes, of course. But my worries are all about tweaking. You know, installing centinmod to a 128mb vps and to a 32gb one, need different settings for each one.

    FYI, centmin mod auto installer auto configures nginx, php-fpm, mariadb 10 mysql and csf firewall settings optimally depending on the detected amount of memory and cpu resources the server has ;) They are still basic optimisations but the base working configurations are tailored to amount of memory and cpu resources the server has + the type of virtualization that is detected i.e. Xen, KVM or OpenVZ or non-virtualized server.

    Also Centmin Mod has a menu option and cli based option for auto install of locked down Wordpress + WP Super Cache configuration http://centminmod.com/nginx-wordpress-installer.html which has auto setup an auto wordpress plugin updating cronjob as well which supports wp full core auto updating too and setup nginx rate limiting of requests for wp-login.php and xmlrpc.php etc

    My Wordpress 7 site is using the WP + WP Super Cache setup with CentOS 7 and PHP 7 http://wordpress7.centminmod.com/ i.e. http://wordpress7.centminmod.com/74/wordpress-super-cache-benchmarks-blitz-io-load-test-237-million-hitsday/

  • vRozenSch00nvRozenSch00n Member
    edited October 2015

    AFAIK, so far Centminmod is the best script to install and optimize LEMP and it is continuously maintained.

    Thanked by 1eva2000
  • vRozenSch00n said: AFAIK, so far Centminmod is the best script to install and optimize LEMP and it is continuously maintained.

    thanks for kind words.. it has to be well maintained as I eat my own dog food and currently have 80+ servers of my own running Centmin Mod LEMP stack :)

    Thanked by 1vRozenSch00n
  • @eva2000 said:
    thanks for kind words.. it has to be well maintained as I eat my own dog food and currently have 80+ servers of my own running Centmin Mod LEMP stack :)

    Thanks. Wasnt aware of the way it works during configuration.
    Thought that it would be a static setup/configuration there.

    May I ask you why you have excluded Varnish from it?

  • eva2000eva2000 Veteran
    edited October 2015

    varnish isn't needed when wp-super cache is installed and centmin mod has varnish repo support included via official varnish yum repo at http://centminmod.com/yum.html so you can install it yourself and configure varnish whichever way you see fit :)

    i don't do any varnish configs and leave it to end user to configure the way the want it

    fyi, beyond wp super cache, the page at http://centminmod.com/nginx-wordpress-installer.html has link to how to setting up nginx level redis cache full page + object caching for wordpress installs created from centmin.sh menu option 22. Nginx redis level caching is ~45% faster than WP Super Cache method.

    oh and if you're game you can test out Centmin Mod beta branch too http://centminmod.com/changelog.html more goodies in that :D

  • @eva2000 said:
    varnish isn't needed when wp-super cache is installed and centmin mod has varnish repo support included via official varnish yum repo at http://centminmod.com/yum.html so you can install it yourself and configure varnish whichever way you see fit :)

    i don't do any varnish configs and leave it to end user to configure the way the want it

    fyi, beyond wp super cache, the page at http://centminmod.com/nginx-wordpress-installer.html has link to how to setting up nginx level redis cache full page + object caching for wordpress installs created from centmin.sh menu option 22. Nginx redis level caching is ~45% faster than WP Super Cache method.

    oh and if you're game you can test out Centmin Mod beta branch too http://centminmod.com/changelog.html more goodies in that :D

    No offence, but IMO server-side solutions like Varnish work better than wordpress plugins. At least, my tests have proved this.

    Varnish typically caches web pages sent by web/application servers, using logic at that side to decide if serve pages/objects from cache instead of doing a new entire request, more or less regardless your code if there is one.

    Memcached and Redis are used by your own application logic. Could this data (a db query result, some data from an external service, some complex math or even a portion of a web page) that took so long to generate be useful in another invocation? Then put it in memory, give it a lifetime of validity, and be sure to have code to check the cache before calculate/get that data again. They differ in implementation, architecture and features, which one is better depend on the situation. It seems that for my implementation, Varnish will work better.

    I've also heard people going with Redis + APC with Varnish on top.

  • eva2000eva2000 Veteran
    edited October 2015

    No doubt varnish cache can be better but as centmin mod is provided free, I am not going to do the leg work in providing varnish vcl configurations for every web app combination out there. To minimise what I support for free, I opt to choose solutions which can be automated and less problematic for both me and end user :)

    FYI, Redis full page cache is at server level / Nginx level via Redis nginx modules and not via wordpress plugin level so more comparable to Varnish cache or Nginx fastcgi_cache than WP Super Cache plugin.

    Centmin Mod Nginx modules involved in WP Redis full page cache are

    --add-module=../ngx_http_redis-0.3.7
    --add-module=../redis2-nginx-module-0.12
    --add-module=../openresty-srcache-nginx-module-ffa9ab7
    --add-module=../headers-more-nginx-module-0.261
    --add-module=../set-misc-nginx-module-0.29
    
  • @eva2000 said:
    No doubt varnish cache can be better but as centmin mod is provided free, I am not going to do the leg work in providing varnish vcl configurations for every web app combination out there. To minimise what I support for free, I opt to choose solutions which can be automated and less problematic for both me and end user :)

    FYI, Redis full page cache is at Nginx level via Redis nginx modules and via not wordpress plugin level so more comparable to Varnish cache than WP Super Cache plugin.

    Centmin Mod Nginx modules involved in WP Redis full page cache are

    --add-module=../ngx_http_redis-0.3.7
    --add-module=../redis2-nginx-module-0.12
    --add-module=../openresty-srcache-nginx-module-ffa9ab7
    --add-module=../headers-more-nginx-module-0.261
    --add-module=../set-misc-nginx-module-0.29
    

    Got what you say. In full.
    Appreciate your reply.

    Im a tuxlite fan, mostly because of the fact that all my VPS are <1024mb & debian based.
    I remember myself trying to run centmin on one of them, but minimum requirements were higher.
    I will definitely give it a try. The fact that you support it widely and free is obvious and much appreciated.

  • eva2000 said: varnish vcl configurations for every web app combination out there

    This is the main problem with varnish. It is not very portable, and IMHO varnish is very good when specifically optimized for 1 box containing 1 high load website (more than 10,000 visit a day), then we can see significant performance.

  • eva2000eva2000 Veteran
    edited October 2015

    punkstar69 said: Got what you say. In full. Appreciate your reply.

    Im a tuxlite fan, mostly because of the fact that all my VPS are <1024mb & debian based. I remember myself trying to run centmin on one of them, but minimum requirements were higher. I will definitely give it a try. The fact that you support it widely and free is obvious and much appreciated.

    Yes memory requirements out of the box are higher for normal CentOS 6 and more so for CentOS 7. I've tested Centmin Mod on mainly 256MB and 512MB VPSes. With a low memory variable tweak CentOS 6 32bit can be run on 128MB VPS i.e. my blog at https://blog.centminmod.com/1.

    But for CentOS 7 64bit need 768MB to 1GB. Then again Centmin Mod Nginx adds alot more nginx modules than standard Nginx builds see http://centminmod.com/nginx.html

    vRozenSch00n said: This is the main problem with varnish. It is not very portable, and IMHO varnish is very good when specifically optimized for 1 box containing 1 high load website (more than 10,000 visit a day), then we can see significant performance.

    yes unfortunately that is the case and for purpose of full automation of install and setup for Centmin Mod purposes, isolation to configs per vhost are much easier than server wide configs like Varnish as I have no idea of what web apps the end user installs or runs simultaneously on the same server i.e. what happens if end user wants to run https / SSL web sites on same server as varnish cache sites ?

  • eva2000 said: end user wants to run https web sites on same server as varnish cache sites ?

    Exactly!

  • By the way guys, do you recommend different pool for every user or one pool for every website, when it comes to php?

    For security reasons i've assigned every website to a separated client, but this causes many pool config files.

    I've splitted the resources of the VPS to each config, but everytime i need to add another website to my VPS, i need to reconfigure all pool config files. Having them all under one linux user (and one pool config) seems most right, but its not a good security move.

    What do you advise?
    Does centmin install all vhosts under the same user and same pool?

  • eva2000eva2000 Veteran
    edited October 2015

    Centmin Mod LEMP stack by default uses a single PHP-FPM pool. However, 123.08 stable has added optional multiple PHP-FPM pool support you can see the discussion on official Centmin Mod forums at https://community.centminmod.com/threads/centmin-mod-08-beta03-multiple-php-fpm-pools-support-added.3672/ - might want to sign up for forums or search around the forums :)

    FAQ might be useful too http://centminmod.com/faq.html

    Thanked by 1vRozenSch00n
  • @eva2000 said:
    Centmin Mod LEMP stack by default uses a single PHP-FPM pool. However, 123.08 stable has added optional multiple PHP-FPM pool support you can see the discussion on official Centmin Mod forums at https://community.centminmod.com/threads/centmin-mod-08-beta03-multiple-php-fpm-pools-support-added.3672/ - might want to sign up for forums or search around the forums :)

    FAQ might be useful too http://centminmod.com/faq.html

    Thanks. Just wondering which scenario is better, a multiple pools one or a single. In your multiple one, and in case of 100 available php workers, will centmin assign 10 on each vhost in case that 10 domains are hosted there, and upon the add of the 11th, will it reconfigure all pool configs to have 9 workers available?

  • eva2000eva2000 Veteran
    edited October 2015

    each pre-configured additional php-fpm pool has statically assigned php workers and defaults to ondemand out of the box, so there's no pooling of php workers on all php-fpm pools or dynamic reconfiguration of php-fpm pools' php max children/workers. By default there's 4 max children per additional php-fpm pool, for 4 additional php-fpm pools to total +16 additional php children.

  • punkstar69punkstar69 Member
    edited October 2015

    @eva2000 said:
    each pre-configured additional php-fpm pool has statically assigned php workers and defaults to ondemand out of the box, so there's no pooling of php workers on all php-fpm pools or dynamic reconfiguration of php-fpm pools' php max children/workers. By default there's 4 max children per additional php-fpm pool, for 4 additional php-fpm pools to total +16 additional php children.

    Thanks for the info.

Sign In or Register to comment.