Editorial & News

Moved Again, to QuickWeb/MicroVPS

If you are seeing this blog post, that shows you are now landing on the new VPS that hosts this blog. Yes, Low End Box has moved again, one month since moving from VPSLink to 2HOST. This time to QuickWeb (or their soon-to-be-launched subsidiary MicroVPS) in Dallas TX with Softlayer.

Nothing wrong with 2HOST though — it runs perfectly fine. Stable. Fast. But there is one problem — it’s not low end enough. I mean, c’mon 512MB to run a WordPress blog? I might be able to excuse myself if I am running TechCrunch but for Low End Box I think it needs to run on something low-end. Not just in term of price, but also in spec.

So Joe from QuickWeb lent me this Xen VPS in Dallas with the following spec

  • 80MB memory/128MB swap
  • 5GB storage
  • 1TB/month data transfer
  • Xen
  • Debian 5 Lenny 32bit

So far so good. I am getting one single core of Xeon X3460 @ 2.8GHz. Let’s see how it stands running Low End Box 🙂 Software loaded so far

  • Nginx + PHP/FastCGI (1 process) + MySQL
  • syslog + cron + xinetd + exim4 + sshd

X3460 is fast enough, and the performance should be on part with 2HOST if the PHP process does not get paged out. I am also running a cron job checking up on providers every now and then to make sure they don’t get included in our monthly dead pool. That’s coded in Python + SQLite and should take ~5MB RSS when its running.

