fix(cluster): avoid hostname lookup during construction

This commit is contained in:
2026-04-21 12:37:12 +00:00
parent 3b2a16b151
commit 952bf394d3
+1 -2
View File
@@ -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,