mc admin trace

mc admin trace 命令显示针对部署中每个 MinIO 服务器的 HTTP TRACE 请求的结果。语法如下:

C:\>mc admin trace -h
NAME:
  mc admin trace - show http trace for MinIO server

USAGE:
  mc admin trace [FLAGS] TARGET

FLAGS:
  --verbose, -v                 print verbose trace
  --all, -a                     trace all call types
  --call s3                     trace only matching Call types (values: s3, `internal`, `storage`, `os`)
  --response-threshold 5ms      trace calls only with response duration greater than this threshold (e.g. 5ms)
  --status-code value           trace only matching status code
  --method value                trace only matching HTTP method
  --funcname value              trace only matching func name
  --path value                  trace only matching path
  --errors, -e                  trace only failed requests
  --config-dir value, -C value  path to configuration folder (default: "C:\\Users\\Administrator\\mc")
  --quiet, -q                   disable progress bar display
  --no-color                    disable color theme
  --json                        enable JSON lines formatted output
  --debug                       enable debug output
  --insecure                    disable SSL certificate verification
  --help, -h                    show help

示例

(1)显示 MinIO 服务器的详细控制台跟踪

C:\> mc admin trace -v -a myminio

(2)仅对 MinIO 服务器的失败请求显示跟踪

C:\> mc admin trace -v -e myminio

(3)显示带有“503”状态代码的请求的详细控制台跟踪

C:\> mc admin trace -v --status-code 503 myminio

(4)显示特定路径的控制台跟踪

C:\> mc admin trace --path my-bucket/my-prefix/ myminio

(5)显示带有“404”和“503”状态代码的请求的控制台跟踪

C:\> mc admin trace --status-code 404 --status-code 503 myminio
说说我的看法
全部评论(
没有评论
关于
本网站属于个人的非赢利性网站,转载的文章遵循原作者的版权声明,如果原文没有版权声明,请来信告知:hxstrive@outlook.com
公众号