Fix Loadgen Over the Network (LON) Demo - #2647
Open
mkandes wants to merge 1 commit into
Open
Conversation
Add --host argument to sut_over_network_demo.py. By default, Flask will always bind the SUT to localhost (127.0.0.1), which precludes this simple LON demo from being run over a network. This minor modification allows the SUT to be bound to any network interface [2]. [1] [mkandes_test@exp-9-55 lon]$ python sut_over_network_demo.py --port 8000 * Serving Flask app 'sut_over_network_demo' * Debug mode: off WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Running on http://127.0.0.1:8000 Press CTRL+C to quit [2] [mkandes_test@exp-1-27 lon]$ python sut_over_network_demo.py --host 10.21.1.27 --port 8000 --node n0 * Serving Flask app 'sut_over_network_demo' * Debug mode: off WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Running on http://10.21.1.27:8000 Press CTRL+C to quit
Contributor
|
MLCommons CLA bot: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Add --host argument to sut_over_network_demo.py. By default, Flask will always bind the SUT to localhost (127.0.0.1), which precludes this simple LON demo from being run over a network. This minor modification allows the SUT to be bound to any network interface [2].
[1]
[mkandes_test@exp-9-55 lon]$ python sut_over_network_demo.py --port 8000
[2]
[mkandes_test@exp-1-27 lon]$ python sut_over_network_demo.py --host 10.21.1.27 --port 8000 --node n0