← All procedures

algebra.conntrackFloor

This function gives the lowest count of one network namespace after one scan of the conntrack collector under pressure. Each entry of the table can go at that scan. The sources are Linux v7.0, `net/netfilter/nf_conntrack_core.c`.

CLI
Package
@procedures/algebra · README
Path
["algebra","conntrackFloor"]
CLI
mark algebra conntrackFloor --max <number> --hz <number>
As data
{"$proc":["algebra","conntrackFloor"],"input":{}}

Use it

In TypeScript

import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/algebra/register"; // registers its procedures

const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["algebra","conntrackFloor"], { max: 1, hz: 1 });
console.log(JSON.stringify(result));

From the command line

$ mark algebra conntrackFloor --max <number> --hz <number>

As data, in a program

{
  "$proc": ["algebra", "conntrackFloor"],
  "input": { "max": 1, "hz": 1 }
}

Input

FieldTypeRequiredDefaultDescription
maxnumberyes
hznumberyes
expirednumberno

Output

The schema does not list fields (number).

JSON Schemas
{
  "input": {
    "type": "object",
    "properties": {
      "max": {
        "type": "number"
      },
      "hz": {
        "type": "number"
      },
      "expired": {
        "type": "number"
      }
    },
    "required": [
      "max",
      "hz"
    ],
    "additionalProperties": false
  },
  "output": {
    "type": "number"
  }
}