forked from apache/stratos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CurveFinderOfHealthRequest.xml
84 lines (79 loc) · 5.11 KB
/
CurveFinderOfHealthRequest.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
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you 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.
-->
<executionPlan name="CurveFinderOfHealthRequest"
statistics="disable" trace="disable" xmlns="http://wso2.org/carbon/eventprocessor">
<description>This will find the curve finder of health stats over a minute.</description>
<siddhiConfiguration>
<property name="siddhi.enable.distributed.processing">false</property>
<property name="siddhi.persistence.snapshot.time.interval.minutes">0</property>
</siddhiConfiguration>
<importedStreams>
<stream as="health_curve_finder_request" name="cartridge_agent_health_stats" version="1.0.0"/>
</importedStreams>
<queryExpressions><![CDATA[
from health_curve_finder_request
select member_id, cluster_id, cluster_instance_id, network_partition_id, health_description, value,
stratos:concat(cluster_id, '-' ,cluster_instance_id) as health_curve_finder_cluster_network
insert into health_curve_finder_concat;
from health_curve_finder_concat
select cluster_id, cluster_instance_id, network_partition_id, health_curve_finder_cluster_network, health_description, value, 0.0 as a, 0.0 as b, 0.0 as c
insert into health_curve_finder_concat_temp;
define partition health_curve_finder_cluster_partition by health_curve_finder_concat_temp.health_curve_finder_cluster_network;
from health_curve_finder_concat_temp [health_description == 'memory_consumption']
#window.stratos:curveFitting(10 min, value, a, b, c)
select cluster_id, cluster_instance_id, network_partition_id, value as curve_finder_memory_consumption, a as curve_finder_a, b as curve_finder_b, c as curve_finder_c
output snapshot every 1 min
insert into curve_finder_memory_consumption_stats
partition by health_curve_finder_cluster_partition;
from health_curve_finder_concat_temp [health_description == 'load_average']
#window.stratos:curveFitting(10 min, value, a, b, c)
select cluster_id, cluster_instance_id, network_partition_id, value as curve_finder_load_average, a as curve_finder_a, b as curve_finder_b, c as curve_finder_c
output snapshot every 1 min
insert into curve_finder_load_average_stats
partition by health_curve_finder_cluster_partition;
from health_curve_finder_request
select member_id, cluster_id, cluster_instance_id, network_partition_id, health_description, value,
stratos:concat(cluster_id, '-' ,cluster_instance_id) as health_curve_finder_cluster_network
insert into health_curve_finder_concat_member;
from health_curve_finder_concat_member
select member_id, cluster_id, cluster_instance_id, network_partition_id, health_description, value, health_curve_finder_cluster_network, 0.0 as a, 0.0 as b, 0.0 as c
insert into member_health_curve_finder_concat_temp;
define partition health_curve_finder_member_partition by member_health_curve_finder_concat_temp.member_id;
from member_health_curve_finder_concat_temp [health_description == 'memory_consumption']
#window.stratos:curveFitting(10 min, value, a, b, c)
select member_id, cluster_id, cluster_instance_id, network_partition_id, value as member_curve_finder_memory_consumption, a as curve_finder_a, b as curve_finder_b, c as curve_finder_c
output snapshot every 1 min
insert into member_curve_finder_memory_consumption_stats
partition by health_curve_finder_member_partition;
from member_health_curve_finder_concat_temp [health_description == 'load_average']
#window.stratos:curveFitting(10 min, value, a, b, c)
select member_id, cluster_id, cluster_instance_id, network_partition_id, value as member_curve_finder_load_average, a as curve_finder_a, b as curve_finder_b, c as curve_finder_c
output snapshot every 1 min
insert into member_curve_finder_load_average_stats
partition by health_curve_finder_member_partition;]]></queryExpressions>
<exportedStreams>
<stream name="curve_finder_memory_consumption_stats"
valueOf="curve_finder_memory_consumption_stats" version="1.0.0"/>
<stream name="curve_finder_load_average_stats"
valueOf="curve_finder_load_average_stats" version="1.0.0"/>
<stream name="member_curve_finder_memory_consumption_stats"
valueOf="member_curve_finder_memory_consumption_stats" version="1.0.0"/>
<stream name="member_curve_finder_load_average_stats"
valueOf="member_curve_finder_load_average_stats" version="1.0.0"/>
</exportedStreams>
</executionPlan>