34 Comments

  1. Zlayer's avatar
    Zlayer

    Well, a post that has technical info in it! Cool, I was starting to think you’re just gonna be posting new and new offers and stuff, that’d suck. Remember, people who read your blog are the ‘low end’ kind of guys – we want to hear how to squeze 2 more kilobytes from lighty or mysql!

  2. QuickWeb-Joe's avatar
    QuickWeb-Joe

    great job Admin! lowendbox really lived in its name and doing what it is preaching… to educate people that it is not “always” about big RAM that can make VPS useful! a micro VPS at the hands of knowledgeable web admin and hosted by descent provider can be very useful and can save you a lot of money 🙂

    @Zlayer, yeah i’m sure most reader would be interested to hear how to accomplish this kind of stuffs from the admin of lowendbox ^^

  3. flyah's avatar
    flyah

    Admin,

    It would be awesome if you post your techniques as well. It’s really cool you run WP on 80MB Ram 🙂

    Btw, you can’t go wrong with Quickweb. they are amazing!

  4. Alex's avatar
    Alex

    80MB for a xen vps is enough to run ngnix or lighttpd. But not for apache2. The min. spec is 128 MB there. That would be better.

  5. InsDel's avatar
    InsDel

    Hey, if you’re not using that 2Host VPS anymore, I’d be interested in taking it over ;D

  6. LEA's avatar
    LowEndAdmin Author

    @Zlayer — well I sorted expecting the readers here *already* know how to configure Nginx, and low-memory MySQL and do not need much guide line. In fact if you google those they are pretty much everywhere.

    @Alex — well for Apache2 worker-MPM + PHP on mod_fcgi it is still possible. Back in the days (cough cough) I used to run Apache with Perl CGI dynamic pages on a 486 DX4-75 with 8MB! How things have changed…

    @InsDel — sorry it is still used by something else. A low traffic WP site like Low End Box is actually not very resource heavy, but other things are.

  7. LEA's avatar
    LowEndAdmin Author

    @flyah — It’s actually pretty easy thus I’ve never bothered with a post 😛

    What I normally do:

    1. Bootstraping a Debian/Ubuntu VPS with a low end script — it takes care of some automated customisation, like using a low mem syslog, configure dash, etc. I do much prefer bash than dash on the command line, and openssh than dropbear so I leave them as they were.
    2. apt-get install nginx php5-cgi php5-mysql mysql5-server
    3. Configure php5-cgi to start a FastCGI instance, for example /usr/bin/php5-cgi -b /var/run/php.sock. The trick here is NOT to use PHP_FCGI_CHILDREN so the master process is handling the requests itself.
    4. Nginx — well it’s pretty straight forward, and it never uses much memory anyway. Get it to talk to PHP via UNIX domain socket.
    5. MySQL — some notes here. Basically getting rid of query cache, remove innodb, just focus on key buffer size — and you’ll have a low-memory MySQL server.

    I’ve just upgraded to WordPress 3 (which is too heavy for my liking), and mysqld is hovering at 10MB RSS and php-cgi at around 20MB.

  8. terii's avatar
    terii

    I have a QuickWeb Xen VPS for 3+ months as a primary Nagios+munin+rsyslog monitoring server. Fast & rock-solid stable.

    I updated mine to WP3 as well. It does seems a little speedier for me. Haven’t been monitoring the resources usage much though.

  9. Daniel DePauw's avatar
    Daniel DePauw

    I have had an OpenVZ VPS with QuickWeb for about 3 weeks now and do not have any complaints.

  10. flyah's avatar
    flyah

    Admin,

    Thanks a lot for the guide. 🙂 I will test it out on my QW VPS later 🙂

  11. melf's avatar
    melf

    If you can put some hint please, changing VPS is also require to move the data, ho you manage that.
    Thanks Admin for sharing all those good stuffs.

  12. vpsbeta's avatar
    vpsbeta

    Hello, admin

    For your great site lowendobx, it running with wordpress and maybe more then 30K pv. Could you tell me how much of you server load on the quickweb vps when the vistors was high. will it more then 3 or 5? thanks.

  13. Marl's avatar
    Marl

    forum says it’s still hosted w/ vpslink, is it?

    quickweb’s awesome! very good choice. 🙂

  14. LEA's avatar
    LowEndAdmin Author

    @Marl — fixed. Thanks for pointing that out.

    @vpsbeta — LowEndBox is currently around 70k pv/month, and the loadavg is mostly under 0.1 (which has always been in the case on VPSLink, 2HOST and now QuickWeb).

    @melf — it’s all about planning 🙂

    1. Set the DNS TTL of your domain to something short (like 2 minutes)
    2. Run the following on the new server to copy the whole directory over. Note that I have WordPress installed in /var/www/lowendbox/htdocs and my Nginx configuration file in /var/www/lowendbox/nginx.conf
      $ ssh oldserver tar jcf - /var/www/lowendbox | \
          tar jvpf - -C /
      
    3. Do the same to copy the MySQL database
      $ ssh oldserver mysqladump lowendbox \| gzip -c | \
          gzip -c | mysql lowendbox
      
    4. Reload nginx, change IP on DNS, and done!

    Note that in my main nginx.conf, I have include /var/www/*/nginx.conf so each of my site directory is self-contained including the Nginx configuration. The above can also be automated with scripts — which is useful when you do this kind of thing pretty often 🙂

  15. KLIKLI's avatar
    KLIKLI

    Admin: Are you using spawn-fcgi or PHP-FPM?

  16. LEA's avatar
    LowEndAdmin Author

    @KLIKLI — PHP CGI supports FastCGI by itself and there is no need for spawn-fcgi or PHP-FPM. I just run /usr/bin/php5-cgi -b /var/run/php.sock and wrap it into a init script so it can start/stop and has a pid file.

  17. KLIKLI's avatar
    KLIKLI

    Oh… sorry for my ignorant

  18. indoc0der's avatar
    indoc0der

    dear admin,

    can you teach me how to optimize your VPS? i think run WP at 80 MB RAM is awesome 🙂

  19. bekanosky's avatar
    bekanosky

    @indoc0der
    He already write about VPS optimization somewhere in this blog. You can even run WP at 64MB RAM

  20. Omio's avatar
    Omio

    Hello admin, do you have DDOS protection on this node?

  21. Pineapple's avatar
    Pineapple

    Your blog is fast and works well.

    But I do not see there is any 80M ram plan in quickweb?

  22. Jackk's avatar
    Jackk

    How much RAM does LowEndBox actually use on average?

    • LEA's avatar
      LowEndAdmin Author

      Currently:

      $ free
                   total       used       free     shared    buffers     cached
      Mem:         81920      80080       1840          0       4244      28456
      -/+ buffers/cache:      47380      34540
      Swap:       131064      14436     116628
      
        • LEA's avatar
          LowEndAdmin Author

          Yup. Finding balance between file system cache, PHP opcode cache and MySQL query cache…

Leave a Reply

Before you comment
  • Please use your hosting provider's support system for service issues.
  • Comments may be held temporarily for spam review.
  • Use <pre>...</pre> for terminal output, or link to a paste service.

Your email address will not be published. Required fields are marked *