similar to: Fragment caching with Memcached slow?

Displaying 20 results from an estimated 1000 matches similar to: "Fragment caching with Memcached slow?"

2007 Sep 07
2
memcached and fragment storage, session storage with a mongrel cluster
Greetings, I posted this not on the Rails mailing list and didn''t get a definitive response so I thought I''d post it here, since I figure lots of you are using mongrel with Rails apps. Any suggestions would be greatly appreciated. I''ve been using file-based fragment caching and DB-based session caching quite extensively. I decided to try out memcached for both to
2006 Aug 19
3
memcache-client working for anyone?
I''m at the bloody forehead stage, so I figure it''s time to ask. After installing the robot coop''s memcache-client which everyone apparently recommends, it refuses to work because the rails cache.rb is invoking the read() method on the cache, which it _does not have_. Their library has get() and put() but no read() and write() as rails expects. What gives? Is
2009 Feb 18
4
expire_fragment with memcached
Hello all, We know that memcached or memcached-client doesn''t support regex... But It seems it doesn''t support expire_fragment either :/ I''m trying to use expire_fragment with memcached as following : expire_fragment(:controller => ''home'', :action => :list_posts) But apparently it''s not supported by memcached : RuntimeError (Not
2009 Apr 13
6
Memcached 1.6.5 (Rails 2.3) 10x slower
The move to memcached_client 1.6.5 in Rails 2.3 seems to have made the Rails cache about 10x slower. Since that''s the opposite effect I would expect, I was hoping somebody would explain where I''m misreading these numbers? I noticed my fragment caching was slow -- it shouldn''t take 2ms just to read a 2k string from a localhost memcached server: Cached fragment hit:
2006 Jan 17
10
ActiveRecord + memcache = cached_model
Courtesy of The Robot Co-op. $ yes | sudo gem install cached_model Or, you can download cached_model and memcache-client (our zippy-fast memcache library, required) from: http://rubyforge.org/frs/?group_id=1266 I don''t have the README posted for making cached_model work online yet, so here it is: = CachedModel Rubyforge Project: http://rubyforge.org/projects/rctools/ == About
2009 May 26
2
memcache for variables
hey, for performance reasons i want to cache (template) variables using memcache, making access to data easy in templates by using a simple syntax like <%=users(2).name%>. this actually should tell the view to load the field ''name'' from the model/table ''users'' with id=2. it first tries memcache and if not found, loads the data from the and stores it in
2006 Apr 20
12
memcache, sessions, fragments, oh my!
Hi all - I am trying to get rails to use memcache for sessions and fragment caching. I''d also like to use the same connection for general caching of this and that. I''m following the instructions here: http://wiki.rubyonrails.com/rails/pages/HowtoChangeSessionStore and hitting a brick wall. I''m using the new memcache-client since from what I''ve read
2010 Mar 03
2
Memcached: "no such file to load -- memcache-client" when running script/console
Hi folks. I''ve started down the memcached path and everything was running grand until I decided to start up my console. I have manually installed libevent 1.4.13 and memcached 1.4.4 into /usr/local, following which I sudo gem installed memcache-client and SystemTimer. development.rb has been modified to do caching with the mem_cache_store. The memcached process seems to work and my
2006 Mar 29
2
Fragment Cache Wackiness
I can''t seem to get the fragment cache to use :file_store. I''d really appreciate it if someone could point me in the right direction. Rails 1.1 final, FreeBSD Observe: In environment.rb AND production.rb (for good measure, DRY be damned): ActionController::Base.fragment_cache_store = :file_store, "/www/apps/localfeeds/directory/tmp/fragmentcache/" At the console
2008 Jul 15
1
sex expire time for Sessions in memcached
Hi all, I have a problem with expiring sessions in the case with using mem_cache_store. I''ve been using ActiveRecord session store till now and expired them with SQL query. Yesterday I switched to memcache for storing sessions, however I can''t set an expireation period. My current config is this: ======================== memcache_options = { :c_threshold => 10_000,
2015 Mar 18
1
multiple memcached buckets in CentOS 7
Hi Alberto, With systemd it will be as easy as creating additional unit files ( one for > each memcached instance) with its corresponding config file. That should > allow to stop / start / restart each memcache instance individually while > also being systemd compliant. Thanks for the info and for the examples. It really does make sense the way you explain it. Thanks for letting me
2007 Aug 20
5
byte-range requests
Hello everyone, I did some initial tests and it seems that mongrel does not support byte-range requests. Is this correct? The reason I ask is that the iPhone requires byte-range requests to work in order to stream audio or video from a web server. Thanks in advance, alan
2012 Feb 09
2
python26-memcached on centOS 5.5
Hi, Is anyone here running memcached + python2.6 + django setup on a CentOS 5.5?? Am trying to set one up here and have trouble with the python26-memcached installation. So far i have installed (via yum): 1.python26 2. python26-memcached 3. libevent 4. memcached-devel Now when i try to run `import memcache` from the python2.6 shell i get an ImportError: No module
2006 Oct 17
5
Memcached Server - Memory Consumption
I was just testing the memcache server on a Windows box and had set it up as a Windows Service and to my surprise (or my shock really) it was using 47+ meg of ram with no data even loaded in it yet. Has anyone else used the Windows port of memcached for their Rails projects and if so how much ram was it using? Does memcached use less memory on Mac OS X or Linux than Windows? Thanks for any
2015 Mar 18
2
multiple memcached buckets in CentOS 7
Hey guys, OK so I'm pretty familiar with how to edit an init script for memcached so that I can get multiple memcached 'buckets' when starting up the service. The init script would ususally have multiple lines such as these under the start function: # cache_block /usr/local/bin/memcached -d -m 128 -l `hostname -i` -p 11318 -u daemon -c 8172 -v 2>> /tmp/memcached.log
2010 May 29
0
User Error during memcached integration
Hello, I hope all is well. I am hoping someone can help me with a problem that I am certain is user error? The configuration details below work in all my other environments including integration, development and qa. However, the production servers give the following error: unable to find server during initialization. When I telnet to the memcached box from the server having the problem and run
2005 Dec 16
11
mysql mem-tables vs. memcached
Could someone please elaborate on the technical differences and practical impact of whether choosing memory-based tables in MySQL or using memcached. I got this far on my own: It seems that MySQL uses the NDB engine for transaction-safe memory access in a cluster. the memory storage engine seems to be faster but not synchronizable by any means in a cluster. memcached seems to be ultimately fast
2006 Jul 21
2
mongrel, memcache and sessions
Hi, I''m using mongrel-0.3.13.3 with memcache-client-1.0.3 for storing sessions. It was working fine with actionpack-1.12.0, but when I upgraded to actionpack-1.12.3, I started getting a "can''t convert String into Hash" error from memcache.rb from memcache-client. I was able to fix it by changing the way the MemCache object was created in
2009 Jun 11
1
fragment caching file_store problems
Hello, I''m having problems on both my production and development servers with fragment caching. Every time I try to cache something using <% cache do %>, I get the following error: Couldn''t create cache directory: views/0.0.0.0:3000/jobs/106/questions/ 174 (wrong number of arguments (2 for 1)) but strangely, all of the directories apart from the last one are created.
2006 Mar 07
2
memcached and Joe Hosteny''s Salted Hash Login Generator
Hey, so - I''ve been fiddling about and fell in to use Joe''s simple-yet- painful SHLG (I shouldn''t complain... not at least I have time to produce one :)). I just recently plugged in memcache, and- it''s not preserving my login. I traced the execution and it sets the output of User.authenticate (a user AR object) into @session[''user'']