Knowledge Base

Advanced Settings

Performance Tuning

Fine‑tune the system for higher throughput and lower latency. Adjust the following parameters in config.yml:

worker_threads: 8
max_connections: 5000
cache_size: 256M
When to increase workers
Increase worker_threads if the CPU has idle cores during peak traffic. Monitor CPU usage with top or htop.

Security Options

Enable stricter security policies. Recommended settings:

tls_version: TLSv1.3
csp:
  - "default-src 'self'"
  - "script-src 'self' 'unsafe-inline'"
audit_logging: true
Content‑Security‑Policy explained
The CSP blocks unwanted scripts and resources. Adjust the directives according to your application's needs.

Network Configuration

Customize proxy and load‑balancer behavior.

proxy:
  enabled: true
  upstreams:
    - host: 10.0.1.10
      port: 8080
    - host: 10.0.1.11
      port: 8080
load_balancer:
  algorithm: round_robin
  health_check_interval: 30

Custom Scripts

Hook into the lifecycle with custom scripts. Place scripts in /opt/app/scripts/ and reference them in config.yml:

hooks:
  on_start: /opt/app/scripts/start.sh
  on_stop: /opt/app/scripts/stop.sh

FAQ

How do I revert to default settings?
Delete the custom config.yml and restart the service. The application will regenerate a default configuration file.
What is the maximum cache size?
The maximum cache size depends on available RAM. Keep it below 75% of total system memory to avoid swapping.