fork of https://github.com/sourcegraph/zoekt
1{
2 "$schema": "http://json-schema.org/draft-04/schema#",
3 "$ref": "#/definitions/WeightedRoundRobinLbConfig",
4 "definitions": {
5 "WeightedRoundRobinLbConfig": {
6 "properties": {
7 "enableOobLoadReport": {
8 "additionalProperties": true,
9 "type": "boolean",
10 "description": "Whether to enable out-of-band utilization reporting collection from the endpoints. By default, per-request utilization reporting is used."
11 },
12 "oobReportingPeriod": {
13 "pattern": "^([0-9]+\\.?[0-9]*|\\.[0-9]+)s$",
14 "type": "string",
15 "description": "Load reporting interval to request from the server. Note that the server may not provide reports as frequently as the client requests. Used only when enable_oob_load_report is true. Default is 10 seconds.",
16 "format": "regex"
17 },
18 "blackoutPeriod": {
19 "pattern": "^([0-9]+\\.?[0-9]*|\\.[0-9]+)s$",
20 "type": "string",
21 "description": "A given endpoint must report load metrics continuously for at least this long before the endpoint weight will be used. This avoids churn when the set of endpoint addresses changes. Takes effect both immediately after we establish a connection to an endpoint and after weight_expiration_period has caused us to stop using the most recent load metrics. Default is 10 seconds.",
22 "format": "regex"
23 },
24 "weightExpirationPeriod": {
25 "pattern": "^([0-9]+\\.?[0-9]*|\\.[0-9]+)s$",
26 "type": "string",
27 "description": "If a given endpoint has not reported load metrics in this long, then we stop using the reported weight. This ensures that we do not continue to use very stale weights. Once we stop using a stale value, if we later start seeing fresh reports again, the blackout_period applies. Defaults to 3 minutes.",
28 "format": "regex"
29 },
30 "weightUpdatePeriod": {
31 "pattern": "^([0-9]+\\.?[0-9]*|\\.[0-9]+)s$",
32 "type": "string",
33 "description": "How often endpoint weights are recalculated. Default is 1 second.",
34 "format": "regex"
35 }
36 },
37 "additionalProperties": true,
38 "type": "object",
39 "title": "Weighted Round Robin Lb Config",
40 "description": "Configuration for weighted_round_robin LB policy."
41 }
42 }
43}