vpsset

vpsset it's a command line tool which allows you to resize your Dreamhost PS server.

You may use it at your crontab to reduce your memory and CPU settings when you have low traffic, and rise it when you usually expect higher one. Also you may use vpsset as a pre-script and post-script tool for some resource intensive scripts, like backups or whatever you need.

Usage it's pretty simple, just type at your command line: <vpsset value>, where value it's the new size of your PS. Previously you need to setup an API key at DreamHost's Web Panel API, and update vpsset.cfg file with your custom data.

Feedback it's welcomed :)

Download:

Update 18/04/2009:

Current vpsset version it's for the new Dreamhost PS, the 64bits based. Old PS server run 32bits versions and vpsset won't. My apologies for those who tried in an old PS server and had problems.

I'm trying to find another machine to compile a 32bit version. Added 32bit download vpsset version.

How to know your PS type?

Just type: <uname -a> at your shell. You may get these results:

  • Ending with x86_64 GNU/Linux: 64bit version, the new PS servers.
  • Ending with i686 GNU/Linux: 32bit version, the previous PS servers.

Subscribe without commenting


9 Responses to “vpsset”


  1. 1 Lorena

    Hi, how to install?

  2. 2 Antonio

    Pretty easy Lorena follow these steps:

    1. Download vpsset.
    2. Uncompress vpsset.zip
    3. Visit https://panel.dreamhost.com/?tree=home.api and create a new API code for vpsset.
    3. Edit vpsset.cfg file, and update the fields both fields, your webid (user name of your account) and APIKey with the API created in step 3.
    4. Upload both files to your account, for example at your home directory.
    5. Test it by typing: and you’ll have your PS resized to 300Mb

    Now you may use it at your crontab to schedule it execution or whatever you want :)

  3. 3 Lorena

    Thanks!

    Where type “”?

  4. 4 Antonio

    Thanks to Lorena I noticed the issue with the old PS servers.

    Right now it’s fixed, and I added both versions in this post.

  5. 5 Lorena

    Thanks!

  6. 6 Christian

    this works brilliantly! Thanks!

    The only problem is how do I set this in cron job.

    Putting ./vpsset 188 in cron job does not work.

    Hopefully you can help me out!

  7. 7 Christian

    It’s okay now!

    Just have to specify the full path in the cron job.

    Btw, your contact form is not working. =)

    Cheers!

  8. 8 Antonio

    Thanks Christian!

    I had no idea the contact form was broken :(

    I’ll take a look at it later.

  9. 9 Antonio

    Just fixed :)

Leave a Reply