|
243 | 243 | <!--<parameter name="addressingPara">N/A</parameter>--> |
244 | 244 | <!--</moduleConfig>--> |
245 | 245 |
|
246 | | - <!-- ================================================= --> |
247 | | - <!-- Clustering --> |
248 | | - <!-- ================================================= --> |
249 | | - <!-- |
250 | | - To enable clustering for this node, set the value of "enable" attribute of the "clustering" |
251 | | - element to "true". The initialization of a node in the cluster is handled by the class |
252 | | - corresponding to the "class" attribute of the "clustering" element. It is also responsible for |
253 | | - getting this node to join the cluster. |
254 | | - --> |
255 | | - <clustering class="org.apache.axis2.clustering.tribes.TribesClusteringAgent" enable="false"> |
256 | | - |
257 | | - <!-- |
258 | | - This parameter indicates whether the cluster has to be automatically initalized |
259 | | - when the AxisConfiguration is built. If set to "true" the initialization will not be |
260 | | - done at that stage, and some other party will have to explictly initialize the cluster. |
261 | | - --> |
262 | | - <parameter name="AvoidInitiation">true</parameter> |
263 | | - |
264 | | - <!-- |
265 | | - The membership scheme used in this setup. The only values supported at the moment are |
266 | | - "multicast" and "wka" |
267 | | -
|
268 | | - 1. multicast - membership is automatically discovered using multicasting |
269 | | - 2. wka - Well-Known Address based multicasting. Membership is discovered with the help |
270 | | - of one or more nodes running at a Well-Known Address. New members joining a |
271 | | - cluster will first connect to a well-known node, register with the well-known node |
272 | | - and get the membership list from it. When new members join, one of the well-known |
273 | | - nodes will notify the others in the group. When a member leaves the cluster or |
274 | | - is deemed to have left the cluster, it will be detected by the Group Membership |
275 | | - Service (GMS) using a TCP ping mechanism. |
276 | | - --> |
277 | | - <parameter name="membershipScheme">multicast</parameter> |
278 | | - |
279 | | - <!-- |
280 | | - The clustering domain/group. Nodes in the same group will belong to the same multicast |
281 | | - domain. There will not be interference between nodes in different groups. |
282 | | - --> |
283 | | - <parameter name="domain">wso2.carbon.domain</parameter> |
284 | | - |
285 | | - <!-- |
286 | | - When a Web service request is received, and processed, before the response is sent to the |
287 | | - client, should we update the states of all members in the cluster? If the value of |
288 | | - this parameter is set to "true", the response to the client will be sent only after |
289 | | - all the members have been updated. Obviously, this can be time consuming. In some cases, |
290 | | - such this overhead may not be acceptable, in which case the value of this parameter |
291 | | - should be set to "false" |
292 | | - --> |
293 | | - <parameter name="synchronizeAll">true</parameter> |
294 | | - |
295 | | - <!-- |
296 | | - The maximum number of times we need to retry to send a message to a particular node |
297 | | - before giving up and considering that node to be faulty |
298 | | - --> |
299 | | - <parameter name="maxRetries">10</parameter> |
300 | | - |
301 | | - <!-- The multicast address to be used --> |
302 | | - <parameter name="mcastAddress">228.0.0.4</parameter> |
303 | | - |
304 | | - <!-- The multicast port to be used --> |
305 | | - <parameter name="mcastPort">45564</parameter> |
306 | | - |
307 | | - <!-- The frequency of sending membership multicast messages (in ms) --> |
308 | | - <parameter name="mcastFrequency">500</parameter> |
309 | | - |
310 | | - <!-- The time interval within which if a member does not respond, the member will be |
311 | | - deemed to have left the group (in ms) |
312 | | - --> |
313 | | - <parameter name="memberDropTime">3000</parameter> |
314 | | - |
315 | | - <!-- |
316 | | - The IP address of the network interface to which the multicasting has to be bound to. |
317 | | - Multicasting would be done using this interface. |
318 | | - --> |
319 | | - <parameter name="mcastBindAddress">127.0.0.1</parameter> |
320 | | - |
321 | | - <!-- The host name or IP address of this member --> |
322 | | - <parameter name="localMemberHost">127.0.0.1</parameter> |
323 | | - |
324 | | - <!-- |
325 | | - The TCP port used by this member. This is the port through which other nodes will |
326 | | - contact this member |
327 | | - --> |
328 | | - <parameter name="localMemberPort">4000</parameter> |
329 | | - |
330 | | - <!-- |
331 | | - Preserve message ordering. This will be done according to sender order. |
332 | | - --> |
333 | | - <parameter name="preserveMessageOrder">true</parameter> |
334 | | - |
335 | | - <!-- |
336 | | - Maintain atmost-once message processing semantics |
337 | | - --> |
338 | | - <parameter name="atmostOnceMessageSemantics">true</parameter> |
339 | | - |
340 | | - <!-- |
341 | | - Properties specific to this member |
342 | | - --> |
343 | | - <parameter name="properties"> |
344 | | - <property name="backendServerURL" value="https://${hostName}:${httpsPort}/services/"/> |
345 | | - <property name="mgtConsoleURL" value="https://${hostName}:${httpsPort}/"/> |
346 | | - </parameter> |
347 | | - |
348 | | - <!-- |
349 | | - The list of static or well-known members. These entries will only be valid if the |
350 | | - "membershipScheme" above is set to "wka" |
351 | | - --> |
352 | | - <members> |
353 | | - <member> |
354 | | - <hostName>127.0.0.1</hostName> |
355 | | - <port>4000</port> |
356 | | - </member> |
357 | | - <member> |
358 | | - <hostName>127.0.0.1</hostName> |
359 | | - <port>4001</port> |
360 | | - </member> |
361 | | - </members> |
362 | | - |
363 | | - <!-- |
364 | | - Enable the groupManagement entry if you need to run this node as a cluster manager. |
365 | | - Multiple application domains with different GroupManagementAgent implementations |
366 | | - can be defined in this section. |
367 | | - --> |
368 | | - <groupManagement enable="false"> |
369 | | - <applicationDomain name="apache.axis2.application.domain" |
370 | | - description="Axis2 group" |
371 | | - agent="org.apache.axis2.clustering.management.DefaultGroupManagementAgent"/> |
372 | | - </groupManagement> |
373 | | - |
374 | | - <!-- |
375 | | - This interface is responsible for handling management of a specific node in the cluster |
376 | | - The "enable" attribute indicates whether Node management has been enabled |
377 | | - --> |
378 | | - <nodeManager class="org.apache.axis2.clustering.management.DefaultNodeManager" |
379 | | - enable="true"/> |
380 | | - |
381 | | - <!-- |
382 | | - This interface is responsible for handling state replication. The property changes in |
383 | | - the Axis2 context hierarchy in this node, are propagated to all other nodes in the cluster. |
384 | | -
|
385 | | - The "excludes" patterns can be used to specify the prefixes (e.g. local_*) or |
386 | | - suffixes (e.g. *_local) of the properties to be excluded from replication. The pattern |
387 | | - "*" indicates that all properties in a particular context should not be replicated. |
388 | | -
|
389 | | - The "enable" attribute indicates whether context replication has been enabled |
390 | | - --> |
391 | | - <stateManager class="org.apache.axis2.clustering.state.DefaultStateManager" |
392 | | - enable="true"> |
393 | | - <replication> |
394 | | - <defaults> |
395 | | - <exclude name="local_*"/> |
396 | | - <exclude name="LOCAL_*"/> |
397 | | - </defaults> |
398 | | - <context class="org.apache.axis2.context.ConfigurationContext"> |
399 | | - <exclude name="local_*"/> |
400 | | - </context> |
401 | | - <context class="org.apache.axis2.context.ServiceGroupContext"> |
402 | | - <exclude name="local_*"/> |
403 | | - </context> |
404 | | - <context class="org.apache.axis2.context.ServiceContext"> |
405 | | - <exclude name="local_*"/> |
406 | | - </context> |
407 | | - </replication> |
408 | | - </stateManager> |
409 | | - </clustering> |
410 | 246 |
|
411 | 247 | <!-- ================================================= --> |
412 | 248 | <!-- Phases --> |
|
0 commit comments