ansible-role-orientdb/templates/hazelcast.xml.j2

46 lines
2.0 KiB
Django/Jinja

<?xml version="1.0" encoding="UTF-8"?>
<!-- ~ Copyright (c) 2008-2012, Hazel Bilisim Ltd. All Rights Reserved. ~
~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may
not use this file except in compliance with the License. ~ You may obtain
a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~
~ Unless required by applicable law or agreed to in writing, software ~ distributed
under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES
OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for
the specific language governing permissions and ~ limitations under the License. -->
<hazelcast
xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-3.3.xsd"
xmlns="http://www.hazelcast.com/schema/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<group>
<name>{{ orientdb_hazelcast_group_name }}</name>
<password>{{ orientdb_hazelcast_group_password }}</password>
</group>
<network>
<port auto-increment="true">{{ orientdb_hazelcast_port_min }}</port>
<join>
<multicast enabled="{{ orientdb_hazelcast_multicast_enabled | ternary('true','false') }}">
<multicast-group>{{ orientdb_hazelcast_multicast_group }}</multicast-group>
<multicast-port>{{ orientdb_hazelcast_port_min }}</multicast-port>
</multicast>
{% if not orientdb_hazelcast_multicast_enabled %}
<tcp-ip enabled="true">
{% for node in orientdb_hazelcast_unicast_members %}
<member>{{ node.member }}:{{ node.port | default(orientdb_hazelcast_port_min) }}</member>
{% endfor %}
</tcp-ip>
{% endif %}
</join>
{% if orientdb_hazelcast_encryption %}
<symmetric-encryption enabled="true">
<algorithm>Blowfish</algorithm>
<salt>{{ orientdb_hazelcast_salt }}</salt>
<password>{{ orientdb_hazelcast_pwd }}</password>
<iteration-count>19</iteration-count>
</symmetric-encryption>
{% endif %}
</network>
<executor-service>
<pool-size>16</pool-size>
</executor-service>
</hazelcast>