VMware
1 2 3 4 Previous Next 49 Replies Last post: Sep 25, 2006 9:04 AM by prabhakar  

Hermes Memcached Virtual Appliance posted: Jun 5, 2006 12:32 AM

Click to view VMTN Admin's profile Expert 1,468 posts since
May 10, 2006
http://www.vmware.com/vmtn/appliances/directory/384

Provides a high-performance distributed memory object caching system using memcached

Re: Hermes Memcached Virtual Appliance

1. Jun 7, 2006 2:35 PM in response to: VMTN Admin
Click to view Geoffrey Hardy's profile Lurker 3 posts since
Jun 7, 2006
Very nice. We use memcached in our web apps quite extensively. This appliance was easy to start up and use. The small size of the appliance is neat. Good job !!! BTW are you one of the joomla devs??

Re: Hermes Memcached Virtual Appliance

2. Jun 8, 2006 1:59 AM in response to: Geoffrey Hardy
Click to view prabhakar's profile Enthusiast 119 posts since
May 24, 2006
Thanks for trying it out. I am not a joomla developer. Just another happy user...

Re: Hermes Memcached Virtual Appliance

3. Jun 9, 2006 8:52 AM in response to: VMTN Admin
Click to view amahfouz's profile Novice 9 posts since
Jun 9, 2006
Wow. this is neat. i didnt know you could squeeze linux down to that size and have this much functionality.

Re: Hermes Memcached Virtual Appliance

4. Jun 9, 2006 2:06 PM in response to: VMTN Admin
Click to view tleyman's profile Lurker 3 posts since
Jun 9, 2006
Good one...

Re: Hermes Memcached Virtual Appliance

5. Jun 10, 2006 11:40 AM in response to: VMTN Admin
Click to view Mike Kay's profile Lurker 1 posts since
Jun 10, 2006
We use memcached daemon along with python clients. Works like a charm. I am working on building a tiny version of linux at work customized for our use. I see that your appliance is tiny and you use busybox. Have you looked at any other tiny linux dists before you chose this one? Any insights appreciated. Good work.

Re: Hermes Memcached Virtual Appliance

6. Jun 13, 2006 5:53 AM in response to: VMTN Admin
Click to view alefrousen's profile Lurker 5 posts since
Jun 13, 2006
Very cool. Started up the appliance in vmware workstation. We have a python web app that servers up some huge ps and pdf files that can be viewed in your browser. Modified our python web app to use the memcached python API and access the Hermes appliance. I query the cache before accessing the file store. If the file is not in the cache, i go get it from the data store and put in the cache. The difference in performance was amazing. The cool thing was that you can actually retrieve multiple keys from the cache one time. Very easy to use, tiny footprint, very innovative and most importantly solves my business probelm. great work. +5

The python code was this simple:

import memcache
mc = memcache.Client(['192.168.1.110:11211'], debug=0)

data = mc.get('my_test_file_data')

if not data:
   print 'data is not in cache. retrieving from file store and putting it in cache'
   mc.set('my_test_file_data', get_file_data_from_store())
else:
   print 'data is from cache'

use_the_data(data)

Re: Hermes Memcached Virtual Appliance

7. Jun 13, 2006 7:44 AM in response to: alefrousen
Click to view prabhakar's profile Enthusiast 119 posts since
May 24, 2006
Thanks :-)

Re: Hermes Memcached Virtual Appliance

8. Jun 21, 2006 1:57 PM in response to: VMTN Admin
Click to view prabhakar's profile Enthusiast 119 posts since
May 24, 2006
Here is an http download for those of you having problems with the torrents:

http://www.orbitfiles.com/download/id185902645

Let me know if you have problems accessing it. Thanks ...

Re: Hermes Memcached Virtual Appliance

9. Jun 23, 2006 2:19 PM in response to: VMTN Admin
Click to view prabhakar's profile Enthusiast 119 posts since
May 24, 2006
Here is yet another http link, in case your fw is blocking traffic to orbitfiles:

http://sourceforge.net/project/showfiles.php?group_id=170938&package_id=195195

Re: Hermes Memcached Virtual Appliance

10. Jun 27, 2006 5:47 AM in response to: VMTN Admin
Click to view marco_inzaghi's profile Lurker 1 posts since
Jun 27, 2006
Excellent work. We are using memcached with our J2EE webapps. It is a very simple way to cache stuff. This example code shows how to use a single memcached server, but you can actually use a pool of servers!!!

Here is a simple junit testcase that shows how to use memcached from Java. You will need to download the java memcached client from:
http://www.whalin.com/memcached/

---------------------------------------------------
import junit.framework.TestCase;
import com.danga.MemCached.MemCachedClient;
import com.danga.MemCached.SockIOPool;

public class TestMemCached extends TestCase {
   public void testStoreAndRetrieveFromCache() {
      // this is the address that is displayed when you start up the hermes appliance
      String[] cacheServers = { "10.10.16.100:11211" };

      // create a pool of memcached servers with the name hermes
      SockIOPool pool = SockIOPool.getInstance("hermes");

      // set the list of servers used by the pool
      pool.setServers(cacheServers);

      // initialize the pool
      pool.initialize();

      // create a new memcached client which uses the above pool
      MemCachedClient mc = new MemCachedClient();
      mc.setPoolName("hermes");

      // turn off storing compressed data
      mc.setCompressEnable(false);

      // add data to the cache
      mc.set("testcachedata", new StringBuffer("Testing hermes virtual appliance"));

      // get the data that you just added to the cache
      StringBuffer o = (StringBuffer) mc.get("testcachedata");

      // assert that you actually got it :-)
      assertEquals("Testing hermes virtual appliance", o.toString());
   }
}

-------------------------------------------------------------

+5

--marco

Message was edited by:
marco_inzaghi

Re: Hermes Memcached Virtual Appliance

11. Jun 29, 2006 6:16 PM in response to: marco_inzaghi
Click to view prabhakar's profile Enthusiast 119 posts since
May 24, 2006
Thanks Marco for your comments and for trying it out.

Can I use your code sample in the docs for Hermes?

cheers...

Re: Hermes Memcached Virtual Appliance

12. Jul 7, 2006 8:00 AM in response to: prabhakar
Click to view beazley_dave's profile Lurker 3 posts since
Jul 7, 2006
Does anyone know of any production sites that use memcached. Just trying to get a feel for the product. Good job BTW. Cool stuff.

Re: Hermes Memcached Virtual Appliance

13. Jul 7, 2006 11:25 AM in response to: beazley_dave
Click to view prabhakar's profile Enthusiast 119 posts since
May 24, 2006
Here is a list of some sites that use memcached:
  http://www.danga.com/memcached/users.bml

slashdot is the coolest one of them :-)

Let me know if you need any help with using the Hermes appliance for your project

thanks

Re: Hermes Memcached Virtual Appliance

14. Jul 7, 2006 5:43 PM in response to: prabhakar
Click to view prabhakar's profile Enthusiast 119 posts since
May 24, 2006
Also the Django web framework in python and Ruby on Rails support memcached as the caching backend. So you can just plugin the Hermes appliance into either of these stacks, configure it and away you go.

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities