沙盒策略命令sandbox policy command

使用以下命令可管理 Kusto 引擎服务中的沙盒沙盒策略The following commands allow management of sandboxes and sandbox policies in a Kusto engine service.

命令需要 AllDatabasesAdmin 权限。The commands require AllDatabasesAdmin permissions.

沙盒策略Sandbox policy

.show cluster policy sandbox.show cluster policy sandbox

在群集级别显示所有已配置的沙盒策略。Shows all configured sandbox policies at the cluster level.

.show cluster policy sandbox

.alter cluster policy sandbox.alter cluster policy sandbox

在群集级别修改沙盒策略集合。Modifies the collection of sandbox policies at the cluster level.

.alter cluster policy sandbox @'['
  '{'
    '"SandboxKind": "PythonExecution",'
    '"IsEnabled": true,'
    '"TargetCountPerNode": 4,'
    '"MaxCpuRatePerSandbox": 50,'
    '"MaxMemoryMbPerSandbox": 10240'
  '},'
  '{'
    '"SandboxKind": "RExecution",'
    '"IsEnabled": true,'
    '"TargetCountPerNode": 4,'
    '"MaxCpuRatePerSandbox": 50,'
    '"MaxMemoryMbPerSandbox": 10240'
  '}'
']'

.drop cluster policy sandbox.drop cluster policy sandbox

若要删除所有沙盒策略,请使用以下命令:For dropping all sandbox policies, use the following command:

.delete cluster policy sandbox