Changes between Version 31 and Version 32 of Doc/TemplateCustom
- Timestamp:
- Jul 4, 2007, 11:40:55 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Doc/TemplateCustom
v31 v32 84 84 A cluster is associated with one or several sites by the cluster specific file [source:templates/trunk/clusters/example/cluster.build.properties cluster.build.properties]. If associated with several sites, the first one takes precedence over the following one if a template exists in several sites. This ability to associate a cluster with several ''sites'' is a key SCDB feature that can be used for several use cases. 85 85 86 Below is the description for several common use cases. They are presented as distinct use cases for clarity but nothing prevents mixing them. 87 86 88 === Managing several geographical sites from one SCDB === 87 89 … … 92 94 In `cluster.build.properties`, you include `mysite` before `gridsite`, with something like : 93 95 {{{ 94 cluster.pan.includes= mycity mycity/**/* gridsite gridsite/**/*96 cluster.pan.includes=sites/mycity sites/mycity/**/* sites/gridsite sites/gridsite/**/* ... 95 97 }}} 96 98 … … 99 101 If you want to add a cluster at another geographical location (e.g. `mycity2` belonging to the same grid site, you will just need to adapt this cluster `cluster.build.properties` with something like : 100 102 {{{ 101 cluster.pan.includes= mycity2 mycity2/**/* gridsite gridsite/**/*103 cluster.pan.includes=sites/mycity2 sites/mycity2/**/* sites/gridsite sites/gridsite/**/* ... 102 104 }}} 103 105 … … 106 108 In `cluster.build.properties`, you include `mysite` before `gridsite`, with something like : 107 109 {{{ 108 cluster.pan.includes= mycity mycity/**/*110 cluster.pan.includes=sites/mycity sites/mycity/**/* ... 109 111 }}} 110 112 113 ''Note : `sites/` in examples must be replaced by whatever you choosed, if you decided to use another name.'' 114 115 111 116 === Supporting production and test clusters === 117 118 This use case is about a site running production systems and test grid systems. They share most of there grid parameters but some of them are differents. This is easily achieved by defining 3 SCDB ''sites'' (in this example, grid site is called `gridsite`) : 119 * `gridsite-prod` : parameters specific to grid production systems 120 * `gridsite-test` : parameters specific to grid test systems 121 * `gridsite` : parameters common to all grid systems at the site 122 123 In production cluster `cluster.build.properties`, include path will be defined as : 124 {{{ 125 cluster.pan.includes=sites/gridsite-prod sites/gridsite-prod/**/* sites/gridsite sites/gridsite/**/* ... 126 }}} 127 128 In test cluster `cluster.build.properties`, include path will be defined as : 129 {{{ 130 cluster.pan.includes=sites/gridsite-test sites/gridsite-test/**/* sites/gridsite sites/gridsite/**/* ... 131 }}} 132 133 134 ''Note : `sites/` in examples must be replaced by whatever you choosed, if you decided to use another name.'' 112 135 113 136 == Hardware Templates ==