m-lab / ndt-server

docker native ndt5 and ndt7 server with prometheus integration
https://www.measurementlab.net/
Apache License 2.0
101 stars 40 forks source link

Turning off ndt5, prometheus, etc #323

Open daldwinc opened 4 years ago

daldwinc commented 4 years ago

Hi,

I'm trying to run a speed test server with as little overhead as possible, and a simple interface to make things easy for clients on my network.

I can get pretty close by starting ndt-server with the following command:

docker run --network=host \
--volume `pwd`/datadir:/datadir \
--read-only                     \
--user `id -u`:`id -g`          \
ndt-server                      \
-datadir /datadir               \
-ndt7_addr_cleartext :8080

This gets me a server running on 8080 (80 doesn't work, by the way), and the index looks like this:

image

Clicking ndt7.html starts the test as expected.

Clicking embed.html opens the ndt5 page. Clicking Start looks like its going to work, but the test never runs, and the "preparing your tests" note changes to this:

image

Is there a way I can disable the ndt5 page? How about prometheus?

Is there a better way I can achieve my goal of the simplest possible test?

2020/10/15 18:39:19 argsfromenv.go:82: Argument anonymize.ip=none
2020/10/15 18:39:19 argsfromenv.go:82: Argument cert=
2020/10/15 18:39:19 argsfromenv.go:82: Argument datadir=/datadir
2020/10/15 18:39:19 argsfromenv.go:82: Argument htmldir=html
2020/10/15 18:39:19 argsfromenv.go:82: Argument key=
2020/10/15 18:39:19 argsfromenv.go:82: Argument ndt5.protocol.verbose=false
2020/10/15 18:39:19 argsfromenv.go:82: Argument ndt5.token.required=false
2020/10/15 18:39:19 argsfromenv.go:82: Argument ndt5_addr=:3001
2020/10/15 18:39:19 argsfromenv.go:82: Argument ndt5_ws_addr=127.0.0.1:3002
2020/10/15 18:39:19 argsfromenv.go:82: Argument ndt5_wss_addr=:3010
2020/10/15 18:39:19 argsfromenv.go:82: Argument ndt7.token.required=false
2020/10/15 18:39:19 argsfromenv.go:82: Argument ndt7_addr=:443
2020/10/15 18:39:19 argsfromenv.go:82: Argument ndt7_addr_cleartext=:8080
2020/10/15 18:39:19 argsfromenv.go:82: Argument prometheusx.listen-address=:9990
2020/10/15 18:39:19 argsfromenv.go:82: Argument token.machine=
2020/10/15 18:39:19 argsfromenv.go:82: Argument token.verify-key=
2020/10/15 18:39:19 argsfromenv.go:82: Argument txcontroller.device=
2020/10/15 18:39:19 argsfromenv.go:82: Argument txcontroller.max-rate=0
2020/10/15 18:39:19 argsfromenv.go:82: Argument uuid-prefix-file=ndt-campus_1595335980_unsafe
2020/10/15 18:39:19 control.go:81: WARNING: token controller is disabled: square/go-jose/jwt: validation failed, invalid audience claim (aud)
2020/10/15 18:39:19 control.go:89: WARNING: tx controller is disabled: no device found
2020/10/15 18:39:19 control.go:81: WARNING: token controller is disabled: square/go-jose/jwt: validation failed, invalid audience claim (aud)
2020/10/15 18:39:19 control.go:89: WARNING: tx controller is disabled: no device found
2020/10/15 18:39:19 ndt-server.go:153: About to listen for unencrypted ndt5 NDT tests on 127.0.0.1:3002
2020/10/15 18:39:19 ndt-server.go:171: About to listen for ndt7 cleartext tests on :8080
2020/10/15 18:39:19 ndt-server.go:198: Cert="" and Key="" means no TLS services will be started.
daldwinc commented 3 years ago

@critzo Not trying to rush this particular issue, but I was wondering if this project is still under active development? I don't see any public commits since Nov.

I hope you keep it going!