feat: add runtime worker heartbeat sidecar
This commit is contained in:
@@ -299,6 +299,10 @@ async function writeMetadata() {
|
||||
path.join(root, 'scripts', 'runtime-worker-metrics.mjs'),
|
||||
path.join(runtimeRoot, 'scripts', 'runtime-worker-metrics.mjs'),
|
||||
);
|
||||
await fs.copyFile(
|
||||
path.join(root, 'scripts', 'runtime-worker-heartbeat.mjs'),
|
||||
path.join(runtimeRoot, 'scripts', 'runtime-worker-heartbeat.mjs'),
|
||||
);
|
||||
await fs.copyFile(
|
||||
path.join(root, 'scripts', 'runtime-slo-report.mjs'),
|
||||
path.join(runtimeRoot, 'scripts', 'runtime-slo-report.mjs'),
|
||||
@@ -307,6 +311,10 @@ async function writeMetadata() {
|
||||
path.join(root, 'scripts', 'install-runtime-metrics-agent.sh'),
|
||||
path.join(runtimeRoot, 'scripts', 'install-runtime-metrics-agent.sh'),
|
||||
);
|
||||
await fs.copyFile(
|
||||
path.join(root, 'scripts', 'install-runtime-heartbeat-agent.sh'),
|
||||
path.join(runtimeRoot, 'scripts', 'install-runtime-heartbeat-agent.sh'),
|
||||
);
|
||||
await fs.copyFile(
|
||||
path.join(root, 'scripts', 'install-runtime-slo-report-agent.sh'),
|
||||
path.join(runtimeRoot, 'scripts', 'install-runtime-slo-report-agent.sh'),
|
||||
@@ -365,6 +373,9 @@ async function writeMetadata() {
|
||||
' node scripts/runtime-worker-metrics.mjs status',
|
||||
' node scripts/runtime-worker-metrics.mjs sample',
|
||||
' bash scripts/install-runtime-metrics-agent.sh',
|
||||
' node scripts/runtime-worker-heartbeat.mjs once',
|
||||
' node scripts/runtime-worker-heartbeat.mjs serve',
|
||||
' bash scripts/install-runtime-heartbeat-agent.sh',
|
||||
' node scripts/runtime-slo-report.mjs',
|
||||
' node scripts/runtime-slo-report.mjs --write-report',
|
||||
' node scripts/runtime-slo-report.mjs --write-report --prune --retention-days 30',
|
||||
@@ -397,9 +408,11 @@ async function main() {
|
||||
await fs.chmod(path.join(runtimeRoot, 'scripts', 'check-stream-runtime.mjs'), 0o755);
|
||||
await fs.chmod(path.join(runtimeRoot, 'scripts', 'runtime-worker-drain.mjs'), 0o755);
|
||||
await fs.chmod(path.join(runtimeRoot, 'scripts', 'runtime-worker-metrics.mjs'), 0o755);
|
||||
await fs.chmod(path.join(runtimeRoot, 'scripts', 'runtime-worker-heartbeat.mjs'), 0o755);
|
||||
await fs.chmod(path.join(runtimeRoot, 'scripts', 'runtime-slo-report.mjs'), 0o755);
|
||||
await fs.chmod(path.join(runtimeRoot, 'scripts', 'agent-run-worker.mjs'), 0o755);
|
||||
await fs.chmod(path.join(runtimeRoot, 'scripts', 'install-runtime-metrics-agent.sh'), 0o755);
|
||||
await fs.chmod(path.join(runtimeRoot, 'scripts', 'install-runtime-heartbeat-agent.sh'), 0o755);
|
||||
await fs.chmod(path.join(runtimeRoot, 'scripts', 'install-runtime-slo-report-agent.sh'), 0o755);
|
||||
await fs.chmod(path.join(runtimeRoot, 'scripts', 'check-tool-runtime.mjs'), 0o755);
|
||||
await fs.chmod(path.join(runtimeRoot, 'scripts', 'memind-portal-tunnel.sh'), 0o755);
|
||||
|
||||
Reference in New Issue
Block a user