kong.node

    Returns the ID used by this node to describe itself.

    Returns

    • : The v4 UUID used by this node as its ID.

    Returns memory usage statistics about this node.

    Parameters

    • unit (string, optional): The unit that memory is reported in. Can be any of b/B, k/K, , or g/G for bytes, kibibytes, mebibytes, or gibibytes, respectively. Defaults to b (bytes).
    • : A table containing memory usage statistics for this node. If unit is b/B (the default), reported values are Lua numbers. Otherwise, reported values are strings with the unit as a suffix.

    Usage

    Returns the name used by the local machine.

    • string: The local machine hostname.

    Usage