Administration/Configuration Files
Process Configuration
Configure how the Gigantics application runs as a process, including daemon mode settings.
Configuration Properties
The process configuration section in your config/default.yaml file controls how Gigantics runs as a system process:
Property Details
daemon
- Type: Boolean
- Default:
false - Description: Controls whether Gigantics runs as a daemon process in the background
workers
- Type: Number
- Default:
0 - Description: Controls clustering mode for the application:
-1: Disable clustering0: Fork to all available CPUsN: Fork to N workers (where N is a positive number)
Examples
Standard Process Configuration
Daemon Mode Configuration
Clustering Configuration
Disable Clustering
Running as a Daemon
To run Gigantics as a daemon process, you can either:
-
Set
daemon: truein the configuration file: -
Use the command line flag:
Clustering Options
Gigantics supports running in cluster mode to utilize multiple CPU cores:
- Single process (
workers: -1): Runs as a single process, good for development - All CPUs (
workers: 0): Forks a worker for each available CPU core - Specific number (
workers: N): Forks exactly N worker processes
Best Practices
- Development: Use
daemon: falseandworkers: -1for easier debugging - Production: Consider using
daemon: truefor background operation - Performance: Use clustering (
workers: 0) in production for better performance - Resource Management: Set a specific number of workers if you need to limit resource usage
Testing Configuration Changes
After modifying process configuration, restart the application:
You can also start with specific flags to override the configuration: