Skip to content

Commit

Permalink
update pool-agent/README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gamoutatsumi committed Apr 16, 2024
1 parent 222fb2a commit 5a7ae2c
Showing 1 changed file with 49 additions and 18 deletions.
67 changes: 49 additions & 18 deletions pool-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,66 @@ Stadium Agent for pool mode

## Setup

### configuration file

configuration file format is toml

```toml
["https://127.0.0.1:8443"]
cert_path = "cert.pem"
key_path = "key.pem"
[["https://127.0.0.1:8443".resource_types]]
name = "nano"
cpu = 1
memory = "1GB"
count = 3
[["https://127.0.0.1:8443".resource_types]]
name = "micro"
cpu = 2
memory = "2GB"
count = 1
# sample configuration
image_alias = "https://example.com/container-image"
[[resource_types_map]]
name = "large"
cpu = 2
memory = "20GB"
[[resource_types_map]]
name = "xlarge"
cpu = 4
memory = "40GB"
[[resource_types_map]]
name = "2xlarge"
cpu = 8
memory = "80GB"
[[resource_types_map]]
name = "3xlarge"
cpu = 12
memory = "120GB"
[[resource_types_map]]
name = "4xlarge"
cpu = 16
memory = "160GB"
[resource_types_counts]
large = 10
xlarge = 10
2xlarge = 10
3xlarge = 10
4xlarge = 10
```

- `LXD_MULTI_IMAGE_ALIAS`
- Image to pool
### command line options

```bash
$ pool-agent --help
Usage:
pool-agent [command]

Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
run

Flags:
--config string config file path (default "/etc/pool-agent/config.toml")
-h, --help help for pool-agent
--metrics string metrics file path (default "/var/lib/node_exporter/textfile_collector/pool_agent.prom")

Use "pool-agent [command] --help" for more information about a command.
```

### Optional values

- `LXD_MULTI_CHECK_INTERVAL`
- Interval to check instances
- default: `2s`
- `LXD_MULTI_CONCURRENT_CREATE_LIMIT`
- Limit concurrency for creating instance
- default: `3`
- `LXD_MULTI_WAIT_IDLE_TIME`
- Duration to wait instance idle after `systemctl is-system-running --wait`
- default: `5s`
Expand Down

0 comments on commit 5a7ae2c

Please sign in to comment.