Using debugging mode inside a container is impossible because the console host is not parametrized
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
Start in faust/cli/base.py, where the existing --console-port option is defined, and follow how the value reaches the Worker in faust/worker.py. The Worker's console_host attribute lives in the external mode library (mode/worker.py), so check whether that change must land upstream first. Done means a --console-host option binds the aiomonitor console to the given address, which you can confirm by running a worker with --debug inside a container and connecting from the host.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Version: v0.10.21
Using debugging mode inside a container is impossible because the console host is not parametrized. Faust CLI allows specifying aiomonitor console port using the --console-port parameter. Unfortunately, since "console-host" is not available, it's using the default host address specified in aiomonitor, which is 127.0.0.1.
This problem affects both configurations that are using docker containers and Kubernetes setup. Changing it manually in aiomonitor source code to 0.0.0.0 solved the issue both in Docker and Kubernetes.
Steps to reproduce
- Run a Faust worker from within a docker container with the
--debugparameter enabled. - In the console output, you will see a
Starting console at 127.0.0.1:50101message instead oflocalhost. - Accessing the debugging console from outside the container is impossible.
Expected behavior
- Add parameter
--console-hostwhich will override the default host address
As I understand this means: - Adding the
console_hostvariable to theWorkerclass in themodelibrary (https://github.com/faust-streaming/mode/blob/master/mode/worker.py#L351). - Updating Worker class in
faustaccordingly (https://github.com/faust-streaming/faust/blob/master/faust/worker.py#L228) - And updating CLI (https://github.com/faust-streaming/faust/blob/master/faust/cli/base.py#L158)
Actual behavior
aiomonitorconsole is running on the default host address:127.0.0.1.
- Vorherrschende Sprache
- Python
- Sterne
- 1.9k
- Forks
- 205
- Ø Merge
- 2 Std. 2 Min.
- Gemergte PRs (30 T.)
- 1
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus faust-streaming/faust
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 86/100
faust-streaming/faust#804 ·
-
scripts/install script forces use of ./venv virtualenv, impossible to use with virtualenvwrapperOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 62/100
faust-streaming/faust#28 · 1 Kommentar ·
-
[BUG] SASL PLAINTEXT producer initialization fails : missing sasl_plain_username/passwordEvtl. vergeben @wbarnha hat das vor 56 Tagen übernommen. Offen
faust-streaming/faust#794 · 2 Kommentare · 1 Reaktion · 2 zugewiesene Personen ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 18/100
faust-streaming/faust#670 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 18/100
faust-streaming/faust#666 ·
Alle Issues in faust-streaming/faust
Ähnliche Issues
-
flaky: test_fire_returns_thread_per_http_entry_on_head waits 5 s per dispatch worker on busy shardsOffenstatus/accepted type/bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
microsoft/apm#5309 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug vector-store
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
EverMind-AI/Raven#1413 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Tests: parallel pyinstallcheck runs oversubscribe the machine through nested TBB and BLAS poolsEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 86/100
ACCESS-NRI/containerised-environments-infra#143 ·
Maintainer antworten meist innerhalb von 2 Tagen