-
Notifications
You must be signed in to change notification settings - Fork 25k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GCE Discovery] Correcly handle large zones with 500 or more instances (
#83785) (#83978) Discovery gce plugin has some issues while running in large pools of vms instances. This pr attempts to solve it. Closes #83783 Co-authored-by: Claudio Marins <[email protected]>
- Loading branch information
Showing
6 changed files
with
105 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pr: 83785 | ||
summary: '[GCE Discovery] Correcly handle large zones with 500 or more instances' | ||
area: Distributed | ||
type: bug | ||
issues: | ||
- 83783 |
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
37 changes: 37 additions & 0 deletions
37
...arch/discovery/gce/compute/v1/projects/nodeswithpagination/zones/europe-west1-b/instances
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,37 @@ | ||
{ | ||
"id": "dummy", | ||
"items":[ | ||
{ | ||
"description": "ES Node 1", | ||
"id": "9309873766428965105", | ||
"kind": "compute#instance", | ||
"machineType": "n1-standard-1", | ||
"name": "test1", | ||
"networkInterfaces": [ | ||
{ | ||
"accessConfigs": [ | ||
{ | ||
"kind": "compute#accessConfig", | ||
"name": "External NAT", | ||
"natIP": "104.155.13.147", | ||
"type": "ONE_TO_ONE_NAT" | ||
} | ||
], | ||
"name": "nic0", | ||
"network": "default", | ||
"networkIP": "10.240.79.59" | ||
} | ||
], | ||
"status": "RUNNING", | ||
"tags": { | ||
"fingerprint": "xA6QJb-rGtg=", | ||
"items": [ | ||
"elasticsearch", | ||
"dev" | ||
] | ||
}, | ||
"zone": "europe-west1-b" | ||
} | ||
], | ||
"nextPageToken": "next-token" | ||
} |
36 changes: 36 additions & 0 deletions
36
...ute/v1/projects/nodeswithpagination/zones/europe-west1-b/instances%3FpageToken=next-token
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 @@ | ||
{ | ||
"id": "dummy", | ||
"items":[ | ||
{ | ||
"description": "ES Node 2", | ||
"id": "9309873766428965105", | ||
"kind": "compute#instance", | ||
"machineType": "n1-standard-1", | ||
"name": "test2", | ||
"networkInterfaces": [ | ||
{ | ||
"accessConfigs": [ | ||
{ | ||
"kind": "compute#accessConfig", | ||
"name": "External NAT", | ||
"natIP": "104.155.13.147", | ||
"type": "ONE_TO_ONE_NAT" | ||
} | ||
], | ||
"name": "nic0", | ||
"network": "default", | ||
"networkIP": "10.240.79.60" | ||
} | ||
], | ||
"status": "RUNNING", | ||
"tags": { | ||
"fingerprint": "xA6QJb-rGtg=", | ||
"items": [ | ||
"elasticsearch", | ||
"dev" | ||
] | ||
}, | ||
"zone": "europe-west1-b" | ||
} | ||
] | ||
} |