Skip to content

Conversation

@ariefrahmansyah
Copy link
Contributor

@ariefrahmansyah ariefrahmansyah commented Jul 26, 2021

What this PR does / why we need it:

This PR improves the Logging UX by aggregating logs from several pods and containers to one stream. It allows the user to stream the component's logs (model, transformer, batch job driver/executor, image builder) instead of one container log at a time.

In this PR we also fixes following issues:

  • Fixes Log UI component scrolling
  • Fixes Strackdriver URL

Does this PR introduce a user-facing change?:

- Update Logging UI

Screenshots

  1. Model and transformer
    image

  2. Pyfunc and it's image builder
    image

  3. Batch job
    image

  4. No model
    image

  5. No batch job
    image

Checklist

  • Added unit test, integration, and/or e2e tests
  • Tested locally
  • Update Swagger spec if the PR introduce API changes
  • Regenerated Golang and Python client if the PR introduce API changes -- To be raised in separate PR.

@ariefrahmansyah ariefrahmansyah marked this pull request as ready for review July 27, 2021 23:33
@ariefrahmansyah ariefrahmansyah merged commit 7ad0f82 into main Jul 29, 2021
@ariefrahmansyah ariefrahmansyah deleted the improve-logging-ux branch July 29, 2021 16:32
pradithya pushed a commit that referenced this pull request Oct 3, 2022
* Update lazy-log package

* Refactor stream logs API

* Introducing ContainerLogsView component

* Support logging for pyfunc image builder and batch job

* Fix batch job's image builder log. Support prefixing log with pod & container name

* Add batch job executor log

* Dockerfile: Add git so we Yarn installation can succeed

* Use node:14 as node-builder base image

* Colorized the pod + container in log

* Use actions/setup-node@v2 and node v14

* Update react-lazylog package to use gojekfarm to sovle yarn install issue

https://github.com/yarnpkg/yarn/issues/7212\#issuecomment-493720324

* We still need react-lazylog's prepare script.

so we revert to roman's react-lazylog version and use yarn install --network-concurrency 1

* Refactor stackdriver log

* Fix API's unit test first

* Add more test to cluster and log_service

* Fix UI wording

* Update swagger

* Make sure color lib turned on

* Add build-essential and etc isntallation on Mlflows' Dockerfile

* Update API test

* Use gojekfarm's react-lazylog fork

* Update how to close channel; getContainerLogs async

* Use request.Context() for termintation

* Fix API test

* Modularize pprof routes into a spearate function

* Address aria's review

* Use unbuffered channel for sending log line

* Periodically update component list and address reviews

* Simplify component refresh & log api context cancellation
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.

4 participants