-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added schema for cluster routing awareness.
Signed-off-by: dblock <[email protected]>
- Loading branch information
Showing
11 changed files
with
117 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: Schemas of Weighted Routing Category | ||
description: Schemas of weighted routing category. | ||
version: 1.0.0 | ||
paths: {} | ||
components: | ||
schemas: | ||
Weights: | ||
type: object | ||
properties: | ||
_version: | ||
$ref: '_common.yaml#/components/schemas/VersionNumber' | ||
weights: | ||
type: object | ||
WeightsResponse: | ||
allOf: | ||
- $ref: '#/components/schemas/Weights' | ||
- type: object | ||
properties: | ||
discovered_cluster_manager: | ||
type: boolean | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
$schema: ../../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test cluster routing settings. | ||
version: '>= 2.16' | ||
prologues: | ||
- path: /_cluster/settings | ||
method: PUT | ||
request: | ||
payload: | ||
transient: | ||
cluster.routing.allocation.awareness.attributes: zone | ||
cluster.routing.allocation.awareness.force.zone.values: | ||
- zone-a | ||
- zone-b | ||
chapters: | ||
- synopsis: Get zone routing weights. | ||
id: weights | ||
path: /_cluster/routing/awareness/{attribute}/weights | ||
method: GET | ||
parameters: | ||
attribute: zone | ||
output: | ||
version: payload._version ? -1 | ||
- synopsis: Update zone routing weights. | ||
path: /_cluster/routing/awareness/{attribute}/weights | ||
method: PUT | ||
parameters: | ||
attribute: zone | ||
request: | ||
payload: | ||
weights: | ||
zone-a: '1' | ||
zone-b: '0' | ||
_version: ${weights.version} | ||
response: | ||
status: 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters