Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.
(Answer) (Category) Java Apache Project : (Category) Apache JServ 1.0 : (Category) Configuration : (Category) Load Balancing :
How do I manipulate the JServ shared memory file?
The shared memory file can be read easily from shell, perl, or C applications. One way to determine the current status of currently routed VMs would be with the UNIX strings command. Remove unwanted characters with sed. Use grep to grab the pertinent lines. The result could be something like so:

strings /var/log/jserv_shm | sed -e 's/\$//g' -e 's/-$//' | grep -e '[-+/X]'

Here is a tool for manipulating the JServ shared memory file. This makes possible a managed removal (or re-addition) of VM's from the load balancing list by updating the STATUS on the given VM from [+-/X] to whatever new state you wish. This makes for smoother live content updates when you are load balancing between many VMs (Refer to Jean-Luc Rochet's documentation for a better description of the single character states here).

shm-update.sh

And here is a less robust perl version:
shm-update.pl


markATi-driveDOTcom
[Append to This Answer]
Previous: (Answer) Latest Documentation...
This document is: http://java.apache.org/faq/?file=304
[Search] [Appearance] [Show Expert Edit Commands]
This is a Faq-O-Matic 2.709.
Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.