RAM Requirements/Suggestions

286 views
Skip to first unread message

Farah

unread,
Jun 5, 2012, 11:04:46 AM6/5/12
to ResourceSpace
I'm looking into installing ResourceSpace, and I had a question
concerning memory requirements. Is there a minimum amount of RAM for
a server to have in order to run ResourceSpace? Even if there's no
official amount, does anyone have experience in terms of how much one
would recommend for running RS smoothly? We'll be using it mostly for
images.

Thanks!

bwi

unread,
Jun 6, 2012, 11:36:37 AM6/6/12
to ResourceSpace
Hello Farah,

ResourceSpace is very efficient when it comes to memory utilization.
I am able to upload photos and use the system very well with as little
as 1 gig of ram. Most of my images are 2 megs or less.

If you have larger file sized assets like high res tiff images or
video's, then over 2 gigs would be recommended.
I am using ResourceSpace on an Amazon EC2 ubuntu 11.10 virtual server
instance with s3 for storage. The benefit of doing so is that you
only pay for what you use. You don't have to have a server with huge
amounts of ram all of the time. For example, if I intend to upload
large assets which require more ram for processing, then I can
increase the ram on the instance and bring it back down when done.
This allows me to keep my costs under control.

Hope this info helps.

Best Regards,

Brian-

David Dwiggins

unread,
Jun 6, 2012, 11:57:35 AM6/6/12
to resour...@googlegroups.com
Hi, Brian,

Do you mean you are using EBS for storage and snapshotting it to S3?
If you are using S3 directly, how are you connecting it to the EC2
instance?

-David
> --
> You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
> To post to this group, send email to resour...@googlegroups.com.
> To unsubscribe from this group, send email to resourcespac...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/resourcespace?hl=en.
>

Tom Gleason

unread,
Jun 6, 2012, 12:05:49 PM6/6/12
to resour...@googlegroups.com
I've found that when it comes to general speed (especially in processing preview images), then the more *CPU* you have the better. 2x the CPU really does make preview creation about 2x faster.

RAM becomes important more for helping MySQL do fast queries when your database tables get too big to fit in RAM, but as Brian said, a GB or two is usually plenty for most installations. It can depend on many factors, like how many people will be using the site and how big your tables are, and whether you have any big processes going on in the background.

https://www.buildadam.com/resourcespace is a demo that runs on a VPS with only 512MB of RAM, so you might expect performance to be pretty bad. 
But it also has access to a Quad core 2.27Ghz processor and fast bandwidth, so it's very snappy. It has low to no traffic and a pretty small database, so the performance is very sufficient for it's purpose. 


--
Tom Gleason
ResourceSpace Hosting & Development

Vice President, Engineering
Colorhythm LLC
http://www.colorhythm.com

Main Office:  +1 415-399-9921
Fax: +1 253-399-9928
Mobile:  +1 347-537-8465

tgle...@colorhythm.com

bwi

unread,
Jun 7, 2012, 3:55:31 AM6/7/12
to ResourceSpace
Hello David,


I was able to mount my s3 bucket directly in my ubuntu 11.10 ec2
instance to /var/www/filestore

All uploaded files are sent right to my s3 bucket.

To make this work, I used s3-simple-fuse:  http://code.google.com/p/s3-
simple-fuse/

Installed the pre-requisites:

apt-get install python-fuse
apt-get install python-dateutil
apt-get install python-boto

Followed instructions on how to install s3-simple-fuse

Found a great tutorial by Ashton Bond, outlining how to mount an
Amazon S3 bucket as a drive in Ubuntu:
http://www.asherbond.com/blog/2010/09/14/mount-an-amazon-s3-bit-bucket-as-a-drive-in-unix-using-fuse/

I customized his startup script and placed all of the variables in the
script itself, that way just the name of the script could be run:
http://dl.dropbox.com/u/474217/rs/s3-mount.txt

Named the startup script "s3-mount.sh"
and placed it into /etc/init.d/

Gave the script permission to execute:
sudo chmod +x /etc/init.d/s3-mount.sh

Tested the script by running it:
/etc/init.d/s3-mount.sh

If all goes well, a few lines of confirmation messages should appear.

Then if you cd into the directory:
cd /var/www/filestore/
You should see your S3 bucket files.

To make sure the s3 drive mounts automatically on boot, I added the
path to the script to rc.local:
sudo nano /etc/rc.local

Added the following line to rc.local right above the "exit 0":
sudo /etc/init.d/s3-mount.sh


Then in ResourceSpace Config:
sudo nano /var/www/include/config.php
I added the external file storage settings:
$storagedir = '/var/www/filestore';
$storageurl = 'https://s3.amazonaws.com/YOURBUCKETNAME';

Restart apache:
sudo /etc/init.d/apache2 restart


Then, in the Amazon S3 console, I had to edit the bucket policy to
allow view permissions on the files.
If you don't do this part, your images won't show up in ResourceSpace
after they are uploaded, just broken links.

Add the info below to your bucket policy:
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "AddPerm",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:*",
"Resource": "arn:aws:s3:::YOURBUCKETNAME/*"
}
]
}



These were the steps that I took to get it working on my Ubuntu 11.10
EC2 instance.
I have noticed that if you upload file sizes over 100 megs, the
performance of the EC2 to S3 data transfer is a bit sluggish.

Hope some of this info helps!

Farah

unread,
Jul 10, 2012, 3:26:33 PM7/10/12
to ResourceSpace
A bit of a late reply, but I just wanted to say thank you to those who
replied. It's been helpful. :)

Farah

On 7 June, 03:55, bwi <irwin.br...@gmail.com> wrote:
> Hello David,
>
> I was able to mount my s3 bucket directly in my ubuntu 11.10 ec2
> instance to /var/www/filestore
>
> All uploaded files are sent right to my s3 bucket.
>
> To make this work, I used s3-simple-fuse:  http://code.google.com/p/s3-
> simple-fuse/
>
> Installed the pre-requisites:
>
> apt-get install python-fuse
> apt-get install python-dateutil
> apt-get install python-boto
>
> Followed instructions on how to install s3-simple-fuse
>
> Found a great tutorial by Ashton Bond, outlining how to mount an
> Amazon S3 bucket as a drive in Ubuntu:http://www.asherbond.com/blog/2010/09/14/mount-an-amazon-s3-bit-bucke...
Reply all
Reply to author
Forward
0 new messages