-
Notifications
You must be signed in to change notification settings - Fork 5
Home
omgbebebe edited this page May 30, 2024
·
1 revision
High level functionality when a user type a request in a comment, this question processed by LLM then reply returns via feedback
channel to a TMUX window.
-
#mw list k8s namespaces
will performkubectl get namespaces
in a current TMUX window:
- catch user input
- decide that this is a comment
- send request to a LLM
- get reply from LLM
- type
kubectl get namespaces
into the TMUX window without endingEnter
key, just a command and allow user to decide to perform or not - print short description about generated command into
feedback
window
-
#mw show failed pods
will perform something likekubectl get pods --all-namespaces | rg Error
- the actions list is the same as above
-
#mw what's issue with default-domain-lfsx4
or#mw ivestigate first pod
will performkubectl logs -n knative-serving default-domain-lfsx4
, examine logs via LLM and print reply into thefeedback
window -
#mw ssh into default-domain-lfsx4
will generate akubectl
command to exec shell on the pod and give it terminal to the user
-
--mw list databases
will perform\l
inpsql
shell and print a short description into thefeedback
window --mw list active connection
-
--mw show autovacuum status
will perform a SQL query to the postgres system tables and shows numbers about dead tuples, last time when autovacuum was performed, etc. Optionally provide the user with a recommendations if any issues is detected. I.e. too many dead tuples compared with live tuples -
explain select <foo> from <bar> where <baz>=<cux>
then--mw explain the plan
will investigate the plan via LLM and provide a recommendations to perform the query better if any. I.e.you need to create an index on <bla-bla>; to do that perform the SQL query "CREATE INDEX <bla-bla-bla>
-
--mw list dead indices
will print a SQL query to show indices that have never been used.
-
#mw monitor ARP packets
will performsudo tcpdump -qni any arp
-
#mw oom kills
will grep dmesg to find a records about OOM kills and print the process names and why it was killed -
#mw expand the root fs by 50Gb
will determine the root block device, depending on it type (raw or lvm or zfs etc.) will print intofeedback
the set of command to extent the block device.