Hi, what's the best practice for implementing Memcached with Content Server? Any advice would help.
Kind regards, Maris
Maris,
Not sure what you mean? From a deployment point of view of development one?
For deployment, fairly simple, they are processes controlled from the System Volume and you can add more processes around the system to increase the amount of caching that is available.
From the development point of view, there is an oscript level api, sorry no web services api yet. The interface for the general development community is here $LLIAPI.MemcachedUtil.
This is a wrapper for the builtin functions, and like always where possible it is a best practice this level interface since there it provides additional infrastructure over an above the direct builtin functions for the developer convience.
Right from the documentation feature:
--------------------------------
Description: MemcachedUtil contains a set of scripts for interfacing with memcached Public Methods: - AddValue Add a new key/value pair to memcached - DecrementValue Decrement a value in memcached - DeleteKey Delete a key from memcached - GetAllServerStats Load statistics about running memcached processes - GetServerCount Get number of memcached servers currently registered - GetValue Get a value from memcached - IncrementValue Increment a value in memcached - MarkConfigurationDirty Used to update KIni to indicate that something has changed in the configuration - New Create a new, temporary instance of this object - ReplaceValue Replace an existing key/value pair in memcached - SetValue Set a key/value pair in memcached
If you have other questions or I missed what you are looking for please don't hesitate to clarify
Regards David Templeton Architect OpenText Corporation
Hi David,many thanks for your response.My main goal is to increase performance & speed up Content Server.Now I have two pointers where I can put efforts to achieve desired outcome1. deployment - System Volume2. development - $LLIAPI.MemcachedUtilWill provide more detailed questions after I'll dig deeper into memcache.Regards,Maris
Either I a missing something or it's not configured or else it doesnt work with Builder active, but I build up a test Assoc and try to store it and the AddValue function internally finds serverExists = false. However, the return value from AddValue doesnt reflect that it found no servers, it just says ok=true with no error message.
Assoc rv = $LLIAPI.MemcachedUtil.AddValue(prgCtx,'test','Preferences',prefs) I did check the System Administration section. Under Memcached Statistics, three servers were listed but all in an unknown state (probably due to Builder). When I tried to start one it said the CA Admin server as down and that service shuts down immediately when I start it, even with the main CS service started and Builder off.
I guess my questions are:
1) Is the Admin service running necessary to get the mem cache stuff to work?
2) Will it work with Builder on?
3) Is there any sort of config or startup/setup that I'm obviously missing?
Hello David,
is it possible to view/show the current memcached values in a cmd-line?
http://code.google.com/p/memcached/wiki/NewConfiguringServer#Commandline_Arguments
Thx
Regards Michael
Michael
In the memcached process object itself, we show you the memory and port settings. On creation of a new object you can set additional commandline parameters, but just checking and it seems we left that off the specific info page
David
Hi David,
How can we change the memcached configuration? Currently, max bytes is set to 64MB, need to change it to 256MB.
In my version the memcached objects are in - Admin pages, Search Administration, Open the System Object Volume, Process Folder Cheers...
Hi John, Thanks.
I also have same configuration, but don't have option to edit the existing memcached.
How about stopping it and using the Pulldown...
Thanks Appu Nair.