-
Notifications
You must be signed in to change notification settings - Fork 1
/
ignite-config.xml
54 lines (45 loc) · 1.95 KB
/
ignite-config.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="UTF-8"?><!-- Ignite configuration for a mule node -->
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean name="quiz-cache" id="quiz-cache" class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="quizCache" />
<property name="cacheMode" value="PARTITIONED" />
<property name="indexedTypes">
<array>
<value>java.lang.Long</value>
<value>org.hawkore.samples.api.quiz.entities.Quiz</value>
</array>
</property>
</bean>
<!-- Ignite configuration -->
<bean id="ignite-config" class="org.apache.ignite.configuration.IgniteConfiguration">
<property name="gridName" value="ignite-grid-one" />
<property name="clientMode" value="true" />
<property name="peerClassLoadingEnabled" value="false" />
<property name="metricsLogFrequency" value="0" />
<property name="cacheConfiguration">
<list>
<ref bean="quiz-cache"/>
</list>
</property>
<!-- Explicitly configure TCP discovery SPI -->
<property name="discoverySpi">
<bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
<property name="ipFinder">
<!--
Enables Kubernetes IP finder and set namespace and service name (cluster) to find SERVER nodes.
-->
<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder">
<property name="shared" value="true" />
<property name="namespace" value="my-mule4-stack"/>
<property name="serviceName" value="ignite-cluster-one-service"/>
</bean>
</property>
</bean>
</property>
<property name="gridLogger">
<bean class="org.apache.ignite.logger.slf4j.Slf4jLogger" />
</property>
</bean>
</beans>