NGINX · JSON Structure

Plus Http Api Nginx Worker Structure

Statistics per each worker process.

Type: Properties: 0
API GatewayCachingCloud NativeLoad BalancerOpen SourceReverse ProxyWeb Server

Worker process is a JSON Structure definition published by NGINX. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "name": "Worker process",
  "description": "Statistics per each worker process.\n",
  "members": {
    "id": {
      "description": "The ID of the worker process.",
      "type": "int32",
      "example": 0
    },
    "pid": {
      "description": "The PID identifier of the worker process used by the operating system.",
      "type": "int32",
      "example": 4521
    },
    "connections": {
      "description": "The number of accepted, dropped, active, and idle connections\nper worker process.\n",
      "type": "object",
      "members": {
        "accepted": {
          "description": "The total number of client connections\naccepted by the worker process.\n",
          "type": "int32",
          "example": 4968119
        },
        "dropped": {
          "description": "The total number of client connections\ndropped by the worker process.\n",
          "type": "int32",
          "example": 0
        },
        "active": {
          "description": "The current number of active client connections\nthat are currently being handled by the worker process.\n",
          "type": "int32",
          "example": 5
        },
        "idle": {
          "description": "The number of idle client connections\nthat are currently being handled by the worker process.\n",
          "type": "int32",
          "example": 117
        }
      },
      "example": {}
    },
    "http": {
      "type": "object",
      "members": {
        "requests": {
          "description": "The total number of client requests handled by the worker process.",
          "type": "object",
          "members": {
            "total": {
              "description": "The total number of client requests received by the worker process.",
              "type": "int32",
              "example": 98765
            },
            "current": {
              "description": "The current number of client requests that are currently being processed by the worker process.",
              "type": "int32",
              "example": 3
            }
          },
          "example": 31070465
        }
      },
      "example": {}
    }
  },
  "example": {
    "id": 0,
    "pid": 32212,
    "connections": {
      "accepted": 1,
      "dropped": 0,
      "active": 1,
      "idle": 0
    },
    "http": {
      "requests": {
        "total": 15,
        "current": 1
      }
    }
  }
}