|
| 1 | +======================= |
| 2 | +``mc support top rpc`` |
| 3 | +======================= |
| 4 | + |
| 5 | +.. default-domain:: minio |
| 6 | + |
| 7 | +.. contents:: Table of Contents |
| 8 | + :local: |
| 9 | + :depth: 2 |
| 10 | + |
| 11 | +.. mc:: mc support top rpc |
| 12 | + |
| 13 | +.. include:: /includes/common-mc-support.rst |
| 14 | + :start-after: start-minio-only |
| 15 | + :end-before: end-minio-only |
| 16 | + |
| 17 | +Syntax |
| 18 | +------ |
| 19 | + |
| 20 | +.. start-mc-support-top-rpc-desc |
| 21 | +
|
| 22 | +The :mc:`mc support top rpc` command displays metrics for remote procedure calls (RPC). |
| 23 | + |
| 24 | +.. end-mc-support-top-rpc-desc |
| 25 | +
|
| 26 | +.. tab-set:: |
| 27 | + |
| 28 | + .. tab-item:: EXAMPLE |
| 29 | + |
| 30 | + The following command displays the current remote procedure call metrics for the :term:`alias` ``myminio`` deployment. |
| 31 | + |
| 32 | + .. code-block:: shell |
| 33 | + :class: copyable |
| 34 | +
|
| 35 | + mc support top rpc myminio/ |
| 36 | +
|
| 37 | + The output returns information such as the server, number of connections, length of ping, time since last ping (``pong``), reconnections, string in, string out, messages in, and messages out. |
| 38 | + |
| 39 | + The output resembles |
| 40 | + |
| 41 | + .. code-block:: bash |
| 42 | +
|
| 43 | + λ mc support top rpc myminio |
| 44 | + SERVER CONCTD PING PONG OUT.Q RECONNS STR.IN STR.OUT MSG.IN MSG.OUT |
| 45 | + To 127.0.0.1:9002 5 0.7ms 1s ago 0 0 ->0 0-> 3269 3212 |
| 46 | + From 127.0.0.1:9002 5 1.1ms 1s ago 0 0 ->0 0-> 3213 3269 |
| 47 | + To 127.0.0.1:9003 5 0.6ms 1s ago 0 0 ->0 0-> 6001 6076 |
| 48 | + From 127.0.0.1:9003 5 0.6ms 1s ago 0 0 ->0 0-> 6077 6001 |
| 49 | + To 127.0.0.1:9004 5 0.6ms 1s ago 0 0 ->0 0-> 3243 3160 |
| 50 | + From 127.0.0.1:9004 5 0.4ms 1s ago 0 0 ->0 0-> 3161 3243 |
| 51 | + To 127.0.0.1:9005 5 0.6ms 1s ago 0 0 ->0 0-> 3150 3094 |
| 52 | + From 127.0.0.1:9005 5 0.3ms 1s ago 0 0 ->0 0-> 3095 3150 |
| 53 | + To 127.0.0.1:9006 5 0.3ms 1s ago 0 0 ->0 0-> 3185 3221 |
| 54 | + From 127.0.0.1:9006 5 0.6ms 1s ago 0 0 ->0 0-> 3222 3185 |
| 55 | +
|
| 56 | + .. tab-item:: SYNTAX |
| 57 | + |
| 58 | + The command has the following syntax: |
| 59 | + |
| 60 | + .. code-block:: shell |
| 61 | + :class: copyable |
| 62 | +
|
| 63 | + mc [GLOBALFLAGS] support top rpc \ |
| 64 | + [--airgap] \ |
| 65 | + [--in value] \ |
| 66 | + [--interval value] \ |
| 67 | + [-n value] \ |
| 68 | + [--nodes value] \ |
| 69 | + TARGET |
| 70 | +
|
| 71 | + .. include:: /includes/common-minio-mc.rst |
| 72 | + :start-after: start-minio-syntax |
| 73 | + :end-before: end-minio-syntax |
| 74 | + |
| 75 | +Parameters |
| 76 | +~~~~~~~~~~ |
| 77 | + |
| 78 | +.. mc-cmd:: TARGET |
| 79 | + :required: |
| 80 | + |
| 81 | + The full path to the :ref:`alias <minio-mc-alias>` or :term:`prefix` where the command should run. |
| 82 | + |
| 83 | +.. mc-cmd:: --airgap |
| 84 | + :optional: |
| 85 | + |
| 86 | + Use in environments without network access to SUBNET. |
| 87 | + |
| 88 | +.. mc-cmd:: --in |
| 89 | + :optional: |
| 90 | + |
| 91 | + Replay a previously saved JSON file. |
| 92 | + Specify the path to the JSON file to replay, such as one generated by a previous run of this command. |
| 93 | + |
| 94 | +.. mc-cmd:: --interval |
| 95 | + :optional: |
| 96 | + |
| 97 | + The interval in seconds between metric requests. |
| 98 | + |
| 99 | + By default, the command requests metrics every second. |
| 100 | + |
| 101 | +.. mc-cmd:: -n |
| 102 | + :optional: |
| 103 | + |
| 104 | + The number of requests to run before existing. |
| 105 | + Use ``0`` for endless. |
| 106 | + |
| 107 | + If not specified, the command does not automatically exit. |
| 108 | + |
| 109 | +.. mc-cmd:: --nodes |
| 110 | + :optional: |
| 111 | + |
| 112 | + Comma-separated list of the node or nodes from which to collect metrics. |
| 113 | + |
| 114 | + |
| 115 | +Global Flags |
| 116 | +~~~~~~~~~~~~ |
| 117 | + |
| 118 | +.. include:: /includes/common-minio-mc.rst |
| 119 | + :start-after: start-minio-mc-globals |
| 120 | + :end-before: end-minio-mc-globals |
| 121 | + |
0 commit comments