Thursday 15 September 2011

amazon web services - Using memcache client with ruby -


Amazon is trying to connect elastiCache cluster endpoint using memac-client but error is taking place

  Memkach :: Memack ash: no connection to the server (testcachecluster.u098ed.cfg.us e1.cache.amazonaws.com:11211 DEAD (timeout :: error: execution expired C) / Program Data / Rail Installer / Ruby 1.9.3 / Lib / Ruby / Games / 1.9.1 / Games / Mac-Mac-Client-1.8 5 / Lib / memcache.rb: 863: In `with_socket_management 'with C: / Programmate / RailsInstaller / Ruby1.9.3 / lib / ruby ​​/ gems / 1.9.1 / gems / me mcache- client- 1.8.5 / lib / memcache. Rb: 370: In 'Block Set' from C: / Program Data / Rail Installer / Ruby 1.9.3 / Lib / Ruby / Games / 1.9.1 / Games / Mac-Mac-Client-1.0.8.5 / Lib / Memcache RB: 886: In `From Server 'with C: / Program Data / Rail Installer / Ruby 19.3 / Lib / Ruby / Games / 19 / 1 / month / mcache-client-1.8.5 / lib / memcache.rb: 361: 'in set' (IRB): 5 to C: / Program data / Rail installer / Ruby 19.3 / bin / Arab : 12: `& lt; Main & gt;   

But the Amazon elastiCache cluster endpoint is being used correctly instust the local host.

  irb (main): 006: 0> M = MemCache.new ('localhost: 11211') = & gt; & Lt; MemCache: 1 server, ns: zero, ro: wrong & gt; IRB (Main): 007: 0> M.set 'abc', 'xyz' = & gt; "Stored \ r \ n" irb (main): 008: 0> M.get 'abc' = & gt; "XYZ" IRB (Main): 00 9: 0>    

Okay, for me, the problem was a security group. You only exclude the exhaust nodes Can access examples, which have a security group, which are listed in the Security Group.

For me, in my ec2 example there is a security group of "web". In ElasticShow, I added "Web" to the "Default" Loostatic Safety Group.

More explanation here:

Also, try to use any of these two gems:

I am using later and it works great because it uses the nodes autodivir.

No comments:

Post a Comment