teamhephy / controller

Hephy Workflow Controller (API)
https://teamhephy.com
MIT License
14 stars 26 forks source link

feat(client): `deis logs -f` #43

Open Cryptophobia opened 6 years ago

Cryptophobia commented 6 years ago

From @deis-admin on January 19, 2017 20:53

From @mboersma on January 15, 2014 21:6

Currently with deis you can run deis logs, but it's a single request-response that returns the current app logs and ends. Nor does deis run tail -f work since that isn't (yet) a long-running, duplex connection. Users should be able to get live tailing of logs.

This was requested by user kfarrell on IRC. See also #117.

Copied from original issue: deis/deis#465

Copied from original issue: deis/controller#1210

Cryptophobia commented 6 years ago

From @deis-admin on January 19, 2017 20:53

From @nathansamson on January 15, 2014 22:52

Also a way to specify the number of line (-n) would be a nice addition.

Cryptophobia commented 6 years ago

From @deis-admin on January 19, 2017 20:53

From @bacongobbler on March 10, 2014 18:8

@nathansamson just pipe the output to tail:

$ deis logs | tail -n 1
Cryptophobia commented 6 years ago

From @deis-admin on January 19, 2017 20:53

From @nathansamson on March 10, 2014 19:8

@bacongobbler that would still be a performance problem (useless network traffic)

Cryptophobia commented 6 years ago

From @deis-admin on January 19, 2017 20:53

From @bacongobbler on June 16, 2014 16:40

I hope to solve this by streaming from the log file for changes. The issue with that is, again, WSGI does not support websockets or other long-running requests.

Cryptophobia commented 6 years ago

From @deis-admin on January 19, 2017 20:53

From @paralin on March 4, 2015 21:29

+1

Cryptophobia commented 6 years ago

From @deis-admin on January 19, 2017 20:53

From @jwaldrip on April 14, 2015 13:1

:+1:

Cryptophobia commented 6 years ago

From @deis-admin on January 19, 2017 20:53

From @bacongobbler on May 4, 2015 20:18

related comment: https://github.com/deis/deis/pull/3524#issuecomment-94201087

basically we could resolve this by enabling the controller to create a tail session in deis-logger, which then the controller would return the URL to the tail session in the response. The client would then connect to the session. This is very similar to Heroku's current infrastructure layout as shown in their client unit tests.

Cryptophobia commented 6 years ago

From @deis-admin on January 19, 2017 20:53

From @ethanmick on June 4, 2015 19:51

:+1:

Cryptophobia commented 6 years ago

From @deis-admin on January 19, 2017 20:53

From @LoicMahieu on July 1, 2015 14:31

+1

Cryptophobia commented 6 years ago

From @deis-admin on January 19, 2017 20:53

From @jeffday on August 12, 2015 0:53

+1

Cryptophobia commented 6 years ago

From @deis-admin on January 19, 2017 20:53

From @paralin on August 25, 2015 20:25

What's the progress of this?

Cryptophobia commented 6 years ago

From @deis-admin on January 19, 2017 20:53

From @bacongobbler on August 25, 2015 20:55

no work done other than what's been laid out here :)

Cryptophobia commented 6 years ago

From @deis-admin on January 19, 2017 20:53

From @carmstrong on August 25, 2015 21:17

@paralin This is blocked by the TTY broker on our open roadmap. If this feature is important to you, we'd love to see you at next Thursday's open roadmap meeting, and we can share more details about its progress and blockers. More details on our roadmap planning meetings: http://docs.deis.io/en/latest/roadmap/planning/

I'll be sending out the details on the meeting early next week to our deis-users mailing list. I'd encourage you to join that as well.

Cryptophobia commented 6 years ago

From @deis-admin on January 19, 2017 20:53

From @dwelch2344 on October 23, 2015 5:36

+1

Cryptophobia commented 6 years ago

From @phuongnd08 on January 10, 2018 10:33

For any one looking for this functionality, I have started some work on this: https://github.com/phuongnd08/deis-interactive