https://flyte.org logo
#announcements
Title
# announcements
v

Viktor Gerdin

05/20/2022, 9:33 AM
Hello! We have a webapi plugin and would like to control the rate of how often propeller calls the
Status()
hook [interface explained]. We have noticed that this is very much depending on load. During low (normal) load
Status()
is called multiple times per second. The
Get()
hook is only executed once every 30s, so we consider any rate of
Status()
higher than 15s to be a waste. The webapi
PluginConfig
contains configurations for a
ReadRateLimiter
and
WriteRateLimiter
[github] which I am unable to find being used in either propeller nor plugin machinery. We are not experiencing any throttling from the external API, only that the
Status()
rate is very high. Anyone have any pointers where to go from here?
k

Ketan (kumare3)

05/20/2022, 1:30 PM
Status should be a simple inMemory read. The actual work is done in get
The status is a way propeller maintains state and I think it should be unrestricted
Why does status call matter?
v

Viktor Gerdin

05/20/2022, 1:31 PM
Correct, and that is how the plugin is implemented, however every status call still spins up k8s workers needlessly.
There is network coms, resources are updated
k

Ketan (kumare3)

05/23/2022, 1:46 PM
There should be no network right?
29 Views