Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(load-balancer): handle planned targets exceedings max targets #570

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

apricote
Copy link
Member

@apricote apricote commented Nov 29, 2023

Catches the error condition before we even make a request to the API. This causes less requests to be sent to the Hetzner Cloud API.

This does not change the behavior, as we just log & continue right now if we encounter a ErrorCodeResourceLimitExceeded while adding the target. Both cases are just visible in the HCCM logs (see #569 for improvements in that regard).

Catches the error condition before we even make a request to the API.

Co-authored-by: Julian Tölle <julian.toelle@hetzner-cloud.de>
@apricote apricote added the enhancement New feature or request label Nov 29, 2023
@apricote apricote self-assigned this Nov 29, 2023
@apricote apricote requested a review from a team as a code owner November 29, 2023 13:33
@apricote
Copy link
Member Author

Quick fix to the original issue description, the current behaviour is exactly the same, but we send less API requests in this case.

If an ErrorCodeResourceLimitExceeded error is encountered while adding the targets, we just continue with our life.

@apricote apricote merged commit 8bb131f into main Nov 29, 2023
@apricote apricote deleted the lb-target-check branch November 29, 2023 14:37
apricote pushed a commit that referenced this pull request Dec 1, 2023
🤖 I have created a release *beep* *boop*
---


##
[1.19.0-rc.0](v1.18.0...v1.19.0-rc.0)
(2023-12-01)


### Features

* **chart:** add daemonset and node selector
([#537](#537))
([a94384f](a94384f))
* **config:** stricter validation for settings
`HCLOUD_LOAD_BALANCERS_ENABLED`, `HCLOUD_METRICS_ENABLED` &
`HCLOUD_NETWORK_ROUTES_ENABLED`
([#546](#546))
([335a2c9](335a2c9))
* **helm:** remove "v" prefix from chart version
([#565](#565))
([f11aa0d](f11aa0d)),
closes
[#529](#529)
* **load-balancer:** handle planned targets exceedings max targets
([#570](#570))
([8bb131f](8bb131f))
* remove unused variable NODE_NAME
([#545](#545))
([a659408](a659408))
* **robot:** handle ratelimiting with constant backoff
([#572](#572))
([2ddc201](2ddc201))
* support for Robot servers
([#561](#561))
([65dea11](65dea11))

---
This PR was generated with [Release
Please](/~https://github.com/googleapis/release-please). See
[documentation](/~https://github.com/googleapis/release-please#release-please).
apricote added a commit that referenced this pull request Dec 7, 2023
## [1.19.0](v1.18.0...v1.19.0)
(2023-12-07)


### Features

* **chart:** add daemonset and node selector
([#537](#537))
([a94384f](a94384f))
* **config:** stricter validation for settings
`HCLOUD_LOAD_BALANCERS_ENABLED`, `HCLOUD_METRICS_ENABLED` &
`HCLOUD_NETWORK_ROUTES_ENABLED`
([#546](#546))
([335a2c9](335a2c9))
* **helm:** remove "v" prefix from chart version
([#565](#565))
([f11aa0d](f11aa0d)),
closes
[#529](#529)
* **load-balancer:** handle planned targets exceedings max targets
([#570](#570))
([8bb131f](8bb131f))
* remove unused variable NODE_NAME
([#545](#545))
([a659408](a659408))
* **robot:** handle ratelimiting with constant backoff
([#572](#572))
([2ddc201](2ddc201))
* support for Robot servers
([#561](#561))
([65dea11](65dea11))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants