Add: Automated config testing #50
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new script in
bin/run-test.php. It takes a variety of parameters in order to run Jetmon repeatedly with different configs in order to test the performance and stability of different configs.This is a proof-of-concept and needs some additional refinement.
This PR includes a directory (
bin/example-test-configs) with a set of test configs. You can run through these configs by running the following from thebindirectory:jetmon/bin$ php run-test.php --run-time=300 --configs-dir=example-test-configsThis will run through each of the configs with each config being run for five minutes. If you need to run docker via
sudo, you should be prompted to rerun the script withsudo.The script supports the
-hargument to get more help, such as:jetmon/bin$ php run-test.php -hFurther short-term refinements needed:
SIGINT, et al. signals to ensure that the script ends cleanly and replaces the original config. The existing code to capture these signals is not working correctly.