Understanding MemCached

62 views
Skip to first unread message

Organic Spider

unread,
Jul 21, 2011, 2:26:22 PM7/21/11
to memc...@googlegroups.com
Hello all,

Forgive my ignorance as I am trying to get my head around memcached and how it could help in a idea I have. My idea is to bring OSSEC and OpenVAS together and share results between multiple nodes with the aim of being able to re-write iptables or WAF rules.

I would be holding all data in a central MySQL database with a cron/daemon Perl script that would query it and build datasets. This data would be written into a memcached database if it does not already exist. Each web/application server would have an instance of memcached running as-well so would the data automatically be shared with the other servers ?

When memcached data is distributed to other nodes (servers) is there any sort of trigger to show that new data exists ? or would one need to use a serial number akin to DNS ?

Sorry if these are all silly questions!
--
Thanks, Organic Spider | Weaving Open Source Technology

Brian Moon

unread,
Jul 21, 2011, 4:43:22 PM7/21/11
to memc...@googlegroups.com, Organic Spider

Organic Spider

unread,
Jul 21, 2011, 4:58:19 PM7/21/11
to Brian Moon, memc...@googlegroups.com
Hi Brian,

Yes have had a good read and still feel a little lost and stupid. What triggers each node to have the cache populated ? How does the data move between each node ?

Or, is what I am requiring the repcached mod to replicate the data ?

Again, sorry for silly questions just cannot get my head around it at the moment; sorry!


--
Thanks, Organic Spider | Weaving Open Source Technology

----- Original Message -----

Les Mikesell

unread,
Jul 21, 2011, 5:19:41 PM7/21/11
to memc...@googlegroups.com
On 7/21/2011 3:58 PM, Organic Spider wrote:
> Hi Brian,
>
> Yes have had a good read and still feel a little lost and stupid. What triggers each node to have the cache populated ?

The client has to populate the data after a get attempt for a key fails.

> How does the data move between each node ?

The other client's gets will succeed until the time to live expires.
When that happens, the client making the failing request should pull a
copy of the data from your database and refresh it in memcache.

> Or, is what I am requiring the repcached mod to replicate the data ?

As long as your clients are configured with the same list of servers in
the same order they will find a single copy.

--
Les Mikesell
lesmi...@gmail.com

Reply all
Reply to author
Forward
0 new messages