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

Tests failing because of slow start of the application #8059

Open
micaelmalta opened this issue Mar 22, 2023 · 2 comments
Open

Tests failing because of slow start of the application #8059

micaelmalta opened this issue Mar 22, 2023 · 2 comments

Comments

@micaelmalta
Copy link
Contributor

Some webservers like nginx-unit has a very slow start process which cause tests failure

Would it be possible to include a healthcheck with start_period like it s done in docker-compose?

thanks

@NateBrady23
Copy link
Member

We ping the application every second for 1 minute. We don't have the capacity to add a feature just for this. We could increase the ping time a little but that would increase a full run of the test suite by (increase * number of tests that don't start properly). How long does it take nginx-unit to start?

@micaelmalta
Copy link
Contributor Author

micaelmalta commented Mar 22, 2023

Unfortunately, Nginx-Unit has a 2 steps start and It depends on the number of processes.

For what I experienced, it takes about 2s per process per step

So if we want to use the full capacity of the server, we could have for ex, 64 processes which can take a long long time to start

Also, there is a restart during the 2 steps which can cause issue with the way the health check is done

cf: nginx/unit#832

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants