@nodedaemon/core
Version:
Production-ready Node.js process manager with zero external dependencies
60 lines • 2.03 kB
TypeScript
export declare const NODEDAEMON_DIR: string;
export declare const STATE_FILE: string;
export declare const LOG_DIR: string;
export declare const DAEMON_LOG: string;
export declare const IPC_SOCKET_PATH: string;
export declare const DEFAULT_CONFIG: {
readonly instances: 1;
readonly maxRestarts: 10;
readonly restartDelay: 1000;
readonly maxRestartDelay: 30000;
readonly minUptime: 10000;
readonly autoRestartOnCrash: true;
readonly autoRestartOnHighMemory: false;
readonly autoRestartOnHighCpu: false;
readonly memoryThreshold: "512MB";
readonly cpuThreshold: 80;
};
export declare const RESTART_STRATEGIES: {
readonly EXPONENTIAL_BACKOFF: "exponential";
readonly FIXED_DELAY: "fixed";
readonly LINEAR_BACKOFF: "linear";
};
export declare const PROCESS_EVENTS: {
readonly START: "start";
readonly STOP: "stop";
readonly RESTART: "restart";
readonly CRASH: "crash";
readonly EXIT: "exit";
};
export declare const LOG_LEVELS: {
readonly DEBUG: "debug";
readonly INFO: "info";
readonly WARN: "warn";
readonly ERROR: "error";
};
export declare const MAX_LOG_SIZE: number;
export declare const MAX_LOG_FILES = 5;
export declare const LOG_BUFFER_SIZE = 1000;
export declare const HEALTH_CHECK_INTERVAL = 30000;
export declare const MEMORY_THRESHOLD: number;
export declare const CPU_THRESHOLD = 80;
export declare const GRACEFUL_SHUTDOWN_TIMEOUT = 30000;
export declare const FORCE_KILL_TIMEOUT = 5000;
export declare const FILE_WATCH_DEBOUNCE = 100;
export declare const FILE_WATCH_IGNORE: string[];
export declare const SIGNALS: {
readonly SIGTERM: "SIGTERM";
readonly SIGINT: "SIGINT";
readonly SIGKILL: "SIGKILL";
readonly SIGHUP: "SIGHUP";
};
export declare const DEFAULT_WEB_UI_CONFIG: {
readonly enabled: false;
readonly port: 8080;
readonly host: "127.0.0.1";
readonly auth: any;
};
export declare const WEB_UI_DIR: string;
export declare const WEB_UI_STATIC_DIR: string;
//# sourceMappingURL=constants.d.ts.map