SequoiaDB giant sequoia database-user active connections

  • The snapshot command can view the number of various connections of the current node. The command is as follows:

    db.snapshot(SDB_SNAP_DATABASE);

    Output example

  • {
    ……
    "CurrentActiveSessions": 19,
    "CurrentIdleSessions": 9,
    "CurrentSystemSessions": 12,
    "CurrentTaskSessions": 5,
    ……
    }
  • The number of active connections reflects the number of tasks of the current node. Through this type of indicators, the running load of system tasks and user tasks of the current node can be evaluated.

    • CurrentActiveSessions: The number of active sessions, this value records the number of currently running and blocked tasks, including system tasks and user tasks

    • CurrentIdleSessions: The number of inactive sessions. Since the creation and destruction of threads are expensive, the used session threads are saved in the thread pool for reuse, which reduces these unnecessary overheads. Inactive sessions refer to the preservation of threads. Idle session threads in the pool

    • CurrentSystemSessions: The number of system sessions, this value records the number of tasks currently running and blocked, excluding user tasks

    • CurrentTaskSessions: the number of background processing tasks, the tasks whose Type is Task in the return value

For more information, please visit the official website of Jushan Database

Guess you like

Origin blog.csdn.net/weixin_48909806/article/details/112847766