Forum OpenACS Q&A: Clustering

Collapse
Posted by Nima Mazloumi on
Hi I have set up several server and use pound as a proxy for load balancing. I works fine but if in one server a new site node is created it is not available on the other server. Only after a restart all nodes are known.

How can I tell the server to reload the site map?

Collapse
2: Re: Clustering (response to 1)
Posted by Raúl Morales Hidalgo on
Hi Nima,

We have a scheduled procedure every 5 minutes on the slaves,

Here is the code:

set root_node_id [db_string get_root_node_id {select node_id from site_nodes where parent_id is null} -default {}]
if { ![empty_string_p $root_node_id] } {
site_node::update_cache -sync_children -node_id $root_node_id
}

Collapse
3: Re: Clustering (response to 2)
Posted by Nima Mazloumi on
Thank you.

Is there a save way via to tell the aolserver to shut down instead of simply killing the process?

Right now I use

fuser -k -n tcp PORT

or

kill -9 PID

Collapse
4: Re: Clustering (response to 1)
Posted by Raúl Morales Hidalgo on
Nima, Have you tried ns_shutdown?