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

Specify warmup instead of cold starting the ExecutorServiceHandler #112

Open
Tzal3x opened this issue Nov 24, 2023 · 0 comments
Open

Specify warmup instead of cold starting the ExecutorServiceHandler #112

Tzal3x opened this issue Nov 24, 2023 · 0 comments
Labels
enhancement New feature or request priority:low proposal Proposals regarding the library's features. Requires a discussion.

Comments

@Tzal3x
Copy link
Collaborator

Tzal3x commented Nov 24, 2023

So far workers are created on demand from the eshandler, meaning that there is a cold start. With the current implementation, it will take a few requests for the eshandler to adapt to the load and have available workers waiting to accept transactions.

In most cases it would be useful to "warmup" the eshandler to be ready to execute transactions from the moment of initialization, without the need to accept requests first.

i.e. we could define a warmup function that adds workers to the _workersQueue a-priori, during initialization.

@Tzal3x Tzal3x added priority:low proposal Proposals regarding the library's features. Requires a discussion. enhancement New feature or request labels Nov 24, 2023
@Tzal3x Tzal3x changed the title Specify warmup instead of cold starting the ExecutinoServiceHandler Specify warmup instead of cold starting the ExecutionServiceHandler Nov 24, 2023
@Tzal3x Tzal3x changed the title Specify warmup instead of cold starting the ExecutionServiceHandler Specify warmup instead of cold starting the ExecutorServiceHandler Jan 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request priority:low proposal Proposals regarding the library's features. Requires a discussion.
Projects
None yet
Development

No branches or pull requests

1 participant