The Distributed Management
Architecture allows the implementation of local intelligence
using the Python Scripting language. Those Management scripts
that are stored and executed on each single node can react
on system or application events and perform any management
task automatically. An example of these management tasks include
the implementation of policies for starting and stopping server
processes in accordance to the number of requests and usage
profiles for a particular component. The code for one such
Python Managed Object is shown in Figure 9.
Using scripting allows
for easy on-site customisation because compilation is not
required. The user defined Python script can access the K2server
functions by a Python extension library.