deis / controller

Deis Workflow Controller (API)
https://deis.com
MIT License
41 stars 53 forks source link

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

Open deis-admin opened 7 years ago

deis-admin commented 7 years ago

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

deis-admin commented 7 years ago

From @nathansamson on January 15, 2014 22:52

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

deis-admin commented 7 years ago

From @bacongobbler on March 10, 2014 18:8

@nathansamson just pipe the output to tail:

$ deis logs | tail -n 1
deis-admin commented 7 years ago

From @nathansamson on March 10, 2014 19:8

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

deis-admin commented 7 years ago

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.

deis-admin commented 7 years ago

From @paralin on March 4, 2015 21:29

+1

deis-admin commented 7 years ago

From @jwaldrip on April 14, 2015 13:1

:+1:

deis-admin commented 7 years ago

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.

deis-admin commented 7 years ago

From @ethanmick on June 4, 2015 19:51

:+1:

deis-admin commented 7 years ago

From @LoicMahieu on July 1, 2015 14:31

+1

deis-admin commented 7 years ago

From @jeffday on August 12, 2015 0:53

+1

deis-admin commented 7 years ago

From @paralin on August 25, 2015 20:25

What's the progress of this?

deis-admin commented 7 years ago

From @bacongobbler on August 25, 2015 20:55

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

deis-admin commented 7 years ago

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.

deis-admin commented 7 years ago

From @dwelch2344 on October 23, 2015 5:36

+1

phuongnd08 commented 6 years ago

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

Cryptophobia commented 6 years ago

This issue was moved to teamhephy/controller#43