|
15 | 15 | # If agents field is populated, this field indicates the default values for all |
16 | 16 | # agents. |
17 | 17 | [agent] |
| 18 | + # Agent ID |
| 19 | + ## id = "agent-001" |
| 20 | + # Agent socket port |
| 21 | + agent-sock-port = 6007 |
| 22 | + # Base path for IPC |
| 23 | + ipc-base-path = "/tmp/backend.ai/ipc" |
| 24 | + # Base path for variable data |
| 25 | + var-base-path = "var/lib/backend.ai" |
| 26 | + # Scaling group name |
| 27 | + scaling-group = "default" |
| 28 | + # Scaling group type |
| 29 | + scaling-group-type = "compute" |
| 30 | + # Allowed compute plugins |
| 31 | + ## allow-compute-plugins = [ "ai.backend.activator.agent", "ai.backend.accelerator.cuda_open",] |
| 32 | + # Blocked compute plugins |
| 33 | + ## block-compute-plugins = [ "ai.backend.accelerator.mock",] |
| 34 | + # Allowed network plugins |
| 35 | + ## allow-network-plugins = [ "ai.backend.manager.network.overlay",] |
| 36 | + # Blocked network plugins |
| 37 | + ## block-network-plugins = [ "ai.backend.manager.network.overlay",] |
| 38 | + # Path for image commit |
| 39 | + image-commit-path = "tmp/backend.ai/commit" |
| 40 | + # Path for abuse reports |
| 41 | + ## abuse-report-path = "/var/log/backend.ai/abuse" |
| 42 | + # Whether to force terminate abusing containers |
| 43 | + force-terminate-abusing-containers = false |
| 44 | + # Kernel creation concurrency |
| 45 | + kernel-creation-concurrency = 4 |
18 | 46 | # Backend type for the agent. |
19 | 47 | # This determines how the agent interacts with the underlying infrastructure. |
20 | 48 | # Available options are: |
|
40 | 68 | ## rpc-auth-manager-public-key = "/path/to/public.key" |
41 | 69 | # Path to RPC auth agent keypair |
42 | 70 | ## rpc-auth-agent-keypair = "/path/to/keypair.key" |
43 | | - # Agent socket port |
44 | | - agent-sock-port = 6007 |
45 | | - # Agent ID |
46 | | - ## id = "agent-001" |
47 | | - # Base path for IPC |
48 | | - ipc-base-path = "/tmp/backend.ai/ipc" |
49 | | - # Base path for variable data |
50 | | - var-base-path = "var/lib/backend.ai" |
51 | 71 | # Mount path for containers |
52 | 72 | ## mount-path = "/mnt/backend.ai" |
53 | 73 | # Whether to enable cohabiting storage proxy |
|
58 | 78 | ## region = "us-east-1" |
59 | 79 | # Instance type |
60 | 80 | ## instance-type = "m5.large" |
61 | | - # Scaling group name |
62 | | - scaling-group = "default" |
63 | | - # Scaling group type |
64 | | - scaling-group-type = "compute" |
65 | 81 | # Path to PID file |
66 | 82 | pid-file = "/dev/null" |
67 | 83 | # Event loop type |
|
76 | 92 | metadata-server-bind-host = "0.0.0.0" |
77 | 93 | # Metadata server port |
78 | 94 | metadata-server-port = 40128 |
79 | | - # Allowed compute plugins |
80 | | - ## allow-compute-plugins = [ "ai.backend.activator.agent", "ai.backend.accelerator.cuda_open",] |
81 | | - # Blocked compute plugins |
82 | | - ## block-compute-plugins = [ "ai.backend.accelerator.mock",] |
83 | | - # Allowed network plugins |
84 | | - ## allow-network-plugins = [ "ai.backend.manager.network.overlay",] |
85 | | - # Blocked network plugins |
86 | | - ## block-network-plugins = [ "ai.backend.manager.network.overlay",] |
87 | | - # Path for image commit |
88 | | - image-commit-path = "tmp/backend.ai/commit" |
89 | | - # Path for abuse reports |
90 | | - ## abuse-report-path = "/var/log/backend.ai/abuse" |
91 | | - # Whether to force terminate abusing containers |
92 | | - force-terminate-abusing-containers = false |
93 | | - # Kernel creation concurrency |
94 | | - kernel-creation-concurrency = 4 |
95 | 95 | # Whether to use experimental Redis event dispatcher |
96 | 96 | use-experimental-redis-event-dispatcher = false |
97 | 97 | # Docker mode detected based on kernel version (linuxkit/native) |
|
114 | 114 | kernel-uid = -1 |
115 | 115 | # Kernel group ID |
116 | 116 | kernel-gid = -1 |
117 | | - # Bind host for containers |
118 | | - bind-host = "" |
119 | | - # Advertised host for containers |
120 | | - ## advertised-host = "192.168.1.100" |
121 | 117 | # Port range for containers. |
122 | 118 | # If multiple agents are used, user must ensure that the port ranges |
123 | 119 | # do not overlap between the agent, else it may cause subtle issues |
|
147 | 143 | # networks, and services. |
148 | 144 | # This field is only used when backend is set to 'docker'. |
149 | 145 | swarm-enabled = false |
| 146 | + # Bind host for containers |
| 147 | + bind-host = "" |
| 148 | + # Advertised host for containers |
| 149 | + ## advertised-host = "192.168.1.100" |
150 | 150 |
|
151 | 151 | # KRunner volumes configuration, mapping container names to host paths. |
152 | 152 | # This is used to specify volumes that should be mounted into containers |
|
368 | 368 | # Only override fields if necessary. |
369 | 369 | [agents.agent] |
370 | 370 | # Agent ID |
371 | | - id = "agent-001" |
| 371 | + ## id = "agent-001" |
372 | 372 | # Agent socket port |
373 | | - ## agent-sock-port = 6007 # min=1024 max=65535 |
374 | | - # Mount path for containers |
375 | | - ## mount-path = "/mnt/backend.ai" |
376 | | - # Whether to enable cohabiting storage proxy |
377 | | - ## cohabiting-storage-proxy = true |
| 373 | + agent-sock-port = 6007 |
| 374 | + # Base path for IPC |
| 375 | + ipc-base-path = "/tmp/backend.ai/ipc" |
| 376 | + # Base path for variable data |
| 377 | + var-base-path = "var/lib/backend.ai" |
| 378 | + # Scaling group name |
| 379 | + scaling-group = "default" |
| 380 | + # Scaling group type |
| 381 | + scaling-group-type = "compute" |
378 | 382 | # Allowed compute plugins |
379 | 383 | ## allow-compute-plugins = [ "ai.backend.activator.agent", "ai.backend.accelerator.cuda_open",] |
380 | 384 | # Blocked compute plugins |
|
383 | 387 | ## allow-network-plugins = [ "ai.backend.manager.network.overlay",] |
384 | 388 | # Blocked network plugins |
385 | 389 | ## block-network-plugins = [ "ai.backend.manager.network.overlay",] |
| 390 | + # Path for image commit |
| 391 | + image-commit-path = "tmp/backend.ai/commit" |
| 392 | + # Path for abuse reports |
| 393 | + ## abuse-report-path = "/var/log/backend.ai/abuse" |
386 | 394 | # Whether to force terminate abusing containers |
387 | | - ## force-terminate-abusing-containers = true |
| 395 | + force-terminate-abusing-containers = false |
388 | 396 | # Kernel creation concurrency |
389 | | - ## kernel-creation-concurrency = 4 # min=1 max=32 |
390 | | - # Docker mode detected based on kernel version (linuxkit/native) |
391 | | - ## docker-mode = "linuxkit" |
392 | | - # Owner uid:gid of the mount directory |
393 | | - ## mount-path-uid-gid = "root:root" |
| 397 | + kernel-creation-concurrency = 4 |
394 | 398 |
|
395 | 399 | # Container lifecycle synchronization config |
396 | 400 | [agents.agent.sync-container-lifecycles] |
|
402 | 406 | # Container config overrides for the individual agent |
403 | 407 | [agents.container] |
404 | 408 | # Kernel user ID |
405 | | - ## kernel-uid = 1000 |
| 409 | + kernel-uid = -1 |
406 | 410 | # Kernel group ID |
407 | | - ## kernel-gid = 1000 |
| 411 | + kernel-gid = -1 |
408 | 412 | # Port range for containers. |
409 | 413 | # If multiple agents are used, user must ensure that the port ranges |
410 | 414 | # do not overlap between the agent, else it may cause subtle issues |
411 | 415 | # late into the agent's runtime. |
412 | | - ## port-range = [ 30000, 31000,] |
| 416 | + port-range = [ 30000, 31000,] |
413 | 417 | # Statistics type |
414 | 418 | ## stats-type = "cgroup" |
415 | 419 | # Sandbox type |
416 | | - ## sandbox-type = "docker" |
| 420 | + sandbox-type = "docker" |
417 | 421 | # Jail arguments |
418 | | - ## jail-args = [ "--mount", "/tmp",] |
| 422 | + jail-args = [ "--mount", "/tmp",] |
419 | 423 | # Scratch type |
420 | | - ## scratch-type = "hostdir" |
| 424 | + scratch-type = "hostdir" |
421 | 425 | # Scratch root directory |
422 | | - ## scratch-root = "./scratches" |
| 426 | + scratch-root = "scratches" |
423 | 427 | # Scratch size |
424 | | - ## scratch-size = "1G" |
| 428 | + scratch-size = 0 |
425 | 429 | # Scratch NFS address |
426 | 430 | ## scratch-nfs-address = "192.168.1.100:/export" |
427 | 431 | # Scratch NFS options |
|
433 | 437 | # When enabled, the agent will use Docker Swarm APIs to manage containers, |
434 | 438 | # networks, and services. |
435 | 439 | # This field is only used when backend is set to 'docker'. |
436 | | - ## swarm-enabled = true |
| 440 | + swarm-enabled = false |
437 | 441 |
|
438 | 442 | # Resource config overrides for the individual agent |
439 | 443 | [agents.resource] |
|
0 commit comments