Changes between Version 29 and Version 30 of Doc/SCDB/Usage


Ignore:
Timestamp:
Jan 11, 2010, 9:37:11 AM (14 years ago)
Author:
/O=GRID-FR/C=FR/O=CNRS/OU=LAL/CN=Michel Jouvin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Doc/SCDB/Usage

    v29 v30  
    99To know how to install a Quattor server with SCDB or how to migrate from CDB, refer to the specific page about [wiki:Download/SCDB SCDB installation].
    1010
    11 == Cluster Groups ==
     11== Cluster Groups == #ClusterGroups
    1212
    1313In SCDB, machine profiles are grouped in ''clusters''. SCDB clusters are arbitrary group of machines and have nothing to do with a batch cluster or an underlying cluster technology. All the nodes in a cluster will share in particular the same ''include path'' for templates (that means that templates will be looked at the same locations for all nodes in the cluster), except for OS templates (see section on [wiki:Doc/OS/Customization#SelectingOSversion selecting OS version] in OS templates documentation).
     
    125125 * {{{update.rep.templates}}} : this task updates templates describing RPM repositories contents by scanning each repository associated directory.
    126126
     127=== Compiling a selected cluster or cluster group ===
     128
     129When doing modification to templates in  a configuration with a large number of nodes, it is often desirable to be able to assess the modification on a small number of nodes, as compiling all node profiles generally result in a long turnaround. SCDB offers several options to do this, passed to `ant` with option `-Doption=value`:
     130 * `cluster.name`: compile profile only in the selected cluster. The value must match the name of an existing cluster. If a cluster with the same name exists in different [#ClusterGroups cluster groups], they will be all compiled except if `cluster.group` is also defined.
     131 * `cluster.group`: compile profiles only for clusters belonging to the selected [#ClusterGroups cluster groups]. If `custer.name` is also defined, compile profiles only for this cluster in the selected cluster group.
     132
     133''Note: To enforce consistency of the whole configuration, SCDB doesn't accept these two options at deployment time. They can be used only during the compilation phase before the deployment.''
     134
     135After compiling the selected cluster or cluster groups, it is possible to assess the effect of the modification using [#compare_xml utils/profiles/compare_xml] tool.
    127136
    128137== Checking Compilation Results and Profile Consistency ==
    129138
    130 === Displaying Resulting Changes in Profile ===
    131 
    132 When doing changes in configuration, this is often useful to check the resulting profiles before deploying. There is a small tool to help doing that, [source:SCDB/trunk/src/utils/profiles/compare_xml src/utils/profiles/compare_xml]. This tool is part of [source:SCDB/trunk SCDB base].
     139=== Displaying Resulting Changes in Profile === #compare_xml
     140
     141When doing changes in configuration, this is often useful to check the resulting profiles before deploying. There is a small tool to help doing that, [source:SCDB/trunk/utils/profiles/compare_xml utils/profiles/compare_xml]. This tool is part of [source:SCDB/trunk SCDB base].
    133142
    134143To use this tool, before compiling your changes, you need to copy your current (or reference) `build` directory to something else, by example `build.saved` (default name used by the script). After the compilation, if you run the script without arguments, it will display the list of all profiles that have changed. You can inspect the changes (require a bit of knowledge of profile contents) using option `-v`. Or you can restrict the check to one specific profile with option `-p`. By example :
    135144
    136145{{{
    137 # src/utils/profiles/compare_xml
     146# utils/profiles/compare_xml
    138147
    139148Comparing XML files (*.xml)...
     
    142151Differences found in build/xml/profile_grid07.xml
    143152
    144 # src/utils/profiles/compare_xml -v -p profile_grid05
     153# utils/profiles/compare_xml -v -p profile_grid05
    145154
    146155Comparing XML files (profile_grid05.xml)...