From 952bf394d338bd2b4a92eb44079db546f6b11843 Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Tue, 21 Apr 2026 12:37:12 +0000 Subject: [PATCH] fix(cluster): avoid hostname lookup during construction --- ts/cluster/cluster-manager.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ts/cluster/cluster-manager.ts b/ts/cluster/cluster-manager.ts index 4a3f37d..46fdc35 100644 --- a/ts/cluster/cluster-manager.ts +++ b/ts/cluster/cluster-manager.ts @@ -1,4 +1,3 @@ -import os from 'node:os'; import * as fs from 'node:fs/promises'; import type { IModelCatalogEntry } from '../interfaces/catalog.ts'; import type { @@ -16,7 +15,7 @@ import { CLUSTER, PATHS } from '../constants.ts'; export class ClusterManager { private config: IClusterConfig = { enabled: false, - nodeName: os.hostname(), + nodeName: 'modelgrid-local', role: 'standalone', bindHost: CLUSTER.DEFAULT_BIND_HOST, gossipPort: CLUSTER.DEFAULT_GOSSIP_PORT,