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 * as fs from 'node:fs/promises';
|
||||||
import type { IModelCatalogEntry } from '../interfaces/catalog.ts';
|
import type { IModelCatalogEntry } from '../interfaces/catalog.ts';
|
||||||
import type {
|
import type {
|
||||||
@@ -16,7 +15,7 @@ import { CLUSTER, PATHS } from '../constants.ts';
|
|||||||
export class ClusterManager {
|
export class ClusterManager {
|
||||||
private config: IClusterConfig = {
|
private config: IClusterConfig = {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
nodeName: os.hostname(),
|
nodeName: 'modelgrid-local',
|
||||||
role: 'standalone',
|
role: 'standalone',
|
||||||
bindHost: CLUSTER.DEFAULT_BIND_HOST,
|
bindHost: CLUSTER.DEFAULT_BIND_HOST,
|
||||||
gossipPort: CLUSTER.DEFAULT_GOSSIP_PORT,
|
gossipPort: CLUSTER.DEFAULT_GOSSIP_PORT,
|
||||||
|
|||||||
Reference in New Issue
Block a user