Optimized for VPS configuration, 2GB RAM 4363 People Online

There are currently a lot of instructions configured to be able to create a large load on the network VPS through load balancing, optimize the services … Today, I’ll show you another way using a combination HocVPS Script , Zend Opcache, Memcache to be able to build a VPS can withstand thousands of people online at the same time.

I tried installing the VPS in Vultr package $ 0022 / hour ~ $ 15 / month, 2 CPUs, 2GB of RAM found at online to 4k (according to statistics Google Analytics) is still running smoothly. Unfortunately, there is no long-term conditions see the actual test the stamina of how VPS.

Pictures taken at the date 12.11.2014 Online 4363 people, as measured by Google Analytics, using WordPress news site:

The number of people online that much, but just used up 20% of the CPU, lots of RAM left over, if operating at full capacity to not know too much online 🙂 k

1. HocVPS Script Settings

 

Use HocVPS Script will be automatically installed and optimized server on CentOS LEMP. Before carrying out the installation, remember to select the CentOS operating system, location Japan in Vultr for the speed of the fastest Vietnam.

Also you should create 1GB swap for VPS (usually double or ~ RAM swap)

The installation steps performed similar HocVPS Script installation guide .

2. Install Zend Opcache

using Zend OPcache aim to optimize and speed up PHP, this is especially important and are required to install the VPS has a large number of people online. Thereby reducing CPU performance and significantly reduce the amount of RAM that PHP uses.

HocvPS Script automatically install Zend OPcache helped you, now just need to adjust the parameters to suit your needs use only.

You keep track of the actual situation when running VPS with the web viewer 1, for example opcache-gui (server installation, the path is http://domain.com:port/op.php HocVPS). Increase or decrease the memory how to keep the memory usage <= 70% is okay, the available memory will be used for other things.

Note The next step you can use cache plugin like WP Super Cache W3 Total Cache or Memcached with (steps 3 and 4). Should try to WP Super Cache before, because most of the website this plugin is just enough, but installation is simple.

3. Install Memcached

 

Memcached cache used to query your database, object and page cache. Normally, the data is usually using a disk cache, but memcached memory stores information on the performance and the speed should be increased a lot.

Have you done as guidelines install memcached . In the Configure Memcached note rose parameters maxconn = "1024" to maxconn = "10240"

 nano / etc / sysconfig / memcached

PORT = "11211"
USER = "memcached"
Maxconn = "10240"
CacheSize = "64"
OPTIONS = ""

Similarly Zend OPcache above, you should use the tool to track phpMemcachedAdmin adjusted to ensure memory <= 70%, avoid too much redundant RAM (like blogs Learning VPS due WordPress just 64MB RAM for memcached should spend).

In the last step you do not need to install plugin for WordPress WP-FFPC because we W3 Total Cache plugin using the guidance below.

4. W3 Total Cache configuration

To make sure everything works smoothly, please use the W3 Total Cache plugin. I still ordinary or WP Super Cache plugin used because it is simple, easy to use and also very effective ( Watch Me is used). However when used to Memcached, you are required to W3 Total Cache or switch WP-FFPC.

After the installation is complete plugin, you just activate Page Cache, Cache and Object Database Cache used method is Memcached. In addition, it should enable Browser Cache and CDN if possible.

Click on each item to be able to configure more specific details.

Hopefully, with this article you will be able to build better be 1 VPS load. Do not forget to leave a comment below notice the results you achieve after doing offline.

Update : I was removed from the article by ngx_pagespeed unnecessary.

Optimized for VPS configuration, 2GB RAM 4363 People Online
4 (80%) 40 votes