Forum OpenACS Q&A: Re: Clustering

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