Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 24 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ The whole thing is bounded by construction: every pool has a worker ceiling, and
service has aggregate caps on pools and total workers — on top of the hard ceiling
enforced by the underlying `workers` service.

> **Stability:** experimental (`v0.1.0`). The API may change before `v1.0.0`.
> **Stability:** experimental (`v0.0.0`). The API may change without notice.

## Installation

Expand All @@ -89,17 +89,34 @@ pool must therefore also register `workers` and grant it `instance.manage` and

```json
{
"dependencies": ["github.com/JairusSW/pool", "github.com/wago-org/workers"],
"plugins": [
{
"name": "github.com/wago-org/workers",
"$schema": "https://wago.sh/v0/schema.json",
"plugins": {
"JairusSW/pool": "^0.0.0",
"wago-org/workers": "^0.0.0"
}
}
```

The reviewed worker authority is recorded in `wago-lock.json`:

```json
{
"plugins": {
"wago-org/workers": {
"version": "0.0.0",
"requiredCapabilities": [
"instance.manage",
"instance.lifecycle"
],
"capabilities": {
"instance.manage": { "maxInstances": 256 },
"instance.lifecycle": true
}
},
{ "name": "github.com/JairusSW/pool" }
]
"JairusSW/pool": {
"version": "0.0.0"
}
}
}
```

Expand Down
2 changes: 1 addition & 1 deletion pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ func New(opts ...Option) *Plugin {

func (*Plugin) Info() wago.ExtensionInfo {
return wago.ExtensionInfo{
ID: "wago.pool", Name: "Pool", Version: "0.1.0",
ID: "wago.pool", Name: "Pool", Version: "0.0.0",
Description: "Elastic, load-balanced, self-healing pools of Wago workers",
Stability: wago.Experimental, Repository: "https://github.com/JairusSW/pool",
License: "Apache-2.0",
Expand Down
13 changes: 4 additions & 9 deletions wago.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"$schema": "https://wago.sh/schema.json",
"schema": "wago-plugin/v1",
"$schema": "https://wago.sh/v0/schema.json",
"module": "github.com/JairusSW/pool",
"name": "Pool",
"version": "0.0.0",
Expand All @@ -12,11 +11,7 @@
"keywords": ["pool", "worker-pool", "workers", "load-balancing", "load-balancer", "autoscaling", "elastic", "supervision", "fleet", "dispatch", "concurrency", "webassembly", "wasm"],
"category": "concurrency",
"engines": { "wago": ">=0.1.0" },
"dependencies": ["github.com/wago-org/workers"],
"plugins": [
{
"name": "github.com/JairusSW/pool",
"capabilities": {}
}
]
"plugins": {
"wago-org/workers": "^0.0.0"
}
}
Loading