-
Notifications
You must be signed in to change notification settings - Fork 167
Expand file tree
/
Copy pathproxies.xml
More file actions
56 lines (52 loc) · 1.86 KB
/
proxies.xml
File metadata and controls
56 lines (52 loc) · 1.86 KB
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
<spring:beans xmlns="http://membrane-soa.org/proxies/1/"
xmlns:spring="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-4.2.xsd
http://membrane-soa.org/proxies/1/ http://membrane-soa.org/schemas/proxies-1.xsd">
<router>
<serviceProxy name="Balancer 1" port="8080">
<path>/service</path>
<balancer name="balancer1">
<clusters>
<cluster name="Default">
<!-- target 1 and 2 that are balanced by balancer 1 -->
<node host="localhost" port="4000"/>
<node host="localhost" port="4001"/>
</cluster>
</clusters>
</balancer>
</serviceProxy>
<serviceProxy name="Balancer 2" port="8081">
<path>/service</path>
<balancer name="balancer2">
<clusters>
<cluster name="Default">
<!-- target 3 and 4 that are balanced by balancer 2 -->
<node host="localhost" port="4002"/>
<node host="localhost" port="4003"/>
</cluster>
</clusters>
</balancer>
</serviceProxy>
<!-- Interface for setting nodes to up/down state -->
<serviceProxy name="Up/Down Push Interface" port="9010">
<clusterNotification />
</serviceProxy>
<!-- the respective target nodes the balancers are balancing on ( the counters )-->
<serviceProxy name="Mock Node 1" port="4000">
<counter name="Mock Node 1" />
</serviceProxy>
<serviceProxy name="Mock Node 2" port="4001">
<counter name="Mock Node 2" />
</serviceProxy>
<serviceProxy name="Mock Node 3" port="4002">
<counter name="Mock Node 3" />
</serviceProxy>
<serviceProxy name="Mock Node 4" port="4003">
<counter name="Mock Node 4" />
</serviceProxy>
<serviceProxy name="Administration" port="9000">
<adminConsole />
</serviceProxy>
</router>
</spring:beans>