-
Notifications
You must be signed in to change notification settings - Fork 44
/
slb.ctmpl
75 lines (65 loc) · 1.79 KB
/
slb.ctmpl
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
neutrino {
# Use this to enable/disable the direct SLB api
enable-api = true,
}
neutrino.datasource {
#Refresh time for file
refresh-period = 30s
datasource-reader = "com.ebay.neutrino.datasource.FileReader"
}
resolvers.neutrino {
listeners = [
{
# pool resolvers configured
pool-resolver = ["cname", "layerseven"],
# listening port of SLB
port = 8983,
protocol = "http"
},
{
# pool resolvers configured
pool-resolver = ["cname", "layerseven"],
# listening port of SLB
port = 8984,
protocol = "http"
}
]
initializers = [
"com.ebay.neutrino.metrics.MetricsLifecycle"
]
metrics = [
# Support for console logging
{ type = "console", publish-period = 1m }
]
pools = [
{
id = "Solr", protocol = "http", balancer = "weighted-round-robin", port = "8983",
servers = [
{{range service "Solr"}}
{{ if .Tags | contains "blue" }}
{ id="{{.Node}}" , host="{{.Address}}", port="{{.Port}}", weight = {{ key "solr/config/blue/weight"}} },
{{end}}{{end}}
{{range service "Solr"}}
{{ if .Tags | contains "green" }}
{ id="{{.Node}}" , host="{{.Address}}", port="{{.Port}}", weight = {{ key "solr/config/green/weight"}}},
{{end}}{{end}}
]
addresses = [
{host="10.142.0.25" }
]
}
#Direct-Component Testing Pool
{
id = "DirectTest", protocol = "http", balancer = "lc", port = "8984",
servers = [
{{range service "Solr"}}
{{$keyname := key "solr/config/testing/env"}}
{{ if .Tags | contains $keyname }}
{ id="{{.Node}}" , host="{{.Address}}", port="{{.Port}}"},
{{end}}{{end}}
]
addresses = [
{host="10.142.0.25" }
]
}
] }