Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Memcached Error

Reply
Thread Tools

Memcached Error

 
 
Jean Verger
Guest
Posts: n/a
 
      09-20-2006
Hi,

I'm running memcached in 2 servers. Both servers, are at the same time
clients (they share memcached).

If only one server is up, there is no problem, it works perfect. It
can access both memcached servers. Same with the other server.

However, if both servers are trying to access the 2 memcached servers,
then i'm getting random errors (null values retrieved).

Please, could someone take a look to this simple config in Ruby?? why
errors when both accessing?


require 'memcache'

memcache_options = {
:c_threshold => 10_000,
:compression => false,
:debug => false,
:namespace => "Server5-Wablet-API",
:readonly => false,
:urlencode => true
}

memcache_servers = [ '209.190.6.226:9300', '209.190.6.122:9300' ]
Rails::Initializer.run do |config|
...
config.action_controller.session_store= :mem_cache_store
...
end

CACHE = MemCache.new(memcache_options)
CACHE.servers = memcache_servers
ActionController::Base.fragment_cache_store = :mem_cache_store ,{}
ActionController::CgiRequest:EFAULT_SESSION_OPTI ONS.merge!({ 'cache'
=> CACHE })

thanks,

Jean

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
New memcached module Jayson Santos Python 0 11-21-2011 01:05 PM
For those familiar with memcached/mySQL Inquiry ASP .Net 0 04-28-2009 04:11 PM
How to use memcached in classic asp bigqiang ASP General 3 09-14-2008 08:17 PM
Ruby 1.8.4 & MemCached 0.0.4 navinsamuel@gmail.com Ruby 0 08-02-2006 06:21 PM
[ANN] Nitro + Og 0.29.0: R operator, Improve error handling, routing, template overloafing, memcached store and more George Moschovitis Ruby 1 03-07-2006 05:12 PM



Advertisments