DBDelve
Dive deep into your data. A fast, native, multi-engine database client written in Rust. Free and open source, no telemetry.
翻译准备中
The official RunsOn action
翻译准备中
正在加载完整 README。
查看完整 README ↗RunsOn Action for magic caching, and more. This action is required if you are using the magic caching feature of RunsOn (extras=s3-cache job label).
jobs:
build:
runs-on: runs-on=${{ github.run_id }}/runner=2cpu-linux-x64/extras=s3-cache
steps:
- uses: runs-on/action@v2
- other steps
When RunsOn fails a job because AWS is reclaiming its EC2 Spot instance, the post step skips all of its work (cost report, metrics summary, and sticky cache shutdown). The runner then has time to report the interruption before the instance shuts down, and RunsOn discards the sticky disk changes of an interrupted job anyway.
show_envShow all environment variables available to actions (used for debugging purposes).
jobs:
build:
runs-on: runs-on=${{ github.run_id }}/runner=2cpu-linux-x64/extras=s3-cache
steps:
- uses: runs-on/action@v2
with:
show_env: true
Possible values:
true - Show all environment variablesfalse - Don't show environment variables (default)show_costsDisplays how much it cost to run that workflow job, and compares it with a similar GitHub-hosted runner.
RunsOn v3.4.0 and later. The RunsOn agent reports the cost itself, at the very end of the job, in the "Complete runner" step. This happens for every job, with or without this action, so show_costs only chooses how it is displayed. The estimate:
Example output in the "Complete runner" step:
💰 Estimated cost: $0.0034 (GitHub-hosted: $0.0120)
| Metric | Value |
| ------------------------ | ------------------------------------------ |
| Instance type | c7a.large |
| Instance lifecycle | spot |
| Region | us-east-1 |
| Availability zone | us-east-1b |
| Platform | linux/x64, 2 vCPUs |
| Billed duration | 2m45s (boot, job, and 5s for shutdown) |
| Job duration | 1m44s |
| EC2 | $0.0014 |
| EBS root volume | $0.0008 |
| EBS sticky disk | $0.0012 |
| Total | $0.0034 |
| GitHub-hosted equivalent | $0.0120 (job duration rounded up to 2 min) |
| Savings | $0.0086 (71.7%) |
The GitHub-hosted equivalent uses GitHub's published per-minute price for the smallest runner with at least as many vCPUs. It bills only the job duration, rounded up to the next whole minute as GitHub does, since GitHub doesn't bill runner boot.
Earlier RunsOn versions. The action's post step computes the cost from https://ec2-pricing.runs-on.com, for both on-demand and spot pricing across all regions and availability zones. It covers EC2 only, up to the post step. When the cost API has no matching pricing data, cost reporting logs an informational message and skips the cost table and job summary. This includes unsupported regions and unavailable instance or zone prices. Other API and network failures still warn.
Possible values:
inline - Display costs in the log output (default)summary - Display costs in the log output and in the GitHub job summaryWhen runs-on/action is invoked more than once in the same job, only the first
invocation with cost reporting enabled calculates and displays the job cost.
Later invocations skip duplicate reporting automatically. An invocation with
cost reporting disabled does not prevent a later enabled invocation from
reporting.
metricsNote: this is currently only available with a development release of RunsOn. This will be fully functional with v2.8.4+
Send additional metrics using CloudWatch agent.
Supported metrics:
| Metric Type | Available Metrics |
|---|---|
cpu | usage_user, usage_system |
network | bytes_recv, bytes_sent |
memory | used_percent |
disk | used_percent, inodes_used, free, total |
io | io_time, reads, writes |
jobs:
build:
runs-on: runs-on=${{ github.run_id }}/runner=2cpu-linux-x64/extras=s3-cache
steps:
- uses: runs-on/action@v2
with:
metrics: cpu,network,memory,disk,io
Possible values:
cpu - CPU usage metrics (usage_user, usage_system)network - Network metrics (bytes_recv, bytes_sent)memory - Memory metrics (used_percent)disk - Disk metrics (used_percent, inodes_used, free, total)io - I/O metrics (io_time, reads, writes)cpu,network,memory,disk,io)Disk metrics are published for each of /, /tmp, /var/lib/docker and /home/runner that is a mount point, with the InstanceId, path, fstype, device and VolumeId dimensions. VolumeId is the EBS volume behind that mount, so a sticky disk or snapshot volume mounted at /var/lib/docker reports its own volume. Mounts that aren't on an EBS volume have no VolumeId, for example tmpfs, overlay, or the md0 array RunsOn builds from local instance storage. Earlier versions published disk metrics without the device and VolumeId dimensions, so update dashboards or alarms that match on the previous set.
以上为 README 的开头部分。其余内容请阅读原文。 查看完整 README ↗