fix(cluster): avoid hostname lookup during construction
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user