Hello! May I ask for the experts opinion on this? Thanks for your attention!

What am i doing wrong? That's my situation:

laconi.ca 0.8.0 running on the smallest slice over at
http://www.slicehost.com/ on a ubuntu as http://io3.ch where I am the
only real user at the moment. I am subscribed to some 200 users on
laconi.ca instances, mainly from identi.ca. so there is some, but no
heavy traffic coming in. a few of my settings:

for saving RAM:
$config['queue']['enabled'] = false;

for only showing local (my...) dents on homepage:
$config['public']['localonly'] = true;

the only daemon running is xmppdaemon.php

mostly everything runs fine, but one thing I don't get:

as RAM is scarce (256MB) I thought, memcached might help decrease load
on mysql and increase responsiveness. In a way this works, but:

when memcached is enabled: when restarting the slice I see incoming
dents via the xmpp-daemon on my jabber client. then I login the first
time and they are there. what I see over xmpp and what is on the site
under http://io3.ch/patsch/all at that moment is in sync.
then more dents come in (as observable on the jabber-client), but now
the site stands still. http://io3.ch/patsch/all is not showing, what
is coming in as I see on the jabber client.

When I am on http://io3.ch/patsch/all and enter a dent, it's inserted
on the top, as it should be. then I reload the page - and it is gone
on http://io3.ch/patsch/all . but it is there on http://io3.ch/patsch
and http://io3.ch

maybe it all boils down to the question: how do I teach memcached to
always show the actual, up to date version of http://io3.ch/patsch/all
and not a frozen one of the very first moment, I accessed it? or:
what's the trigger for memcached to update?

as for speed: with memcached http://io3.ch/patsch/all loads really
fast. with memcached disabled, it takes ages to load.

set
$config['memcached']['enabled'] = false;

apache2ctl stop
apache2ctl start

reload http://io3.ch/patsch/all

wait 30 seconds... (which is mainly due to my small slice I guess)

and then all dents are there. also the ones that came in while
memcached was enabled. when new ones come in, as I see on the jabber
client, and I do a reload (and then wait 30 seconds), the new ones are
shown on the site. so without memcached "jabber" and "site" are always
in sync.

then, just for testing, I do:
$config['memcached']['enabled'] = true;
apache2ctl stop
/etc/init.d/memcached stop
/etc/init.d/memcached start
apache2ctl start

and reload http://io3.ch/patsch/all - then I can reproduce the problem
I described above: the site shows the dents of the moment, I first
accessed it. but no new dents are added on the website. although
they're saved ok in the database, as proven through disabeling
memcached and reloading the site.

any idea?

thanks for your thoughts! and for laconi.ca in general!

Patrik
_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev

Reply via email to