Changes between Version 29 and Version 30 of Doc/SCDB/Usage
- Timestamp:
- Jan 11, 2010, 9:37:11 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Doc/SCDB/Usage
v29 v30 9 9 To 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]. 10 10 11 == Cluster Groups == 11 == Cluster Groups == #ClusterGroups 12 12 13 13 In 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). … … 125 125 * {{{update.rep.templates}}} : this task updates templates describing RPM repositories contents by scanning each repository associated directory. 126 126 127 === Compiling a selected cluster or cluster group === 128 129 When 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 135 After 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. 127 136 128 137 == Checking Compilation Results and Profile Consistency == 129 138 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 141 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/utils/profiles/compare_xml utils/profiles/compare_xml]. This tool is part of [source:SCDB/trunk SCDB base]. 133 142 134 143 To 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 : 135 144 136 145 {{{ 137 # src/utils/profiles/compare_xml146 # utils/profiles/compare_xml 138 147 139 148 Comparing XML files (*.xml)... … … 142 151 Differences found in build/xml/profile_grid07.xml 143 152 144 # src/utils/profiles/compare_xml -v -p profile_grid05153 # utils/profiles/compare_xml -v -p profile_grid05 145 154 146 155 Comparing XML files (profile_grid05.xml)...