@platformatic/watt-extra 1.6.0-alpha.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -9
- package/plugins/alerts.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/watt-extra",
|
|
3
|
-
"version": "1.6.0
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "The Platformatic runtime manager",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@fastify/websocket": "^11.1.0",
|
|
22
|
-
"@platformatic/composer": "^3.
|
|
23
|
-
"@platformatic/next": "^3.
|
|
24
|
-
"@platformatic/node": "^3.
|
|
25
|
-
"@platformatic/service": "^3.
|
|
22
|
+
"@platformatic/composer": "^3.20.0",
|
|
23
|
+
"@platformatic/next": "^3.20.0",
|
|
24
|
+
"@platformatic/node": "^3.20.0",
|
|
25
|
+
"@platformatic/service": "^3.20.0",
|
|
26
26
|
"atomic-sleep": "^1.0.0",
|
|
27
27
|
"borp": "^0.21.0",
|
|
28
28
|
"eslint": "9",
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"fastify-plugin": "^5.0.1",
|
|
31
31
|
"neostandard": "^0.12.0",
|
|
32
32
|
"next": "^16.0.0",
|
|
33
|
-
"platformatic": "^3.
|
|
33
|
+
"platformatic": "^3.20.0",
|
|
34
34
|
"pprof-format": "^2.1.0",
|
|
35
35
|
"why-is-node-running": "^2.3.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@datadog/pprof": "^5.9.0",
|
|
39
39
|
"@fastify/error": "^4.2.0",
|
|
40
|
-
"@platformatic/foundation": "^3.
|
|
41
|
-
"@platformatic/runtime": "^3.
|
|
42
|
-
"@platformatic/wattpm-pprof-capture": "^3.
|
|
40
|
+
"@platformatic/foundation": "^3.20.0",
|
|
41
|
+
"@platformatic/runtime": "^3.20.0",
|
|
42
|
+
"@platformatic/wattpm-pprof-capture": "^3.20.0",
|
|
43
43
|
"avvio": "^9.1.0",
|
|
44
44
|
"chalk": "^4.1.2",
|
|
45
45
|
"commist": "^3.2.0",
|
package/plugins/alerts.js
CHANGED
|
@@ -139,11 +139,11 @@ async function alerts (app, _opts) {
|
|
|
139
139
|
const { elu, heapUsed, heapTotal } = currentHealth
|
|
140
140
|
const healthConfig = app.watt.getHealthConfig()
|
|
141
141
|
|
|
142
|
-
const
|
|
142
|
+
const unhealthyELUThreshold = 0.85
|
|
143
143
|
const maxHeapUsed = healthConfig?.maxHeapUsed ?? 0.99
|
|
144
144
|
|
|
145
145
|
const memoryUsage = heapUsed / heapTotal
|
|
146
|
-
const unhealthy = elu >
|
|
146
|
+
const unhealthy = elu > unhealthyELUThreshold || memoryUsage > maxHeapUsed
|
|
147
147
|
|
|
148
148
|
const healthInfo = {
|
|
149
149
|
id,
|