-
Notifications
You must be signed in to change notification settings - Fork 39
/
ispn-alerting-local.xml
104 lines (96 loc) · 4.75 KB
/
ispn-alerting-local.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2015-2017 Red Hat, Inc. and/or its affiliates
and other contributors as indicated by the @author tags.
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.
-->
<infinispan
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:9.0 http://www.infinispan.org/schemas/infinispan-config-9.0.xsd"
xmlns="urn:infinispan:config:9.0">
<cache-container name="hawkular-alerts">
<local-cache name="partition"/>
<local-cache name="triggers"/>
<local-cache name="data"/>
<local-cache name="publish">
<transaction mode="BATCH"/>
</local-cache>
<local-cache name="dataIds">
<transaction mode="BATCH"/>
</local-cache>
<local-cache name="schema"/>
<local-cache name="globalActions">
<transaction mode="BATCH"/>
</local-cache>
<!-- Backend for definitions, actions history, events and alerts -->
<local-cache name="backend">
<transaction mode="BATCH"/>
<persistence>
<file-store preload="true" fetch-state="true" read-only="false" purge="false" path="${hawkular.data}/alerting">
<write-behind thread-pool-size="5" modification-queue-size="10000" />
</file-store>
</persistence>
<indexing index="LOCAL">
<indexed-entities>
<indexed-entity>org.hawkular.alerts.engine.impl.ispn.model.IspnAction</indexed-entity>
<indexed-entity>org.hawkular.alerts.engine.impl.ispn.model.IspnActionDefinition</indexed-entity>
<indexed-entity>org.hawkular.alerts.engine.impl.ispn.model.IspnCondition</indexed-entity>
<indexed-entity>org.hawkular.alerts.engine.impl.ispn.model.IspnDampening</indexed-entity>
<indexed-entity>org.hawkular.alerts.engine.impl.ispn.model.IspnEvent</indexed-entity>
<indexed-entity>org.hawkular.alerts.engine.impl.ispn.model.IspnTrigger</indexed-entity>
</indexed-entities>
<property name="default.indexmanager">near-real-time</property>
<property name="default.directory_provider">infinispan</property>
<property name="default.chunk_size">128000</property>
<property name="default.locking_cachename">LuceneIndexesLocking_custom</property>
<property name="default.data_cachename">LuceneIndexesData_custom</property>
<property name="default.metadata_cachename">LuceneIndexesMetadata_custom</property>
<!-- The default is 10, but we don't want to waste many cycles in merging
(tune for writes at cost of reader fragmentation) -->
<property name="default.indexwriter.merge_factor">30</property>
<!-- Never create segments larger than 1GB -->
<property name="default.indexwriter.merge_max_size">1024</property>
<!-- IndexWriter flush buffer size in MB -->
<property name="default.indexwriter.ram_buffer_size">64</property>
<!-- Enable sharding on writers -->
<property name="default.sharding_strategy.nbr_of_shards">6</property>
<property name="lucene_version">LUCENE_CURRENT</property>
</indexing>
</local-cache>
<local-cache name="LuceneIndexesMetadata_custom">
<transaction mode="NON_XA" />
<persistence passivation="false">
<file-store preload="true" fetch-state="true" read-only="false" purge="false" path="${hawkular.data}/alerting">
<write-behind thread-pool-size="5" />
</file-store>
</persistence>
<indexing index="NONE"/>
</local-cache>
<local-cache name="LuceneIndexesData_custom">
<transaction mode="NON_XA" />
<persistence passivation="false">
<file-store preload="true" fetch-state="true" read-only="false" purge="false" path="${hawkular.data}/alerting">
<write-behind thread-pool-size="5" />
</file-store>
</persistence>
<indexing index="NONE" />
</local-cache>
<local-cache name="LuceneIndexesLocking_custom">
<transaction mode="NON_XA" />
<persistence passivation="false">
<file-store preload="true" fetch-state="true" read-only="false" purge="false" path="${hawkular.data}/alerting">
<write-behind thread-pool-size="5" />
</file-store>
</persistence>
<indexing index="NONE" />
</local-cache>
</cache-container>
</infinispan>