ipn/{ipnlocal,localapi}, cli: add debug force-netmap-update

For loading testing & profiling the cost of full netmap updates.

Updates #1909

Change-Id: I0afdf5de9967f8d95c7f81d5b531ed1c92c3208f
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2023-09-24 08:08:28 -07:00
committed by Brad Fitzpatrick
parent 75dbd71f49
commit 04fabcd359
3 changed files with 24 additions and 0 deletions

View File

@@ -138,6 +138,11 @@ var debugCmd = &ffcli.Command{
Exec: localAPIAction("break-derp-conns"),
ShortHelp: "break any open DERP connections from the daemon",
},
{
Name: "force-netmap-update",
Exec: localAPIAction("force-netmap-update"),
ShortHelp: "force a full no-op netmap update (for load testing)",
},
{
Name: "control-knobs",
Exec: debugControlKnobs,