Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

fix(base) reduce the amount of timers used #105

Closed
wants to merge 1 commit into from
Closed

Conversation

kikito
Copy link
Member

@kikito kikito commented Nov 6, 2020

This PR changes the timers so that instead of creating one per
balancer we crete a single global one. The price payed is that
we must store a glocal variable with all the lbs inside.

The DNS refresh is async so no further timers/threads are needed.

Note that the single global recurring timer is now marked as
"detached" so that it is not garbage-collected.

This PR changes the timers so that instead of creating one per
balancer we crete a single global one. The price payed is that
we must store a `glocal` variable with all the lbs inside.

The DNS refresh is async so no further timers/threads are needed.

Note that the single global recurring timer is now marked as
"detached" so that it is not garbage-collected.
@locao
Copy link
Contributor

locao commented Jan 4, 2021

Superseded by #112

@locao locao closed this Jan 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants