[go: up one dir, main page]

Page MenuHomePhabricator

Migrate mwmaint server functionality to mw-on-k8s
Open, Needs TriagePublic

Related Objects

StatusSubtypeAssignedTask
OpenNone
In ProgressClement_Goubert
In ProgressClement_Goubert
In ProgressClement_Goubert
In ProgressClement_Goubert
In ProgressClement_Goubert
OpenClement_Goubert
OpenClement_Goubert
OpenRLazarus
ResolvedRLazarus
ResolvedRLazarus
OpenNone
ResolvedRLazarus
ResolvedRLazarus
DeclinedNone
ResolvedRLazarus
ResolvedBUG REPORTRLazarus
ResolvedRLazarus
ResolvedRLazarus
OpenNone
OpenRLazarus
ResolvedRLazarus
OpenNone
ResolvedRLazarus
OpenRLazarus
OpenNone
OpenNone
OpenNone
ResolvedJoe
ResolvedJoe
OpenRLazarus
OpenNone
OpenNone
OpenNone
OpenNone

Event Timeline

How can MW developers access the output of currently-runinng (or recently-completed) scheduled maintenance scripts that execute in Kubernetes?

Today this works via journalctl on mwmaint hosts. https://wikitech.wikimedia.org/wiki/Maintenance_server#Access_recent_runs

This question is related to T285896, which could potentially solve this by accessing it via Logstash. Ideally there'd still be a way to do it from the command-line as this would allow for real-time tailing, and easier grepping (Logstash is fairly hostile to simple search ops on small quantities of logs).

\cc @RLazarus

Script output is visible through kubectl logs, and mwscript-k8s can be invoked with -f to immediately start tailing the script output (under the hood, it just invokes that kubectl command). If you don't launch with -f it prints out the kubectl command so you can copy and paste it.

We'll eventually send it to logstash too, but that hasn't happened yet.

We'll eventually send it to logstash too, but that hasn't happened yet.

Everything a container produces on stdout and stderr should land in logstash automatically