# Configuration ## Environment Variables | Variable | Description | Default | |----------|-------------|---------| | `APP_ENV` | Application environment | `local` | | `LOG_LEVEL` | Logging level | `INFO` | ## Configuration Files Configuration files are mounted at `/etc/onlinesales/config/schedulerService/`. ### schedulerService.cfg Main service configuration file. ``` LOG_CONFIG_FILE=/etc/onlinesales/config/schedulerService/log.cfg DB_CONFIG_FILE=/etc/onlinesales/config/schedulerService/hibernate.cfg.xml ``` ### authConfig.cfg Authentication configuration for ACL. ```json { "authEnable": false, "authServiceUrl": "http://hades-service/hades/authorize" } ``` ### hibernate.cfg.xml Database connection configuration (injected via secrets). ```xml com.mysql.cj.jdbc.Driver jdbc:mysql://HOST:PORT/os_scheduling_db USERNAME PASSWORD org.hibernate.dialect.MySQL5Dialect ``` ## Helm Values ### Production (values.yaml) - Replicas: 2 - Resource limits enabled - Autoscaling enabled - PDB enabled - MySQL subchart disabled (external DB) ### Local (values-local.yaml) - Replicas: 1 - No resource limits - Autoscaling disabled - Ingress enabled for local access - MySQL subchart enabled ## Database Configuration | Parameter | Production | Local | |-----------|-----------|-------| | Host | External MySQL | `schedulerservice-mysql` | | Port | 3306 | 3306 | | Database | `os_scheduling_db` | `os_scheduling_db` | | User | (from secret) | `scheduler_user` | | Password | (from secret) | `localpassword` |