Dtrace für moray

Nur damit ich es nicht vergesse: Die aktuelle Situation einer Moray-Instanz kann man mit einem kleinen Dtrace-Skript abfragen:

[root@headnode (de-gt-2) ~]# zlogin $(vmadm lookup alias=moray0)

[Connected to zone '6b64bee0-7c14-4339-9131-3d53a1950894' pts/10]
Last login: Mon Sep 13 13:37:00 on pts/10
 =  J O Y E N T  =

    mantav2-moray (release-20210909-20210909T003109Z-g25b9c15)
    https://github.com/joyent/moray.git
    triton-origin-multiarch-15.4.1@1.0.1

[root@6b64bee0-7c14-4339-9131-3d53a1950894 (de-gt-2:moray0) ~]# /opt/smartdc/moray/bin/moraystat.d
         ------PG------  --------------MORAY---------------
PID      CONN QLEN  OPS  GETS FIND PUTS UPDS DELS BTCH RIDX
8150        0    0    2     1    0    0    0    0    0    0
8142        0    0    4     2    0    0    0    0    0    0
8144        0    0    8     0    2    0    0    0    0    0
8146        0    0    8     0    2    0    0    0    0    0
8142        0    0    0     0    0    0    0    0    0    0
8146        0    0    4     0    1    0    0    0    0    0
8150        0    0    8     0    2    0    0    0    0    0
8144        1    0   12     0    3    0    0    0    0    0
8142        0    0    0     0    0    0    0    0    0    0
8146        0    0    0     0    0    0    0    0    0    0
8150        0    0    0     0    0    0    0    0    0    0
8144        0    0    8     0    2    0    0    0    0    0
8146        0    0    4     0    1    0    0    0    0    0
8150        0    0    4     0    1    0    0    0    0    0
8142        0    0    8     0    2    0    0    0    0    0
8144        0    0   10     1    2    0    0    0    0    0
^C

Hier ist jetzt gerade nicht so viel los...

Aber es gibt noch mehr Skripte für das Debugging:

[root@6b64bee0-7c14-4339-9131-3d53a1950894 (de-gt-2:moray0) ~]# cd /opt/smartdc/moray/bin/
[root@6b64bee0-7c14-4339-9131-3d53a1950894 (de-gt-2:moray0) /opt/smartdc/moray/bin]# ls -la
total 16
drwxr-xr-x  2 root root   11 Sep  9 00:34 .
drwxr-xr-x 11 root root   14 Sep 13 13:05 ..
-rwxr-xr-x  1 root root  651 Sep  9 00:34 del_latency.d
-rwxr-xr-x  1 root root  623 Sep  9 00:34 find_latency.d
-rwxr-xr-x  1 root root  912 Sep  9 00:34 findslow.d
-rwxr-xr-x  1 root root  651 Sep  9 00:34 get_latency.d
-rw-r--r--  1 root root  900 Sep  9 00:34 moray-queries.d
-rwxr-xr-x  1 root root 1644 Sep  9 00:34 moraystat.d
-rwxr-xr-x  1 root root  651 Sep  9 00:34 put_latency.d
-rw-r--r--  1 root root  864 Sep  9 00:34 queries.d
-rwxr-xr-x  1 root root 2155 Sep  9 00:34 snoop_bucket.d