Skip to content

Fix Loadgen Over the Network (LON) Demo - #2647

Open
mkandes wants to merge 1 commit into
mlcommons:masterfrom
mkandes:fix-lon-demo
Open

Fix Loadgen Over the Network (LON) Demo#2647
mkandes wants to merge 1 commit into
mlcommons:masterfrom
mkandes:fix-lon-demo

Conversation

@mkandes

@mkandes mkandes commented Jul 29, 2026

Copy link
Copy Markdown

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

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
@mkandes
mkandes requested review from a team as code owners July 29, 2026 03:40
@github-actions

Copy link
Copy Markdown
Contributor

MLCommons CLA bot:
Thank you very much for your submission; we really appreciate it. Before we can accept your contribution,
we ask that you sign the MLCommons CLA (Apache 2). Please submit your GitHub ID to our onboarding form to initiate
authorization. If you are from a MLCommons member organization, we will request that you be added to the CLA.
If you are not from a member organization, we will email you a CLA to sign. For any questions, please contact
support@mlcommons.org.
0 out of 1 committers have signed the MLCommons CLA.
@mkandes
You can retrigger this bot by commenting recheck in this Pull Request

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

Successfully merging this pull request may close these issues.

1 participant