Search the docsCtrl K
Menu
Docs / Command line Updated Edit on GitHub

neodesk scaling

Copy as Markdown

Relay servers and scaling rules.

neodesk scaling --help lists the same commands in the terminal. The flags every command takes are in the command reference.

neodesk scaling capacity

Show how many sessions the relays can take.

neodesk scaling capacity [flags]

Needs server.config; only reads. Calls GET /api/panel/scaling/capacity.

neodesk scaling relay

Show one relay server.

neodesk scaling relay <nodeId> [flags]
Argument What it is
<nodeId> The node id

Needs server.config; only reads. Calls GET /api/panel/scaling/relays/{nodeId}.

neodesk scaling relay-create

Add a relay server.

neodesk scaling relay-create [flags]
Flag What it is
--name NAME relay name, 1 to 80 letters, digits, spaces and . _ - # / ( )
--address ADDRESS host:port the relay answers at, like relay.example.com:21117; each address once
--location LOCATION where the relay is, at most 80 characters
--max-sessions N most sessions at once, 1 to 100000 (left out: 50)
--max-bandwidth-mbps N most bandwidth, in Mbit/s, 1 to 1000000 (left out: 100)

Needs server.config; changes something: needs a token with read and write access. Calls POST /api/panel/scaling/relays.

neodesk scaling relay-delete

Delete a relay server.

neodesk scaling relay-delete <nodeId> [flags]
Argument What it is
<nodeId> The node id

Needs server.config; changes something: needs a token with read and write access; deletes or ends something for good, so it asks first unless --yes is given. Calls DELETE /api/panel/scaling/relays/{nodeId}.

neodesk scaling relay-health

Show whether a relay server answers.

neodesk scaling relay-health <nodeId> [flags]
Argument What it is
<nodeId> The node id

Needs server.config; only reads. Calls GET /api/panel/scaling/relays/{nodeId}/health.

neodesk scaling relay-metrics

Show the load of a relay server.

neodesk scaling relay-metrics <nodeId> [flags]
Argument What it is
<nodeId> The node id

Needs server.config; only reads. Calls GET /api/panel/scaling/relays/{nodeId}/metrics.

neodesk scaling relay-set

Change a relay server.

Give the request body with -f key=value (text), -F key=json (numbers, true or false, lists) or --data JSON (or --data @file.json). The answer to a wrong body names what is missing.

neodesk scaling relay-set <nodeId> [flags]
Argument What it is
<nodeId> The node id

Needs server.config; changes something: needs a token with read and write access. Calls PUT /api/panel/scaling/relays/{nodeId}.

neodesk scaling relays

List relay servers.

neodesk scaling relays [flags]

Needs server.config; only reads. Calls GET /api/panel/scaling/relays.

neodesk scaling rule-create

Add a rule that picks the relay for a session.

neodesk scaling rule-create [flags]
Flag What it is
--name NAME rule name, 1 to 80 characters
--match-type subnet|group|tag|country|device_id what to match devices by
--match-value MATCH_VALUE what to match, at most 200 characters: a subnet like 192.168.1.0/24, a device group name, a tag, a country or a device ID
--target-relay TARGET_RELAY ID of the relay for the matching devices (see scaling relays)
--fallback FALLBACK where the devices go when that relay can't take them: master or nearest (left out: master)
--priority N order of the rules, 0 to 1000, lowest first (left out: 10)
--enabled turn the rule on or off (left out: on)

Needs server.config; changes something: needs a token with read and write access. Calls POST /api/panel/scaling/rules.

neodesk scaling rule-delete

Delete a relay rule.

neodesk scaling rule-delete <ruleId> [flags]
Argument What it is
<ruleId> The rule id

Needs server.config; changes something: needs a token with read and write access; deletes or ends something for good, so it asks first unless --yes is given. Calls DELETE /api/panel/scaling/rules/{ruleId}.

neodesk scaling rule-set

Change a relay rule.

Give the request body with -f key=value (text), -F key=json (numbers, true or false, lists) or --data JSON (or --data @file.json). The answer to a wrong body names what is missing.

neodesk scaling rule-set <ruleId> [flags]
Argument What it is
<ruleId> The rule id

Needs server.config; changes something: needs a token with read and write access. Calls PUT /api/panel/scaling/rules/{ruleId}.

neodesk scaling rules

List relay rules.

neodesk scaling rules [flags]

Needs server.config; only reads. Calls GET /api/panel/scaling/rules.

Type to search pages, sections, commands and settings.