Skip to content

Commit 08e8d2b

Browse files
samuel-williams-shopifyioquatix
authored andcommitted
Introduce UtilizationMonitor.
1 parent f0f7048 commit 08e8d2b

File tree

4 files changed

+10
-22
lines changed

4 files changed

+10
-22
lines changed

context/utilization-monitor.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ service "supervisor" do
3131
[
3232
Async::Service::Supervisor::UtilizationMonitor.new(
3333
path: File.expand_path("utilization.shm", root),
34-
interval: 10 # Aggregate and emit metrics every 10 seconds
34+
interval: 10 # Aggregate and emit metrics every 10 seconds
3535
)
3636
]
3737
end
@@ -116,14 +116,6 @@ monitors do
116116
end
117117
```
118118

119-
For a custom location under your application root:
120-
121-
```ruby
122-
path: File.expand_path("tmp/utilization.shm", root)
123-
```
124-
125-
Ensure the path is writable by both supervisor and workers.
126-
127119
### `interval`
128120

129121
The interval (in seconds) at which to aggregate and emit utilization metrics. Default: `10` seconds.

guides/utilization-monitor/readme.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ service "supervisor" do
3131
[
3232
Async::Service::Supervisor::UtilizationMonitor.new(
3333
path: File.expand_path("utilization.shm", root),
34-
interval: 10 # Aggregate and emit metrics every 10 seconds
34+
interval: 10 # Aggregate and emit metrics every 10 seconds
3535
)
3636
]
3737
end
@@ -116,14 +116,6 @@ monitors do
116116
end
117117
```
118118

119-
For a custom location under your application root:
120-
121-
```ruby
122-
path: File.expand_path("tmp/utilization.shm", root)
123-
```
124-
125-
Ensure the path is writable by both supervisor and workers.
126-
127119
### `interval`
128120

129121
The interval (in seconds) at which to aggregate and emit utilization metrics. Default: `10` seconds.

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ Please see the [project documentation](https://socketry.github.io/async-service-
3030

3131
Please see the [project releases](https://socketry.github.io/async-service-supervisor/releases/index) for all releases.
3232

33+
### Unreleased
34+
35+
- Introduce `UtilizationMonitor`, that uses shared memory to track worker utilization metrics, like total and active requests, connections, etc.
36+
3337
### v0.11.0
3438

3539
- Add `state` attribute to `SupervisorController` to store per-worker metadata (e.g., service name).
@@ -75,10 +79,6 @@ Please see the [project releases](https://socketry.github.io/async-service-super
7579

7680
- Fix timed out RPCs and subsequent responses which should be ignored.
7781

78-
### v0.6.0
79-
80-
- Add `async:container:supervisor:reload` command to restart the container (blue/green deployment).
81-
8282
## Contributing
8383

8484
We welcome contributions to this project.

releases.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Releases
22

3+
## Unreleased
4+
5+
- Introduce `UtilizationMonitor`, that uses shared memory to track worker utilization metrics, like total and active requests, connections, etc.
6+
37
## v0.11.0
48

59
- Add `state` attribute to `SupervisorController` to store per-worker metadata (e.g., service name).

0 commit comments

Comments
 (0)