@platformatic/watt-extra 1.11.0-alpha.4 → 1.11.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 +1 -1
- package/plugins/env.js +2 -2
- package/plugins/health-signals.js +0 -3
- package/pnpm-workspace.yaml +6 -0
- package/.claude/settings.local.json +0 -13
package/package.json
CHANGED
package/plugins/env.js
CHANGED
|
@@ -28,8 +28,8 @@ const schema = {
|
|
|
28
28
|
PLT_ELU_HEALTH_SIGNAL_THRESHOLD: { type: 'number', default: 0.8 },
|
|
29
29
|
PLT_HEAP_HEALTH_SIGNAL_THRESHOLD: { type: ['number', 'string'], default: '200MB' },
|
|
30
30
|
PLT_ALERTS_GRACE_PERIOD_SEC: { type: 'number', default: 30 },
|
|
31
|
-
PLT_HEALTH_SIGNALS_SHORT_BATCH_TIMEOUT: { type: 'number', default:
|
|
32
|
-
PLT_HEALTH_SIGNALS_LONG_BATCH_TIMEOUT: { type: 'number', default:
|
|
31
|
+
PLT_HEALTH_SIGNALS_SHORT_BATCH_TIMEOUT: { type: 'number', default: 5000 },
|
|
32
|
+
PLT_HEALTH_SIGNALS_LONG_BATCH_TIMEOUT: { type: 'number', default: 30000 }
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -200,9 +200,6 @@ async function healthSignals (app, _opts) {
|
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
const runtimeId = app.getRuntimeId()
|
|
203
|
-
const requestBody = { applicationId, runtimeId, signals, batchStartedAt }
|
|
204
|
-
|
|
205
|
-
process._rawDebug('[watt-extra:health-signals] Sending signals:', JSON.stringify(requestBody, null, 2))
|
|
206
203
|
|
|
207
204
|
const { statusCode, body } = await request(`${scalerUrl}/signals`, {
|
|
208
205
|
method: 'POST',
|