-
Notifications
You must be signed in to change notification settings - Fork 141
/
Copy pathproxies.xml
37 lines (30 loc) · 1.04 KB
/
proxies.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
<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>
<api name="Balancer" port="8080">
<balancer>
<clusters>
<cluster name="Production">
<!-- Replace these with your backend nodes. -->
<node host="localhost" port="4000"/>
<node host="localhost" port="4001"/>
<node host="localhost" port="4002"/>
</cluster>
</clusters>
</balancer>
</api>
<!-- Mock nodes for testing. Remove them in production. -->
<api name="Node 1" port="4000">
<counter name="Node 1" />
</api>
<api name="Node 2" port="4001">
<counter name="Node 2" />
</api>
<api name="Node 3" port="4002">
<counter name="Node 3" />
</api>
</router>
</spring:beans>