Displaying 20 results from an estimated 2000 matches similar to: "memcached and fragment storage, session storage with a mongrel cluster"
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
2006 Jan 21
3
Fragment caching with Memcached slow?
Hi,
I am trying to do fragment caching using :mem_cache_store. However, when I
compare it to fragment caching using :file_store, it seems to be a lot
slower.
Here are the results:
uncache
Completed in 2.20246 (0 reqs/sec) | Rendering: 2.19891 (99%) | DB:
0.00017(0%) | 200 OK [
http://127.0.0.1/]
using file_store
Completed in 0.00952 (105 reqs/sec) | Rendering: 0.00702 (73%) | DB:
0.00000(0%)
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
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 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
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
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:
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 Jan 13
6
rails bug ? metadata lost between page invocation ?
Ok, so I posted this on the ''ruby on rails'' newsgroup
(http://groups.google.com/group/rubyonrails/browse_frm/thread/cfce770d3fbfbd1f/a51aad47e46e2adf#a51aad47e46e2adf)
but didn''t get very far.
Hopefully this community will be able to help or let me know whether
this is a genuine rails bug. This is a lengthy post, but please bear
with me.
So, I am trying to cache
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
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
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
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
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
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,
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
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
2006 Mar 01
4
cached_model and memcache-client slowness
Hi there,
I''ve got a Rails app that''s a little unusual in that it maintains a
database representation of a filesystem (for an image gallery). Thus, if
the filesystem is essentially ''out of date'' then the controller''s list
action will end up invoking a model update (which involves a filesystem
scan).
I''m using sqlite3 as this app will be
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'']